mbox series

[0/2] Solve problem of hot removal of virtio-net-pci

Message ID 20191226043649.14481-1-yuri.benditovich@daynix.com (mailing list archive)
Headers show
Series Solve problem of hot removal of virtio-net-pci | expand

Message

Yuri Benditovich Dec. 26, 2019, 4:36 a.m. UTC
There is regression of hotplug removal of virtio-net-pci on q35
introduced long time ago in 3.0.0 with commit:
 48564041a73adbbff52834f9edbe3806fceefab7
 exec: reintroduce MemoryRegion caching

virtio-net does not destroy some of caching resources upon
hot unplug and on further hot plug the device with the same
name can not be added.
These 2 patches solve the problem.

Yuri Benditovich (2):
  virtio: reset region cache when on queue deletion
  virtio-net: delete also control queue when TX/RX deleted

 hw/net/virtio-net.c | 3 ++-
 hw/virtio/virtio.c  | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)