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