hw/net/vmxnet3: Do not abort QEMU if guest specified bad queue numbers
commit9010b0c7a9a097590e183f63716091f6c42a223f
authorThomas Huth <thuth@redhat.com>
Wed, 21 Jul 2021 14:15:59 +0000 (21 16:15 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 2 Aug 2021 04:19:18 +0000 (2 12:19 +0800)
tree8e2ba1bad17ca142f7b917cdadf8f5db019cf7b1
parent0c633cf0c221922a0a9f9d0b8866cbb111f5e192
hw/net/vmxnet3: Do not abort QEMU if guest specified bad queue numbers

QEMU should never terminate unexpectedly just because the guest is
doing something wrong like specifying wrong queue numbers. Let's
simply refuse to set the device active in this case.

Buglink: https://bugs.launchpad.net/qemu/+bug/1890160
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/vmxnet3.c