[libvirt] [PATCH 4/5] qemu: Map running reason to resume event detail

John Ferlan jferlan at redhat.com
Wed Sep 19 15:23:37 UTC 2018



On 09/12/2018 08:55 AM, Jiri Denemark wrote:
> Thanks to the previous commit the RESUME event handler knows what reason
> should be used when changing the domain state to VIR_DOMAIN_RUNNING, but
> the emitted VIR_DOMAIN_EVENT_RESUMED event still uses a generic
> VIR_DOMAIN_EVENT_RESUMED_UNPAUSED detail. Luckily, the event detail can
> be easily deduced from the running reason, which saves us from having to
> pass one more value to the handler.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/qemu/qemu_domain.c  | 29 +++++++++++++++++++++++++++++
>  src/qemu/qemu_domain.h  |  3 +++
>  src/qemu/qemu_process.c | 11 +++++++----
>  3 files changed, 39 insertions(+), 4 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John




More information about the libvir-list mailing list