Commit Graph
14700 Commits
Author SHA1 Message Date
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
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
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
Tom Wilkie c3df8d6442 Add config files for testing xm via XendAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-30 11:55:34 +01:00
Jim Fehlig 1598680350 Managed HVM guests are not displayed by 'xm list' after restarting xend.
This patch prevents writing empty configuration items to the domain's
sexpr configuration file.  Without the empty items, the sexpr is
parsed properly when xend is started.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-03-13 18:13:11 -06:00
Magnus Carlsson f25b2f271c Made tracing thread safe, and also print thread name. 2007-03-29 14:27:46 -07:00
kfraser@localhost.localdomain 76b2ca09df xend: Fix shutdown method after PV-on-HVM save/restore patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-29 23:31:58 +01:00
kfraser@localhost.localdomain 7f6d8fe5c9 acm: Provide the possibility to choose the VM label of domain-0 in the
kernel line in grub.conf. The format is
ssidref=<ssidref>:sHype:<policy name>:<vm label>. The name of the
policy specified here must be the same name as the in the policy
provided as a module during boot, otherwise the policy will not be
accepted and the system then starts without a policy. The user tool
for 'xm dumppolicy' has been adapted to show which entry in the binary
policy is used by domain-0.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-29 19:26:13 +01:00
kfraser@localhost.localdomain 61e7893daf hvm: Fix the assert on size in HVM MMIO flag-setting functions
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-29 19:23:41 +01:00
kfraser@localhost.localdomain a9214a8fee Enable VMX MSR bitmap support.
We use it to avoid VMExits on FS_BASE and GS_BASE MSR accesses.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-29 19:18:43 +01:00
kfraser@localhost.localdomain c38176aa2f xen: Rename remaining vcpu_flags as pause_flags.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-29 18:26:12 +01:00
kfraser@localhost.localdomain 939aae55f5 xen: Remove droppings from a previous patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-29 18:19:10 +01:00
kfraser@localhost.localdomain b5179d4756 xen: Remove {nmi_pending,nmi_masked,paused} vcpu bitflags.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-29 18:07:33 +01:00
Tim Deegan 09c1cd6992 Merge 2007-03-29 16:28:34 +00:00
Tim Deegan 9dd742c907 [HVM] Save/restore: PV-on-HVM driver save/restore support
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2007-03-29 16:27:52 +00:00
Tom Wilkie 5e7badb941 Let xm commands use domids with XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-29 17:09:49 +01:00
kfraser@localhost.localdomain 90bc7dea0e xen: Get rid of some VCPUF_* flags and move into their own byte fields.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-29 16:52:40 +01:00
Tim Deegan 56ada11259 Merge 2007-03-29 15:33:32 +00:00
Tim Deegan f881b16efa [HVM] Save/restore: fix missing return code in USB restore
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-29 15:32:08 +00:00
Tim Deegan 92c541f5a0 [HVM] Save/restore: Allow save/restore of multiple NICs
Signed-off-by: Tim Deegan <Tim.Deegan@xenource.com>
2007-03-29 15:30:01 +00:00
Tom Wilkie 82669d3a5e Finish off network in xm via XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-29 16:29:31 +01:00