Commit Graph
14718 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 6b2fe8aecf hvm ioemu x86: Avoid assumptions about memory map.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 17:58:06 +01:00
kfraser@localhost.localdomain d5f5ff766f Clean up save/restore state record handling. No need for Python to
read out the 'p2m size' field. Also that field is not needed at all
for HVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 16:34:56 +01:00
kfraser@localhost.localdomain 087d43326a hvm: Lazy memory allocation during HVM restore. General cleanup and
reduce gross assumptions about memory-map layout.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 16:18:28 +01:00
Ian Campbell 76de76e0f3 RFLAGS is in a known good state at start of day so no need to explicitly initialize.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-04-04 15:57:49 +01:00
kfraser@localhost.localdomain 8a54eb9690 hvm svm: Avoid intercepts when accessing a number of architectural MSRs.
1. Removes intercept of guest-specific MSRs
MSR_IA32_SYSENTER_{CS,ESP,EIP}, MSR_{L,C,}STAR, MSR_SYSCALL_MASK,
MSR_SHADOW_GS_BASE.

2. Removes code to deal with those intercepts, as well as the
FS/GS-base. Since long_mode_do_msr_read now became essentially a
switch of a single case + default, I removed the entire function and
inlined the remaining single case-statement into the original
MSR-access function.

Signed-off-by: Mats Petersson <mats.petersson@amd.com>
2007-04-04 11:57:28 +01:00
kfraser@localhost.localdomain 0031651ad1 Merge with xen-ia64-unstable.hg 2007-04-04 11:49:37 +01:00
kfraser@localhost.localdomain f9a4c3e319 hvm: hvm_io_assist() doesn't preoperly make use of its vcpu
parameter. Remove it to make it obvious that it can only be called for
the currently-executing vcpu.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 11:16:13 +01:00
kfraser@localhost.localdomain 2f0d5385de xen: Disable foreign-header size check if cross compiling.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 11:13:20 +01:00
kfraser@localhost.localdomain 4edabeff5a Remove hvm_drain_io() hypercall, simplify qemu main loop and do not
pause the domain on reboot (not necessary and defeats new deferred
shutdown logic).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 10:42:58 +01:00
Alex Williamson b5c89a14c0 merge with xen-unstable.hg 2007-04-03 13:04:51 -06:00
Christian Limpach 2bdbd3e193 [hvm] Keep track of time offset between domain time and dom0 time.
On each rtc time update from the hvm domain, we send an ioreq request
to qemu which then updates the time offset xenstore entry.  The time
offset is preserved across reboot and can be set on domain creation
by setting the rtc_timeoffset variable in a config file.

From: Andrei Petrov <andrei.petrov@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-03 13:22:37 +01:00
Ewan Mellor 9423a78d7f Added section on Xend's runtime dependencies.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-03 12:22:10 +01:00
kfraser@localhost.localdomain a9344ed582 xen: Allow vcpus to defer a shutdown request across critical
asynchronous operations (in particular, hvm ioreq requests).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-03 11:44:10 +01:00
Ewan Mellor 9123bf1da6 Remove unused import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-03 10:36:31 +01:00
kfraser@localhost.localdomain 9bea671737 Fix "xm migrate" hang on failure.
If a domain fails to restore, report back an error and close the
connection. This still leaves a confusing error from 'xm migrate' in
many cases, but it's much better than just sitting there.

Signed-off-by: John Levon <john.levon@sun.com>
2007-04-03 09:03:51 +01:00
kfraser@localhost.localdomain ebecb5a9d3 Fix the ia64 build after save/restore cleanups.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-04-03 09:03:03 +01:00
kfraser@localhost.localdomain f884964985 xend: Map re.compile on hosts_allow for XMLRPCServer.
Changeset 14601 removed a re.compile() map on hosts_allow,
hence breaking the tcp xmlrpc api ('str' has no attribute match
in xend-debug.log).

From: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-02 17:34:00 +01:00
kfraser@localhost.localdomain 30afd785f0 hvm vmx: VMX MSR bitmap format and size is VMX-specific, so move its
allocation and initialisation into VMX-specific code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-02 16:59:00 +01:00
kfraser@localhost.localdomain 8a3970eca4 hvm svm: Clear FS/GS base MSR intercepts.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
2007-04-02 16:51:52 +01:00
Steven Hand e2a44bc7a4 Some save/restore cleanups.
Signed-off-by: Steven Hand <steven@xensource.com>
2007-04-02 16:46:52 +01:00
kfraser@localhost.localdomain 970ce2580b xen: Remove two incorrect assertions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-02 16:26:23 +01:00
kfraser@localhost.localdomain f4169cc8d9 xen: Fix x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-02 15:29:42 +01:00
kfraser@localhost.localdomain eeafc64a2a xentop: Fix memory leak.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
2007-04-02 13:08:05 +01:00
kfraser@localhost.localdomain c6c944eabd hvm hap: Add hap option to user's manual.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
2007-04-02 13:06:48 +01:00
kfraser@localhost.localdomain cabcde1f1c hvm hap: P2M page table cleanup and bug fix.
Force P2M top-level page table to be allocated below 4GB
memory space when Xen is running under PAE mode. Also remove
hap.p2m_freelists because hap mode does not have P2M batch
allocation. The backpointer parameter of hap_alloc() function is
removed since this parameter is unused.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
2007-04-02 13:05:59 +01:00
kfraser@localhost.localdomain 011623229a xen: Extra %esp tracing on double fault.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-02 11:50:06 +01:00
Keir Fraser 75ba97629b linux: Remove a few redundant config options. Build util.c for ia64
and ifdef out a couple of functions that are not yet fully generic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 19:02:09 +01:00
Keir Fraser f24c3877e5 linux: Avoid use of ptep_get_and_clear_full name as it's a macro on
some architectures.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 17:22:46 +01:00
Keir Fraser 3e2ea003c4 libxc: Fix the build with some versions of gcc.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 16:52:36 +01:00
Keir Fraser c15c303a40 linux gntdev: Mark x86-specific code as such with ifdef.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 16:39:14 +01:00
Keir Fraser 2746bed0cd xen x86: Fix double-fault handler stack overflow.
1. Shrink stack frame for __print_symbol() by introducing a lock and
 making the big arrays static.
 2. Double the size of the double-fault stack.

Also fix the show_stack_overflow function.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 16:35:02 +01:00
Keir Fraser 6fb7ede847 xend: Implement auto-ballooning for Solaris.
/proc/xen/balloon is Linux-specific. Implement a Solaris backend
too. Also fix the FMRI for xend.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
2007-03-31 14:05:57 +01:00
Keir Fraser 7aeca46425 libxc: User-space grant table device.
Changes to libxc to enable easy access to the grant table device.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
2007-03-31 14:03:17 +01:00
Keir Fraser 990f0419bd linux: User-space grant table device.
A character device for accessing (in user-space) pages that have been
granted by other domains.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>

Fix ioctl interface to be 32/64-bit invariant. Move xen_class
mechanism to common util.c.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 13:53:24 +01:00
Keir Fraser 7fd0f937ba linux: Add a hook before a page table entry is cleared, for use with
the grant-table device.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
2007-03-31 12:42:02 +01:00
Keir Fraser 29f999ff69 xm: Fix an indentation bug.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-31 12:26:04 +01:00
Keir Fraser f5db79b294 blktap: Fix qcow2raw.
qcow2raw would hang the conversion just short of 100%, because the
final write queue was never being submitted.  If a blktap drivers read
synchronously, then "submit_events" and "complete" variables are
checked before getting set, so the fact that reads have finished is
not noticed, so the final write queue was never submitted.

Note that I have also removed the variables write_complete and
read_complete.  They were unused, and they were also not set correctly
in the synchronous case.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2007-03-31 12:24:55 +01:00
Keir Fraser ee4af65156 xen: Fix numa=on boot.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 12:20:31 +01:00
Alex Williamson 0d7e192430 merge with xen-unstable.hg 2007-03-30 17:18:42 -06:00
Keir Fraser 85b2cf8f06 hvm svm: Some code cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-30 19:02:40 +01:00
Keir Fraser fe9aa493d4 hvm vmx: Fix MSR-intercept bitmap initialisation (two bitmap offsets
are documented the wrong way round in the current PRM Vol.3). Clear
bits in the bitmap only /after/ it has been initialised to
all-1s. Clean up start-of-day info printing.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-30 18:42:49 +01:00
Keir Fraser 671d1e2c93 xen: Fix domain shutdown to synchronously stop domain execution.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-30 18:39:34 +01:00
Ian Campbell ea1303c633 [LINUX] Explcitly include linux/mutex.h in files which use mutexes, rather then
relying on an include via some other header.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-30 17:33:31 +01:00
Tom Wilkie 978632e730 Add support for HVM domains to new xm XenAPI create code
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-30 17:28:54 +01:00
Alex Williamson 260e4d9ab3 [IA64] Avoid insertion of pte.ma=001 into VHPT
A TLB entry shouldn't be inserted into VHPT when its memory
attribute field is 001 "software reserved".

Without this patch, a TLB fault expected by a guest OS is missing.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-03-30 10:27:15 -06:00
Alex Williamson c845f0bec3 [IA64] Trigger memory scrub
Continuous domain creation can sometimes fail by running out of
scrubbed pages.  Trigger it similar to x86.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2007-03-30 10:25:16 -06:00
Alex Williamson f8d6ae67d5 [IA64] Cleanup vcpu *d
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2007-03-30 10:21:17 -06:00
Keir Fraser 1064d675ae svm: Improve emulation of SMSW instruction for memory operands.
From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-30 17:13:50 +01:00
Keir Fraser d049abba4d hvm: Must increment RIP on INT3 instruction in SVM.
Also tighten up checking of valid exception intercepts -- we should
not vmexit on an exception we have not registered an interest in.
Signed-off-by Tom Woller <thomas.woller@amd.com>
Signed-off-by Thomas Friebel <thomas.friebel@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-30 17:02:46 +01:00
Ian Campbell ea62867372 [LINUX] Make sure to initialiase the xen features bitmap before first use on x86_64.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-30 14:13:53 +01:00