mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Per-domain switch to disable oos shadow page tables
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
This commit is contained in:
1 parent
ed71370de1
commit
90abd2437a
13 files changed
+33
-10
No files matched your search
@@ -178,6 +178,7 @@ XENAPI_PLATFORM_CFG_TYPES = {
|
||||
'xen_platform_pci': int,
|
||||
"gfx_passthru": int,
|
||||
'description': str,
|
||||
'oos' : int,
|
||||
}
|
||||
|
||||
# Xen API console 'other_config' keys.
|
||||
|
||||
@@ -2419,7 +2419,11 @@ class XendDomainInfo:
|
||||
s3_integrity = 0
|
||||
if self.info.has_key('s3_integrity'):
|
||||
s3_integrity = self.info['s3_integrity']
|
||||
flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2)
|
||||
|
||||
oos = self.info['platform'].get('oos', 1)
|
||||
oos_off = 1 - oos
|
||||
|
||||
flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2) | (int(oos_off) << 3)
|
||||
|
||||
try:
|
||||
self.domid = xc.domain_create(
|
||||
|
||||
@@ -610,6 +610,11 @@ gopts.var('s3_integrity', val='TBOOT_MEMORY_PROTECT',
|
||||
use="""Should domain memory integrity be verified during S3?
|
||||
(0=protection is disabled; 1=protection is enabled.""")
|
||||
|
||||
gopts.var('oos', val='OOS',
|
||||
fn=set_int, default=1,
|
||||
use="""Should out-of-sync shadow page tabled be enabled?
|
||||
(0=OOS is disabled; 1=OOS is enabled.""")
|
||||
|
||||
gopts.var('cpuid', val="IN[,SIN]:eax=EAX,ebx=EBX,ecx=ECX,edx=EDX",
|
||||
fn=append_value, default=[],
|
||||
use="""Cpuid description.""")
|
||||
@@ -990,7 +995,7 @@ def configure_hvm(config_image, vals):
|
||||
'vnc', 'vncdisplay', 'vncunused', 'vncconsole', 'vnclisten',
|
||||
'sdl', 'display', 'xauthority', 'rtc_timeoffset', 'monitor',
|
||||
'acpi', 'apic', 'usb', 'usbdevice', 'keymap', 'pci', 'hpet',
|
||||
'guest_os_type', 'hap', 'opengl', 'cpuid', 'cpuid_check',
|
||||
'guest_os_type', 'hap', 'oos', 'opengl', 'cpuid', 'cpuid_check',
|
||||
'viridian', 'xen_extended_power_mgmt', 'pci_msitranslate',
|
||||
'vpt_align', 'pci_power_mgmt', 'xen_platform_pci',
|
||||
'gfx_passthru', 'description' ]
|
||||
@@ -1038,6 +1043,8 @@ def make_config(vals):
|
||||
config.append(['backend', ['tpmif']])
|
||||
if vals.localtime:
|
||||
config.append(['localtime', vals.localtime])
|
||||
if vals.oos:
|
||||
config.append(['oos', vals.oos])
|
||||
|
||||
config_image = configure_image(vals)
|
||||
if vals.bootloader:
|
||||
|
||||
@@ -1073,6 +1073,7 @@ class sxp2xml:
|
||||
'vhpt',
|
||||
'guest_os_type',
|
||||
'hap',
|
||||
'oos',
|
||||
'pci_msitranslate',
|
||||
'pci_power_mgmt',
|
||||
'xen_platform_pci',
|
||||
|
||||