Re: [PATCH 2/7] lib: Add API to query guest vcpu info using guest agent

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

 



On Mon, Jun 20, 2016 at 04:34:16PM +0200, Peter Krempa wrote:
> Add a rather universal API implemented via typed params that will allow
> to query the guest agent for the state and possibly other aspects of
> guest vcpus.
> ---

[...]

> diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
> index 73ae369..0971a96 100644
> --- a/src/libvirt-domain.c
> +++ b/src/libvirt-domain.c
> @@ -11835,3 +11835,59 @@ virDomainInterfaceFree(virDomainInterfacePtr iface)
> 
>      VIR_FREE(iface);
>  }
> +
> +
> +/**
> + * virDomainGetGuestVcpus:
> + * @domain: pointer to domain object
> + * @params: Pointer that will be filled with an array of typed parameters

s/Pointer/pointer/

> + * @nparams: pointer filled with number of elements in @params
> + * @flags: currently unused, callers shall pass 0
> + *
> + * Queries the guest agent for state and information regarding vCPUs from
> + * guest's perspective. The reported data depends on the guest agent
> + * implementation.
> + *
> + * Reported fields stored in @params:
> + * 'vcpus': string containing bitmap representing vCPU ids as reported by the
> + *          guest
> + * 'online': string containing bitmap representing online vCPUs as reported
> + *           by the guest agent.
> + * 'offlinable': string containing bitmap representing ids of vCPUs that can be
> + *               offlined

ACK

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]