Re: [pve-devel] [PATCH qemu-server] mediated devices: fix race condition in vm reboot

2024-03-07 Thread Mira Limbeck
On 3/7/24 10:33, Dominik Csapak wrote: > when triggering a vm reboot from the host (via cli/api), the reboot code > is called under a guest lock, which creates a reboot request, shuts down > the vm and calls the regular cleanup code (which includes the mdev > cleanup). > > in parallel the

[pve-devel] [PATCH qemu-server] mediated devices: fix race condition in vm reboot

2024-03-07 Thread Dominik Csapak
when triggering a vm reboot from the host (via cli/api), the reboot code is called under a guest lock, which creates a reboot request, shuts down the vm and calls the regular cleanup code (which includes the mdev cleanup). in parallel the qmeventd sees the vanished vm, and starts 'qm cleanup'