Re: [PATCH] vmnet: stop recieving events when VM is stopped

2023-01-09 Thread Jason Wang
On Mon, Jan 2, 2023 at 9:08 AM Joelle van Dyne wrote: > > When the VM is stopped using the HMP command "stop", soon the handler will > stop reading from the vmnet interface. This causes a flood of > `VMNET_INTERFACE_PACKETS_AVAILABLE` events to arrive and puts the host CPU > at 100%. We fix this b

[PATCH] vmnet: stop recieving events when VM is stopped

2023-01-01 Thread Joelle van Dyne
When the VM is stopped using the HMP command "stop", soon the handler will stop reading from the vmnet interface. This causes a flood of `VMNET_INTERFACE_PACKETS_AVAILABLE` events to arrive and puts the host CPU at 100%. We fix this by removing the event handler from vmnet when the VM is no longer