• E
    vcpu: make old API trivially wrap to new API · 50c51f13
    Eric Blake 提交于
    Note - this wrapping is completely mechanical; the old API will
    function identically, since the new API validates that the exact
    same flags are provided by the old API.  On a per-driver basis,
    it may make sense to have the old API pass a different set of flags,
    but that should be done in the per-driver patch that implements
    the full range of flag support in the new API.
    
    * src/esx/esx_driver.c (esxDomainSetVcpus, escDomainGetMaxVpcus):
    Move guts...
    (esxDomainSetVcpusFlags, esxDomainGetVcpusFlags): ...to new
    functions.
    (esxDriver): Trivially support the new API.
    * src/openvz/openvz_driver.c (openvzDomainSetVcpus)
    (openvzDomainSetVcpusFlags, openvzDomainGetMaxVcpus)
    (openvzDomainGetVcpusFlags, openvzDriver): Likewise.
    * src/phyp/phyp_driver.c (phypDomainSetCPU)
    (phypDomainSetVcpusFlags, phypGetLparCPUMAX)
    (phypDomainGetVcpusFlags, phypDriver): Likewise.
    * src/qemu/qemu_driver.c (qemudDomainSetVcpus)
    (qemudDomainSetVcpusFlags, qemudDomainGetMaxVcpus)
    (qemudDomainGetVcpusFlags, qemuDriver): Likewise.
    * src/test/test_driver.c (testSetVcpus, testDomainSetVcpusFlags)
    (testDomainGetMaxVcpus, testDomainGetVcpusFlags, testDriver):
    Likewise.
    * src/vbox/vbox_tmpl.c (vboxDomainSetVcpus)
    (vboxDomainSetVcpusFlags, virDomainGetMaxVcpus)
    (virDomainGetVcpusFlags, virDriver): Likewise.
    * src/xen/xen_driver.c (xenUnifiedDomainSetVcpus)
    (xenUnifiedDomainSetVcpusFlags, xenUnifiedDomainGetMaxVcpus)
    (xenUnifiedDomainGetVcpusFlags, xenUnifiedDriver): Likewise.
    * src/xenapi/xenapi_driver.c (xenapiDomainSetVcpus)
    (xenapiDomainSetVcpusFlags, xenapiDomainGetMaxVcpus)
    (xenapiDomainGetVcpusFlags, xenapiDriver): Likewise.
    (xenapiError): New helper macro.
    50c51f13
xenapi_driver.c 59.9 KB