Commit Graph
14479 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 33ca4e4b54 Merge with xenppc-unstable-merge.hg 2007-03-21 23:59:03 +00:00
Hollis Blanchard 001e8c5cd8 Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 18:08:31 -05:00
Hollis Blanchard a7706a8de0 [LIBXC][POWERPC] Use new domain builder.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:03:00 -05:00
Hollis Blanchard cb8cdc98fd [POWERPC][LIBXC] Remove Prose builder.
It is no longer being maintained and probably shouldn't have existed in the
first place, since it was almost identical to xc_linux_build.c.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:03:00 -05:00
Hollis Blanchard ba5aedc193 [LIBXC] Allocate memory and populate p2m in arch-specific code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 06aaae8408 [LIBXC] Move domain builder hooks into arch-specific files and remove ifdefs.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard b09b06b6de [POWERPC][XEN] Fix "xc_core" build break. Untested but might work.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 0a27cae221 [POWERPC][XEN] Implement arch_get_xen_caps().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 4b770b7bed [POWERPC][XEN] Use correct register set in dump_execution_state().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 79bbad27d3 [POWERPC][XEN] Quiet timebase synchronization at boot.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 48fd46e71f [POWERPC][XEN] Clear the RMA flag on freed pages.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Tim Deegan 2ccced7b73 [XEN] Shadow: check the _PAGE_PRESENT bit in fast-path MMIO shadow ptes
otherwise the fast-path code is not safe against some kinds of
concurrent shadow updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-21 17:17:08 +00:00
Ewan Mellor 9639f3da4f Change xm dmesg -c so that it prints out the current buffer as well as clearing
it.  This avoids a race so that you don't lose messages, matches the behaviour
of the hypercall, and the Unix dmesg command.

Change the Xen-API binding to use a separate function host.dmesg_clear rather
than a flag on host.dmesg.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-21 12:03:42 +00:00
Ian Campbell 27c451323a LINUX: x86_64: start_pfn should be initialised even when XENFEAT_auto_translated_physmap is set.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-21 08:51:51 +00:00
Ewan Mellor 5b3327347f Raise an exception in xm_block_detach if using Xen-API and it fails -- this
ensures that the exit status properly set.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:36:18 +00:00
Ewan Mellor 5ce79470d8 Fix xm network-list through the Xen-API for managed domains.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:34:34 +00:00
Ewan Mellor f7bff36895 Fix xm block-list through the Xen-API for managed domains.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:33:35 +00:00
Ewan Mellor 3d9330324c Make xm trigger talk XenAPI; add send_trigger to VM class.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:30:52 +00:00
Ewan Mellor 8ed7e86d16 Make xm debug-keys talk XenAPI; Add send_debug_keys to host
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:30:05 +00:00
Ewan Mellor 282cd380d9 Change the eyecatcher to be case-insensitive, so that "Internal error" is
detected.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:26:05 +00:00
Ewan Mellor 9aa2765862 Tidy the error message from getDomains when using the Xen-API and no domain
is found.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-20 16:55:29 +00:00
Ewan Mellor 06979e1dc4 Have xm-test wait for the network device to detach. This is an asynchronous
process, so xm-test needs to poll.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 16:52:33 +00:00
Ewan Mellor f6c7de277c Fix sxp2xml translation to handle maxmem.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 15:15:37 +00:00
Ewan Mellor 9e9090601c Add VIF.runtime_properties dictionary, and use that to implement xm network-list
through the Xen-API.  Implement xm network-attach and xm network-detach also.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 15:12:07 +00:00
Ewan Mellor 1c3dce55cd Fix parameter to XendInvalidDomain.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-20 14:04:57 +00:00
Ewan Mellor b5d7ad3a95 Fix exception handling when xmlrpclib.Fault is raised, in legacy mode.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-20 14:04:27 +00:00
Ewan Mellor f5f96d3c4f Fix xm create -c.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 11:49:04 +00:00
Ewan Mellor 26f758a762 Add VBD.runtime_properties dictionary, and use that to implement xm block-list
through the Xen-API.  Implement xm block-attach and xm block-detach also.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 11:45:44 +00:00
Ewan Mellor ca11344704 When creating a VBD, save the devid in the device info structure. If creation
fails, remove the device config entry.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 11:44:13 +00:00
Ewan Mellor a69027d845 Improve the error diagnostics within xmlrpclib2 in order to be more defensive
against internal errors.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 11:34:14 +00:00
Ian Campbell 9ff1710953 merge 2007-03-20 14:34:53 +00:00
Ian Campbell 3e1b9525de [XEN] Implement faster int 0x80 handling for compat mode guests.
Using the GPF handler to spot the software interrupt and pass it back
to the guest increases the base syscall time by a factor of 2.7
compared with 32on32 using direct trap to ring 1. (0.3270->0.8680
microseconds, measured with lmbench lat_syscall).

Since the 64 bit IDT can only contain 64 bit segment selectors we
cannot trap directly to compat mode ring 1. However implementing a
dedicated 64 bit ring 0 trap handler allows us to avoid much of the
GPF handler overhead and reduces the overhead to 1.7 times
(0.3270->0.5497 microseconds).

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-20 14:33:15 +00:00
Tim Deegan 2b30857831 Merge 2007-03-20 11:56:20 +00:00
kfraser@localhost.localdomain 4a4e26f321 svm: Remove special 'launch' scheduler tail function.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-20 11:28:45 +00:00
Mark McLoughlin b43e569511 Don't mount raw blktap disks for pygrub
Currently, we mount all blktap disks for pygrub so that it can boot
from e.g. QCOW images. However, since pygrub will handle a raw image
just fine without mounting through blktap, we shouldn't bother in that
case.

	Also, it looks like XendDomainInfo.create_vbd() takes the full disk
uname rather than the image path.

  Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-03-20 11:10:52 +00:00
kfraser@localhost.localdomain 49a55b0fb3 coredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-19 16:55:21 +00:00
kfraser@localhost.localdomain 28f7888d7f hvm: Do not save/restore shared_info gpfn location.
Instead of kludging a max_gpfn estimate in shared_info, add a new
XENMEM command to discover the actual maximum gpfn value as known by
the shadow code.

This needs to be more robust when we support HVM ballooning in future
anyway. One interesting point is that max_gpfn may be close to 4GB
even for small-memory HVM guests since for example SVGA LFB is mapped
into the I/O hole. We may need to special case the I/O hole somehow,
or provide some finer-grained way to find out which parts of the GPFN
space are actually used (e.g., get Xen to fill in a bitmap with 1 bit
per 1024 pages, or similar).

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-19 16:48:24 +00:00
Tim Deegan b81cb0e6ae [SVM] Move vmcb setup code for AP bringup out of the launch path
and into the earlier AP bringup code.  This stops it from resetting
the VCPUs of SMP guests into real mode on restore or migrate.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-19 16:28:24 +00:00
Ewan Mellor 0389938d6e Only import xenapi_create when using the Xen-API server -- this has additional
dependencies that we don't want to require in legacy mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-19 14:46:51 +00:00
Ian Campbell 3b8a13159a [LINUX] Update crash-kernel-32-on-64.patch with more sensible version from -mm.
The previous version had side effects outside of the crash dump code.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-19 14:00:07 +00:00
kfraser@localhost.localdomain f8b68fe2da hvm: Lower HPET frequency to 1/32 of the TSC.
The frequency of HPET device model is defined to be the same as TSC's,
but this doesn't work well with calibrate_tsc_hpet() in Linux kernel
2.6.16-33, causing some IA32 Linux HVM guests to failt o boot.

Calibrate_tsc_hpet() tries to figure out how many HPET ticks a TSC
cycle equals; it magnifies the result by scale of 2^32, trying to get
a more accurate result since it assumes the frequency of HPET in real
world is usually less than 1/100 of TSC, so the result of "(2^32 *
hpet_freq) / tsc_freq" may exceed 32bits, then a "divide error
(overflow)" would occur!

The result doesn't overflow every time because hpet_freq/tsc_freq may
less than 1.0 due to the little inaccuracy in the implementation of
HVM timer virtualization.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2007-03-19 13:48:00 +00:00
kfraser@localhost.localdomain 70fe04c768 Use HOSTCFLAGS with HOSTCC.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-19 13:44:31 +00:00
Christian Limpach 90f0206fe9 [ioemu] Cleanup media change code.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-19 11:15:28 +00:00
Ewan Mellor ebcb37da0c Fix memory size handling.
These were by Tom Wilkie <tom.wilkie@gmail.com>, and were dropped accidentally
by me when merging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-19 11:09:57 +00:00
kaf24@firebug.cl.cam.ac.uk f55d16fa21 minios: Various small fixes.
- Fixed type of variables in hypervisor.c.
- Fixed not removing a waiter from watch_queue.
- Make wait_for_watch() global accessible.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2007-03-19 09:34:42 +00:00
kaf24@firebug.cl.cam.ac.uk 569b0bb3b9 Add parentheses to trace_do_casts macro.
The arguments to this macro didn't have parentheses around them where
they were used.  If a call to a TRACE macro included an expression as
an argument, the cast to (unsigned long) could bind to just part of
the expression and lead to unexpected results.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
2007-03-19 09:32:52 +00:00
kaf24@firebug.cl.cam.ac.uk ca039d0244 hvm: Fix platform-irq handling in presence of irqbalance daemon.
The HVM guest did not respond when PV-on-HVM driver was tested on
the following conditions.

1. RHEL4u4
2. vcpu 4
3. irqbalance on
4. pv-on-hvm driver used.

Eventhandler did not work because IRQ was delivered to another vcpu by
irqbalance.

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2007-03-19 09:31:04 +00:00
Keir Fraser 3baee98422 xend: Avoid use of 'k' specifier to Py_BuildValue(). Its
implementation is broken until Python v2.4.3. Instead cast the C value
to long long and use the 'L' specifier.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-18 18:26:34 +00:00
Keir Fraser 2cea532bee xend: Fix Py_BuildValue() invocation (don't use I specifier).
Various error-handlign cleanup and fix a reference leakage.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-18 16:49:52 +00:00
Ewan Mellor 5515b59042 Re-raise log level for XendConfig (accidentally changed it to DEBUG previously).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-18 12:06:50 +00:00