[libvirt] [PATCH v2 2/9] xenapi: Add various vir*Flags API
Peter Krempa
pkrempa at redhat.com
Wed Jul 10 07:08:36 UTC 2019
On Tue, Jul 09, 2019 at 12:46:31 -0500, Eric Blake wrote:
> Even though we don't accept any flags, it is unfriendly to callers
> that use the modern API to have to fall back to the flag-free API.
>
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
> src/xenapi/xenapi_driver.c | 22 +++++++++++++++++++---
> 1 file changed, 19 insertions(+), 3 deletions(-)
[...]
> @@ -1225,6 +1227,19 @@ xenapiDomainPinVcpu(virDomainPtr dom, unsigned int vcpu ATTRIBUTE_UNUSED,
> return -1;
> }
>
> +/*
> + * xenapiDomainPinVcpu
> + *
> + * Dynamically change the real CPUs which can be allocated to a virtual CPU
> + * Returns 0 on success or -1 in case of error
> + */
> +static int
> +xenapiDomainPinVcpu(virDomainPtr dom, unsigned int vcpu,
> + unsigned char *cpumap, int maplen)
> +{
> + return xenapiDomainPinVcpuFlags(dom, vcpu, cpumap, maplen, 0);
Actually in the qemu driver we pass in VIR_DOMAIN_AFFECT_LIVE as the
flags here, because the old API worked only on the live definition.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190710/ab647233/attachment-0001.sig>
More information about the libvir-list
mailing list