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

Tomáš Golembiovský tgolembi at redhat.com
Wed Apr 14 10:12:24 UTC 2021


On Wed, Apr 14, 2021 at 11:51:39AM +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: Tomáš Golembiovský <tgolembi at redhat.com>

-- 
Tomáš Golembiovský <tgolembi at redhat.com>




More information about the libvir-list mailing list