libvirt/src/xen
Eric Blake 6a713b310a xen: reject unknown flags
Also fix a logic bug in xenXMDomain{Attach,Detach}DeviceFlags,
where (flags & VIR_DOMAIN_DEVICE_MODIFY_CURRENT) is always false.

* src/xen/xen_driver.c (xenUnifiedDomainXMLFromNative)
(xenUnifiedDomainXMLToNative, xenUnifiedDomainBlockPeek): Reject
unknown flags.
* src/xen/xen_hypervisor.c (xenHypervisorOpen)
(xenHypervisorGetDomainState): Likewise.
* src/xen/xen_inotify.c (xenInotifyOpen): Likewise.
* src/xen/xs_internal.c (xenStoreOpen, xenStoreDomainGetState)
(xenStoreDomainReboot): Likewise.
* src/xen/xend_internal.c (xenDaemonOpen, xenDaemonDomainReboot)
(xenDaemonDomainCoreDump, xenDaemonDomainGetState)
(xenDaemonDomainMigratePrepare, xenDaemonDomainSetVcpusFlags,
xenDaemonDomainGetVcpusFlags, xenDaemonAttachDeviceFlags,
xenDaemonDetachDeviceFlags): Likewise.
(xenDaemonDomainGetXMLDesc): Prefer unsigned flags.
* src/xen/xend_internal.h (xenDaemonDomainGetXMLDesc): Likewise.
* src/xen/xm_internal.h (xenXMDomainGetXMLDesc): Likewise.
* src/xen/xm_internal.c (xenXMDomainGetXMLDesc): Likewise.
(xenXMOpen, xenXMDomainGetState, xenXMDomainSetVcpusFlags)
(xenXMDomainGetVcpusFlags): Reject unknown flags.
(xenXMDomainAttachDeviceFlags, xenXMDomainDetachDeviceFlags):
Likewise, and avoid always-false conditional.
* src/xen/xen_driver.h (XEN_MIGRATION_FLAGS): New define.
2011-07-15 16:34:44 -06:00
..
block_stats.c xen: Replace statsErrorFunc with a macro 2011-04-17 07:53:26 +02:00
block_stats.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00
xen_driver.c xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xen_driver.h xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xen_hypervisor.c xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xen_hypervisor.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xen_inotify.c xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xen_inotify.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xend_internal.c xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xend_internal.h xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xm_internal.c xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xm_internal.h xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xs_internal.c xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xs_internal.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00