hvm: Battery Management virtual firmware and toolstack changes

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-10-14 11:08:15 +01:00
1 parent 39f97ffa29
commit 5e58cce9f7
8 files changed
+659 -4

No files matched your search

+1
View File
@@ -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.
+8
View File
@@ -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:
+1 -1
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.