libvirt/src/qemu
Eric Blake 4888f0fb56 xml: use better types for memory values
Using 'unsigned long' for memory values is risky on 32-bit platforms,
as a PAE guest can have more than 4GiB memory.  Our API is
(unfortunately) locked at 'unsigned long' and a scale of 1024, but
the rest of our system should consistently use 64-bit values,
especially since the previous patch centralized overflow checking.

* src/conf/domain_conf.h (_virDomainDef): Always use 64-bit values
for memory.  Change hugepage_backed to a bool.
* src/conf/domain_conf.c (virDomainDefParseXML)
(virDomainDefCheckABIStability, virDomainDefFormatInternal): Fix
clients.
* src/vmx/vmx.c (virVMXFormatConfig): Likewise.
* src/xenxs/xen_sxpr.c (xenParseSxpr, xenFormatSxpr): Likewise.
* src/xenxs/xen_xm.c (xenXMConfigGetULongLong): New function.
(xenXMConfigGetULong, xenXMConfigSetInt): Avoid truncation.
(xenParseXM, xenFormatXM): Fix clients.
* src/phyp/phyp_driver.c (phypBuildLpar): Likewise.
* src/openvz/openvz_driver.c (openvzDomainSetMemoryInternal):
Likewise.
* src/vbox/vbox_tmpl.c (vboxDomainDefineXML): Likewise.
* src/qemu/qemu_command.c (qemuBuildCommandLine): Likewise.
* src/qemu/qemu_process.c (qemuProcessStart): Likewise.
* src/qemu/qemu_monitor.h (qemuMonitorGetBalloonInfo): Likewise.
* src/qemu/qemu_monitor_text.h (qemuMonitorTextGetBalloonInfo):
Likewise.
* src/qemu/qemu_monitor_text.c (qemuMonitorTextGetBalloonInfo):
Likewise.
* src/qemu/qemu_monitor_json.h (qemuMonitorJSONGetBalloonInfo):
Likewise.
* src/qemu/qemu_monitor_json.c (qemuMonitorJSONGetBalloonInfo):
Likewise.
* src/qemu/qemu_driver.c (qemudDomainGetInfo)
(qemuDomainGetXMLDesc): Likewise.
* src/uml/uml_conf.c (umlBuildCommandLine): Likewise.
2012-03-07 18:24:44 -07:00
..
libvirtd_qemu.aug Add two new security label types 2012-02-02 17:44:37 -07:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_agent.c qemu: Implement DomainPMSuspendForDuration 2012-02-15 11:45:45 +01:00
qemu_agent.h qemu: Implement DomainPMSuspendForDuration 2012-02-15 11:45:45 +01:00
qemu_bridge_filter.c Remove conn parameter from virReportSystemError 2010-02-09 01:04:54 +01:00
qemu_bridge_filter.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
qemu_capabilities.c qemu: New cap flag to indicate if channel is supported by scsi-disk 2012-02-28 14:27:13 +08:00
qemu_capabilities.h qemu: New cap flag to indicate if channel is supported by scsi-disk 2012-02-28 14:27:13 +08:00
qemu_cgroup.c qemu: eliminate "Ignoring open failure" when using root-squash NFS 2012-02-03 16:47:43 -05:00
qemu_cgroup.h qemu: Implement period and quota tunable XML configuration and parsing 2011-07-21 17:11:12 +08:00
qemu_command.c xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_command.h build: use correct type for pid and similar types 2012-03-02 06:57:43 -07:00
qemu_conf.c qemu driver for virDomainGetCPUstats using cpuacct cgroup. 2012-03-06 21:54:48 -07:00
qemu_conf.h Add two new security label types 2012-02-02 17:44:37 -07:00
qemu_domain.c qemu: Add ability to abort existing console while creating new one 2012-02-27 15:05:17 +01:00
qemu_domain.h qemu: Add ability to abort existing console while creating new one 2012-02-27 15:05:17 +01:00
qemu_driver.c xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_driver.h Split all QEMU process mangement code into separate file 2011-02-17 12:48:55 +00:00
qemu_hostdev.c qemu: install port profile and mac address on netdev hostdevs 2012-03-06 06:04:04 -05:00
qemu_hostdev.h qemu: install port profile and mac address on netdev hostdevs 2012-03-06 06:04:04 -05:00
qemu_hotplug.c qemu: install port profile and mac address on netdev hostdevs 2012-03-06 06:04:04 -05:00
qemu_hotplug.h qemu: Don't drop hostdev config until security label restore 2011-12-16 11:53:03 +01:00
qemu_migration.c util: Changes to support portprofiles for hostdevs 2012-03-06 06:03:57 -05:00
qemu_migration.h qemu: Forbid migration with cache != none 2012-02-23 14:34:56 +01:00
qemu_monitor_json.c xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_monitor_json.h xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_monitor_text.c xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_monitor_text.h xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_monitor.c xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_monitor.h xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_process.c xml: use better types for memory values 2012-03-07 18:24:44 -07:00
qemu_process.h build: use correct type for pid and similar types 2012-03-02 06:57:43 -07:00
qemu.conf qemu driver for virDomainGetCPUstats using cpuacct cgroup. 2012-03-06 21:54:48 -07:00
test_libvirtd_qemu.aug qemu: Support for overriding NOFILE limit 2011-12-22 17:49:04 +01:00
THREADS.txt qemu: fix crash when mixing sync and async monitor jobs 2011-08-01 09:41:57 -06:00