[PATCH v2] qemu: Expose disk serial in virDomainGetGuestInfo()

Peter Krempa pkrempa at redhat.com
Wed Apr 14 11:45:09 UTC 2021


On Wed, Apr 14, 2021 at 11:51:39 +0200, Michal Privoznik wrote:
> When querying guest info via virDomainGetGuestInfo() the
> 'guest-get-disks' agent command is called. It may report disk
> serial number which we parse, but never report nor use for
> anything else.
> 
> As it turns out, it may help management application find matching
> disk in their internals.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> 
> v2 of:
> 
> https://listman.redhat.com/archives/libvir-list/2021-April/msg00552.html
> 
> diff to v1:
> - Filled virsh documentation
> - Documented that the param is optional and type of string
> 
>  docs/manpages/virsh.rst |  1 +
>  src/libvirt-domain.c    |  1 +
>  src/qemu/qemu_driver.c  | 19 ++++++++++++++-----
>  3 files changed, 16 insertions(+), 5 deletions(-)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>




More information about the libvir-list mailing list