mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86, xend: Fix processing of cpuid config parameters
There is an python indentation issue keeping the full range of syntax for the cpuid config file parameter from working correctly. This patch fixes that. It also fixes some misspelling and a missing 'x' in two of the example config files (must have 32 bits represented for cpuid registers). Signed-off-by: Bruce Rogers <brogers@novell.com>
This commit is contained in:
1 parent
ddf4a60539
commit
4b4f92e98d
3 files changed
+5
-5
No files matched your search
@@ -566,11 +566,11 @@ gopts.var('hap', val='HAP',
|
||||
use="""Hap status (0=hap is disabled;
|
||||
1=hap is enabled.""")
|
||||
|
||||
gopts.var('cpuid', val="IN[,SIN]:eax=EAX,ebx=EBX,exc=ECX,edx=EDX",
|
||||
gopts.var('cpuid', val="IN[,SIN]:eax=EAX,ebx=EBX,ecx=ECX,edx=EDX",
|
||||
fn=append_value, default=[],
|
||||
use="""Cpuid description.""")
|
||||
|
||||
gopts.var('cpuid_check', val="IN[,SIN]:eax=EAX,ebx=EBX,exc=ECX,edx=EDX",
|
||||
gopts.var('cpuid_check', val="IN[,SIN]:eax=EAX,ebx=EBX,ecx=ECX,edx=EDX",
|
||||
fn=append_value, default=[],
|
||||
use="""Cpuid check description.""")
|
||||
|
||||
@@ -971,7 +971,7 @@ def preprocess_cpuid(vals, attr_name):
|
||||
"of the register %s for input %s\n"
|
||||
% (res['reg'], input) )
|
||||
cpuid[input][res['reg']] = res['val'] # new register
|
||||
setattr(vals, attr_name, cpuid)
|
||||
setattr(vals, attr_name, cpuid)
|
||||
|
||||
def preprocess_pci(vals):
|
||||
if not vals.pci: return
|
||||
|
||||