Re: [PATCH v2 2/9] xenapi: Add various vir*Flags API

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

 



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@xxxxxxxxxx>
> ---
>  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.

Attachment: signature.asc
Description: PGP signature

--
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]

  Powered by Linux