aboutsummaryrefslogtreecommitdiff
path: root/roms
diff options
context:
space:
mode:
authorMiao Yan <yanmiaobest@gmail.com>2015-12-22 22:06:07 -0800
committerJason Wang <jasowang@redhat.com>2016-01-11 11:01:34 +0800
commitfde58177aa112da377bbe1af71e0ec3ee7750196 (patch)
treeb57248f728b06e86b121d1ab6a3126b7f3db9844 /roms
parent663fb1e172068c1633a674584d2b9cce396e0cca (diff)
downloadqemu-fde58177aa112da377bbe1af71e0ec3ee7750196.zip
qemu-fde58177aa112da377bbe1af71e0ec3ee7750196.tar.gz
qemu-fde58177aa112da377bbe1af71e0ec3ee7750196.tar.bz2
net/vmxnet3: return 1 on device activation failure
When reading device status, 0 means device is successfully activated and 1 means error. This behavior can be observed by the following steps: 1) run a Linux distro on esxi server (5.5+) 2) modify vmxnet3 Linux driver to give it an invalid address to 'adapter->shared_pa' which is the shared memory for guest/host communication This will trigger device activation failure and kernel log will have the following message: [ 7138.403256] vmxnet3 0000:03:00.0 eth1: Failed to activate dev: error 1 So return 1 on device activation failure instead of -1; Signed-off-by: Miao Yan <yanmiaobest@gmail.com> Reviewed-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'roms')
0 files changed, 0 insertions, 0 deletions