diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/examples/xmexample.hvm | 3 | ||||
-rw-r--r-- | tools/firmware/hvmloader/hvmloader.c | 7 | ||||
-rw-r--r-- | tools/libxc/ia64/xc_ia64_hvm_build.c | 2 | ||||
-rw-r--r-- | tools/libxc/xc_hvm_build.c | 11 | ||||
-rw-r--r-- | tools/libxc/xenguest.h | 2 | ||||
-rw-r--r-- | tools/libxc/xg_private.c | 1 | ||||
-rw-r--r-- | tools/python/README.XendConfig | 1 | ||||
-rw-r--r-- | tools/python/README.sxpcfg | 1 | ||||
-rw-r--r-- | tools/python/xen/lowlevel/xc/xc.c | 9 | ||||
-rw-r--r-- | tools/python/xen/xend/image.py | 5 | ||||
-rw-r--r-- | tools/python/xen/xm/create.py | 6 | ||||
-rw-r--r-- | tools/xm-test/lib/XmTestLib/arch.py | 1 |
12 files changed, 11 insertions, 38 deletions
diff --git a/tools/examples/xmexample.hvm b/tools/examples/xmexample.hvm index 20b58af44b..5f10a76fb6 100644 --- a/tools/examples/xmexample.hvm +++ b/tools/examples/xmexample.hvm @@ -48,9 +48,6 @@ name = "ExampleHVMDomain" # enable/disable HVM guest ACPI, default=0 (disabled) #acpi=0 -# enable/disable HVM guest APIC, default=0 (disabled) -#apic=0 - # List of which CPUS this domain is allowed to use, default Xen picks #cpus = "" # leave to Xen to pick #cpus = "0" # all vcpus run on CPU0 diff --git a/tools/firmware/hvmloader/hvmloader.c b/tools/firmware/hvmloader/hvmloader.c index a4adff8a89..49a870bb0d 100644 --- a/tools/firmware/hvmloader/hvmloader.c +++ b/tools/firmware/hvmloader/hvmloader.c @@ -165,8 +165,6 @@ init_hypercalls(void) int main(void) { - struct xen_hvm_param hvm_param; - puts("HVM Loader\n"); init_hypercalls(); @@ -177,10 +175,7 @@ main(void) puts("Loading ROMBIOS ...\n"); memcpy((void *)ROMBIOS_PHYSICAL_ADDRESS, rombios, sizeof(rombios)); - hvm_param.domid = DOMID_SELF; - hvm_param.index = HVM_PARAM_APIC_ENABLED; - if (!hypercall_hvm_op(HVMOP_get_param, &hvm_param) && hvm_param.value) - create_mp_tables(); + create_mp_tables(); if (cirrus_check()) { puts("Loading Cirrus VGABIOS ...\n"); diff --git a/tools/libxc/ia64/xc_ia64_hvm_build.c b/tools/libxc/ia64/xc_ia64_hvm_build.c index 0caaf343b3..ad5c6fdabd 100644 --- a/tools/libxc/ia64/xc_ia64_hvm_build.c +++ b/tools/libxc/ia64/xc_ia64_hvm_build.c @@ -618,7 +618,7 @@ error_out: int xc_hvm_build(int xc_handle, uint32_t domid, int memsize, const char *image_name, unsigned int vcpus, unsigned int pae, - unsigned int acpi, unsigned int apic, unsigned int store_evtchn, + unsigned int acpi, unsigned int store_evtchn, unsigned long *store_mfn) { struct xen_domctl launch_domctl, domctl; diff --git a/tools/libxc/xc_hvm_build.c b/tools/libxc/xc_hvm_build.c index 300d7ae428..8995c60925 100644 --- a/tools/libxc/xc_hvm_build.c +++ b/tools/libxc/xc_hvm_build.c @@ -157,7 +157,6 @@ static int setup_guest(int xc_handle, unsigned int vcpus, unsigned int pae, unsigned int acpi, - unsigned int apic, unsigned int store_evtchn, unsigned long *store_mfn) { @@ -248,7 +247,6 @@ static int setup_guest(int xc_handle, } xc_set_hvm_param(xc_handle, dom, HVM_PARAM_PAE_ENABLED, pae); - xc_set_hvm_param(xc_handle, dom, HVM_PARAM_APIC_ENABLED, apic); if ( (e820_page = xc_map_foreign_range( xc_handle, dom, PAGE_SIZE, PROT_READ | PROT_WRITE, @@ -307,7 +305,6 @@ static int xc_hvm_build_internal(int xc_handle, unsigned int vcpus, unsigned int pae, unsigned int acpi, - unsigned int apic, unsigned int store_evtchn, unsigned long *store_mfn) { @@ -340,7 +337,7 @@ static int xc_hvm_build_internal(int xc_handle, if ( setup_guest(xc_handle, domid, memsize, image, image_size, ctxt, domctl.u.getdomaininfo.shared_info_frame, - vcpus, pae, acpi, apic, store_evtchn, store_mfn) < 0) + vcpus, pae, acpi, store_evtchn, store_mfn) < 0) { ERROR("Error constructing guest OS"); goto error_out; @@ -531,7 +528,6 @@ int xc_hvm_build(int xc_handle, unsigned int vcpus, unsigned int pae, unsigned int acpi, - unsigned int apic, unsigned int store_evtchn, unsigned long *store_mfn) { @@ -545,7 +541,7 @@ int xc_hvm_build(int xc_handle, sts = xc_hvm_build_internal(xc_handle, domid, memsize, image, image_size, - vcpus, pae, acpi, apic, + vcpus, pae, acpi, store_evtchn, store_mfn); free(image); @@ -567,7 +563,6 @@ int xc_hvm_build_mem(int xc_handle, unsigned int vcpus, unsigned int pae, unsigned int acpi, - unsigned int apic, unsigned int store_evtchn, unsigned long *store_mfn) { @@ -592,7 +587,7 @@ int xc_hvm_build_mem(int xc_handle, sts = xc_hvm_build_internal(xc_handle, domid, memsize, img, img_len, - vcpus, pae, acpi, apic, + vcpus, pae, acpi, store_evtchn, store_mfn); /* xc_inflate_buffer may return the original buffer pointer (for diff --git a/tools/libxc/xenguest.h b/tools/libxc/xenguest.h index 75e0c47be5..d6343fbf5c 100644 --- a/tools/libxc/xenguest.h +++ b/tools/libxc/xenguest.h @@ -113,7 +113,6 @@ int xc_hvm_build(int xc_handle, unsigned int vcpus, unsigned int pae, unsigned int acpi, - unsigned int apic, unsigned int store_evtchn, unsigned long *store_mfn); @@ -125,7 +124,6 @@ int xc_hvm_build_mem(int xc_handle, unsigned int vcpus, unsigned int pae, unsigned int acpi, - unsigned int apic, unsigned int store_evtchn, unsigned long *store_mfn); diff --git a/tools/libxc/xg_private.c b/tools/libxc/xg_private.c index 3c50552290..49fcb624e8 100644 --- a/tools/libxc/xg_private.c +++ b/tools/libxc/xg_private.c @@ -196,7 +196,6 @@ __attribute__((weak)) int xc_hvm_build( unsigned int vcpus, unsigned int pae, unsigned int acpi, - unsigned int apic, unsigned int store_evtchn, unsigned long *store_mfn) { diff --git a/tools/python/README.XendConfig b/tools/python/README.XendConfig index 2e677f887a..d860aac9c7 100644 --- a/tools/python/README.XendConfig +++ b/tools/python/README.XendConfig @@ -123,7 +123,6 @@ otherConfig image.hvm.vncconsole image.hvm.pae image.hvm.acpi (also in image.devices) - image.hvm.apic image.hvm.devices.boot image.hvm.devices.fda image.hvm.devices.fdb diff --git a/tools/python/README.sxpcfg b/tools/python/README.sxpcfg index 9beffd6ba0..9f7b787789 100644 --- a/tools/python/README.sxpcfg +++ b/tools/python/README.sxpcfg @@ -56,7 +56,6 @@ image - vncconsole - pae - acpi - - apic (parseDeviceModel) - boot - fda diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index d267164d8b..51831838f7 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -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); diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index c70c94fc00..f140c158c7 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -275,7 +275,6 @@ class HVMImageHandler(ImageHandler): self.pae = int(sxp.child_value(imageConfig, 'pae', 0)) self.acpi = int(sxp.child_value(imageConfig, 'acpi', 0)) - self.apic = int(sxp.child_value(imageConfig, 'apic', 0)) def buildDomain(self): store_evtchn = self.vm.getStorePort() @@ -289,7 +288,6 @@ class HVMImageHandler(ImageHandler): log.debug("vcpus = %d", self.vm.getVCpuCount()) log.debug("pae = %d", self.pae) log.debug("acpi = %d", self.acpi) - log.debug("apic = %d", self.apic) self.register_shutdown_watch() @@ -299,8 +297,7 @@ class HVMImageHandler(ImageHandler): memsize = mem_mb, vcpus = self.vm.getVCpuCount(), pae = self.pae, - acpi = self.acpi, - apic = self.apic) + acpi = self.acpi) # Return a list of cmd line args to the device models based on the # xm config file diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index eadd79891a..1bb5171eef 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -181,10 +181,6 @@ gopts.var('acpi', val='ACPI', fn=set_int, default=0, use="Disable or enable ACPI of HVM domain.") -gopts.var('apic', val='APIC', - fn=set_int, default=0, - use="Disable or enable APIC of HVM domain.") - gopts.var('vcpus', val='VCPUS', fn=set_int, default=1, use="# of Virtual CPUS in domain.") @@ -664,7 +660,7 @@ def configure_hvm(config_image, vals): 'localtime', 'serial', 'stdvga', 'isa', 'nographic', 'soundhw', 'vnc', 'vncdisplay', 'vncunused', 'vncconsole', 'vnclisten', 'sdl', 'display', 'xauthority', - 'acpi', 'apic', 'usb', 'usbdevice' ] + 'acpi', 'usb', 'usbdevice' ] for a in args: if (vals.__dict__[a]): config_image.append([a, vals.__dict__[a]]) diff --git a/tools/xm-test/lib/XmTestLib/arch.py b/tools/xm-test/lib/XmTestLib/arch.py index 5625a53546..331ede5414 100644 --- a/tools/xm-test/lib/XmTestLib/arch.py +++ b/tools/xm-test/lib/XmTestLib/arch.py @@ -71,7 +71,6 @@ ia_ParavirtDefaults = {"memory" : 64, ia_HVMDefaults = {"memory" : 64, "vcpus" : 1, "acpi" : 0, - "apic" : 0, "disk" : ["file:%s/disk.img,ioemu:%s,w!" % (getRdPath(), BLOCK_ROOT_DEV)], "kernel" : "/usr/lib/xen/boot/hvmloader", |