mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[XEN] Replace hvm_setup_platform() with hvm_domain_initialise()
and extra code in hvm_vcpu_initialise(). Remove 'apic' config option -- HVM CPUs will always have an APIC (which should be set up in virtual wire mode for backward compatibility, just as in a real system). Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
5aa732c204
commit
6bc01e4efd
33 files changed
+98
-160
No files matched your search
@@ -377,19 +377,18 @@ static PyObject *pyxc_hvm_build(XcObject *self,
|
||||
int vcpus = 1;
|
||||
int pae = 0;
|
||||
int acpi = 0;
|
||||
int apic = 0;
|
||||
unsigned long store_mfn = 0;
|
||||
|
||||
static char *kwd_list[] = { "domid", "store_evtchn",
|
||||
"memsize", "image", "vcpus", "pae", "acpi", "apic",
|
||||
"memsize", "image", "vcpus", "pae", "acpi",
|
||||
NULL };
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiisiiii", kwd_list,
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiisiii", kwd_list,
|
||||
&dom, &store_evtchn, &memsize,
|
||||
&image, &vcpus, &pae, &acpi, &apic) )
|
||||
&image, &vcpus, &pae, &acpi) )
|
||||
return NULL;
|
||||
|
||||
if ( xc_hvm_build(self->xc_handle, dom, memsize, image,
|
||||
vcpus, pae, acpi, apic, store_evtchn, &store_mfn) != 0 )
|
||||
vcpus, pae, acpi, store_evtchn, &store_mfn) != 0 )
|
||||
return PyErr_SetFromErrno(xc_error);
|
||||
|
||||
return Py_BuildValue("{s:i}", "store_mfn", store_mfn);
|
||||
|
||||