On 7/31/23 04:30, Xuan Zhuo wrote:
On Mon, 31 Jul 2023 09:25:12 +0800, "zhanghao1" <zhanghao1@xxxxxxxxxx> wrote:
A new virtio pci driver is added for listening to vcpus
inside guest. Each vcpu creates a corresponding thread to
periodically send data to qemu's back-end watchdog device.
If a vCPU is in the stall state, data cannot be sent to
back-end virtio device. As a result, the back-end device
can detect that the guest is in the stall state.
The driver is mainly used with the back-end watchdog device of qemu.
The qemu backend watchdog device is implemented as follow:
https://lore.kernel.org/qemu-devel/20230705081813.411526-1-zhanghao1@xxxxxxxxxx/
I think we need to introduce this new device to the virtio spec firstly.
And when having a watchdog drivers: shouldn't you watch the virtio queue
_itself_? There is no guarantee that the virtio queue makes forward
progress ...
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew
Myers, Andrew McDonald, Martje Boudien Moerman
_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/virtualization