mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
hvm: Battery Management virtual firmware and toolstack changes
Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
This commit is contained in:
1 parent
39f97ffa29
commit
5e58cce9f7
8 files changed
+659
-4
No files matched your search
@@ -163,6 +163,7 @@ XENAPI_PLATFORM_CFG_TYPES = {
|
||||
'vhpt': int,
|
||||
'guest_os_type': str,
|
||||
'hap': int,
|
||||
'xen_extended_power_mgmt': int,
|
||||
}
|
||||
|
||||
# Xen API console 'other_config' keys.
|
||||
|
||||
@@ -250,6 +250,14 @@ class ImageHandler:
|
||||
def parseDeviceModelArgs(self, vmConfig):
|
||||
ret = ["-domain-name", str(self.vm.info['name_label'])]
|
||||
|
||||
xen_extended_power_mgmt = int(vmConfig['platform'].get(
|
||||
'xen_extended_power_mgmt', 0))
|
||||
if xen_extended_power_mgmt != 0:
|
||||
xstransact.Store("/local/domain/0/device-model/%i"
|
||||
% self.vm.getDomid(),
|
||||
('xen_extended_power_mgmt',
|
||||
xen_extended_power_mgmt))
|
||||
|
||||
# Find RFB console device, and if it exists, make QEMU enable
|
||||
# the VNC console.
|
||||
if int(vmConfig['platform'].get('nographic', 0)) != 0:
|
||||
|
||||
@@ -862,7 +862,7 @@ def configure_hvm(config_image, vals):
|
||||
'sdl', 'display', 'xauthority', 'rtc_timeoffset', 'monitor',
|
||||
'acpi', 'apic', 'usb', 'usbdevice', 'keymap', 'pci', 'hpet',
|
||||
'guest_os_type', 'hap', 'opengl', 'cpuid', 'cpuid_check',
|
||||
'viridian' ]
|
||||
'viridian', 'xen_extended_power_mgmt' ]
|
||||
|
||||
for a in args:
|
||||
if a in vals.__dict__ and vals.__dict__[a] is not None:
|
||||
|
||||