aboutsummaryrefslogtreecommitdiff
path: root/target-arm/machine.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2012-05-17 13:25:43 +0800
committerAnthony Liguori <aliguori@us.ibm.com>2012-06-27 16:27:00 -0500
commitfcce6fd25f3e233f9da9ef01230a668ab35bd343 (patch)
tree45ce16ff88d35149a272010af694e7c505ef8978 /target-arm/machine.c
parent2624bab836662d37f08336408a99d97652fc9c4d (diff)
rtl8139: validate rx ring before receiving packets
Commit ff71f2e8cacefae99179993204172bc65e4303df prevent the possible crash during initialization of linux driver by checking the operating mode.This seems too strict as: - the real card could still work in mode other than normal - some buggy driver who does not set correct opmode after eeprom access So, considering rx ring address were reset to zero (which could be safely trated as an address not intened to DMA to), in order to both letting old guest work and preventing the unexpected DMA to guest, we can forbid packet receiving when rx ring address is zero. Tested-by: Avi Kivity <avi@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-arm/machine.c')
0 files changed, 0 insertions, 0 deletions