[libvirt] [PATCHv4 2/4] vcpupin: implement the code to address the new API in the qemu driver
Adam Litke
agl at us.ibm.com
Fri May 20 21:00:18 UTC 2011
On 05/20/2011 04:09 AM, Taku Izumi wrote:
> --- libvirt.orig/src/qemu/qemu_driver.c
> +++ libvirt/src/qemu/qemu_driver.c
> @@ -2859,17 +2859,24 @@ qemudDomainSetVcpus(virDomainPtr dom, un
>
>
> static int
> -qemudDomainPinVcpu(virDomainPtr dom,
> - unsigned int vcpu,
> - unsigned char *cpumap,
> - int maplen) {
> +qemudDomainPinVcpuFlags(virDomainPtr dom,
> + unsigned int vcpu,
> + unsigned char *cpumap,
> + int maplen,
> + unsigned int flags) {
> +
> struct qemud_driver *driver = dom->conn->privateData;
> virDomainObjPtr vm;
> + virDomainDefPtr persistentDef = NULL;
> int maxcpu, hostcpus;
> virNodeInfo nodeinfo;
> int ret = -1;
> + bool isActive;
> qemuDomainObjPrivatePtr priv;
>
> + virCheckFlags(VIR_DOMAIN_VCPU_LIVE |
> + VIR_DOMAIN_VCPU_CONFIG, -1);
Is this even possible since you already checked it at the top level?
--
Adam Litke
IBM Linux Technology Center
More information about the libvir-list
mailing list