qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QEMU Plugins to monitor VM state changes


From: Alex Bennée
Subject: Re: QEMU Plugins to monitor VM state changes
Date: Fri, 01 Jul 2022 11:42:39 +0100
User-agent: mu4e 1.7.27; emacs 28.1.90

Jayakrishna Vadayath <jvadayat@asu.edu> writes:

> Hi,
>
> I'm very new to writing QEMU plugins and I was looking for a way that a 
> plugin could be notified of a change in the VM state.
> For example, the -S flag is used to change the state using the runstate_set 
> function.
> In this case, would it be possible for a plugin to be notified of this
> change ?

Currently you can register idle/resume callbacks which can be used to
show when the vCPU is sleeping waiting for I/O. The wider state in QEMU
of when the vCPU is stopped is not reported as it should not be visible
to the guest.

What are you trying to achieve?

>
> Thank you for you help.


-- 
Alex Bennée



reply via email to

[Prev in Thread] Current Thread [Next in Thread]