libvirt/src/conf
Peter Krempa 0fed5a7bc7 conf: Don't always recalculate initial memory size from NUMA size totals
When implementing memory hotplug I've opted to recalculate the initial
memory size (contents of the <memory> element) as a sum of the sizes of
NUMA nodes when NUMA was enabled. This was based on an assumption that
qemu did not allow starting when the NUMA node size total didn't equal
to the initial memory size. Unfortunately the check was introduced to
qemu just lately.

This patch uses the new XML parser flag to decide whether it's safe to
update the memory size total from the NUMA cell sizes or not.

As an additional improvement we now report an error in case when the
size of hotplug memory would exceed the total memory size.

The rest of the changes assures that the function is called with correct
flags.
2015-09-22 16:09:28 +02:00
..
capabilities.c virCapabilitiesDomainDataLookup: Produce saner error message 2015-06-15 07:29:37 +02:00
capabilities.h caps: Use DomainDataLookup to replace GuestDefault* 2015-04-20 16:43:13 -04:00
cpu_conf.c XML: escape strings where we should do it 2015-05-12 12:05:07 +02:00
cpu_conf.h conf: Move all NUMA configuration to virDomainNuma 2015-02-20 17:50:08 +01:00
device_conf.c conf: more useful error message when pci function is out of range 2015-08-08 18:37:35 -04:00
device_conf.h conf: more useful error message when pci function is out of range 2015-08-08 18:37:35 -04:00
domain_addr.c conf: new pcie-controller model "pcie-switch-downstream-port" 2015-08-09 22:30:47 -04:00
domain_addr.h conf: new pci controller model "pcie-switch-upstream-port" 2015-08-09 22:12:29 -04:00
domain_audit.c conf: audit: Audit physical memory size rather than balloon request 2015-07-01 10:18:10 +02:00
domain_audit.h qemu: Add support to Add/Delete IOThreads 2015-04-27 12:36:36 -04:00
domain_capabilities.c XML: escape strings where we should do it 2015-05-12 12:05:07 +02:00
domain_capabilities.h domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domain_conf.c conf: Don't always recalculate initial memory size from NUMA size totals 2015-09-22 16:09:28 +02:00
domain_conf.h conf: Don't always recalculate initial memory size from NUMA size totals 2015-09-22 16:09:28 +02:00
domain_event.c Add VIR_DOMAIN_EVENT_ID_DEVICE_ADDED event 2015-04-15 17:06:01 +02:00
domain_event.h Add VIR_DOMAIN_EVENT_ID_DEVICE_ADDED event 2015-04-15 17:06:01 +02:00
domain_nwfilter.c Remove use of nwfilterPrivateData from nwfilter driver 2015-01-27 12:02:03 +00:00
domain_nwfilter.h Remove use of nwfilterPrivateData from nwfilter driver 2015-01-27 12:02:03 +00:00
interface_conf.c interface: don't error out if a bond has no interfaces 2015-05-27 14:25:45 -04:00
interface_conf.h maint: Prohibit "devname" by a syntax check rules 2014-10-01 16:39:01 +02:00
netdev_bandwidth_conf.c virNetDevBandwidthParseRate: Reject negative values 2015-08-10 13:47:48 +02:00
netdev_bandwidth_conf.h qemu: add udp interface support 2015-09-02 10:17:50 +02:00
netdev_vlan_conf.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
netdev_vlan_conf.h maint: avoid 'const fooPtr' in conf 2013-10-14 14:34:38 -06:00
netdev_vport_profile_conf.c docs: schema and docs for the midonet virtualport type 2015-03-17 13:09:05 -04:00
netdev_vport_profile_conf.h Rename xml.{c,h} to virxml.{c,h} 2012-12-21 11:19:50 +00:00
network_conf.c conf: Don't try formating non-existing addresses 2015-08-11 16:07:41 +02:00
network_conf.h conf: Add getter for network routes 2015-07-14 08:04:49 +02:00
network_event.c Replace virNetworkFree with virObjectUnref 2014-12-02 11:03:40 -05:00
network_event.h event: move event filtering to daemon (regression fix) 2014-02-05 08:03:31 -07:00
networkcommon_conf.c network: Resolve Coverity FORWARD_NULL 2015-01-16 06:40:15 -05:00
networkcommon_conf.h Use the network route definitions for domains 2015-01-16 10:14:03 +01:00
node_device_conf.c conf: make virNodeDevCapData an official type 2015-05-18 10:22:20 -04:00
node_device_conf.h conf: make virNodeDevCapData an official type 2015-05-18 10:22:20 -04:00
numa_conf.c conf: fix crash when parsing a unordered NUMA <cell/> 2015-09-08 10:40:20 +02:00
numa_conf.h numa_conf: Introduce virDomainNumaGetMaxCPUID 2015-08-07 17:19:03 +02:00
nwfilter_conf.c nwfilter: Add support for icmpv6 filtering 2015-01-07 11:41:49 -05:00
nwfilter_conf.h nwfilter: Add support for icmpv6 filtering 2015-01-07 11:41:49 -05:00
nwfilter_ipaddrmap.c Remove pointless storage of var names in virNWFilterHashTable 2014-04-25 15:44:09 +01:00
nwfilter_ipaddrmap.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
nwfilter_params.c nwfilter: Change 'index' to 'idx' 2015-04-14 11:18:28 -04:00
nwfilter_params.h nwfilter: Change 'index' to 'idx' 2015-04-14 11:18:28 -04:00
object_event_private.h event: prepare client to track domain callbackID 2014-02-12 10:48:15 -07:00
object_event.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
object_event.h event: add notion of remoteID for filtering client network events 2014-01-15 13:55:21 -07:00
secret_conf.c maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
secret_conf.h maint: shorten 'TypeType' function names 2014-05-16 00:22:18 -06:00
snapshot_conf.c domain: conf: Drop expectedVirtTypes 2015-04-20 16:43:43 -04:00
snapshot_conf.h domain: conf: Drop expectedVirtTypes 2015-04-20 16:43:43 -04:00
storage_conf.c mpath: Don't allow more than one mpath pool at a time 2015-06-30 11:21:42 -04:00
storage_conf.h conf: Introduce virStoragePoolLoadAllState && virStoragePoolLoadState 2015-04-07 16:22:40 +02:00
virchrdev.c check if console/channel PTY is null before attempting to open 2015-06-03 18:13:06 +02:00
virchrdev.h conf: Add unix socket support to virChrdevOpen 2013-01-04 18:07:11 -07:00