Commit Graph
6122 Commits
Author SHA1 Message Date
iap10@freefall.cl.cam.ac.uk 8bbdb3ceb6 Optimize the Linux arch xen implementation of "set_pte_at".
Signed-off-by: ian@xensource.com
2005-08-13 21:26:49 +00:00
iap10@freefall.cl.cam.ac.uk 4595c9c24e I missed a couple of files out of the patch to wrap calls to update_va_mapping with BUG_ON(). [We really need an equivalent of 'citool' for mercurial...]
Signed-off-by: ian@xensource.com
2005-08-13 21:01:35 +00:00
iap10@freefall.cl.cam.ac.uk f34ffe2dfd Add some profiling support for writeable pagetables.
Signed-off-by: ian@xensource.com
2005-08-13 20:47:47 +00:00
iap10@freefall.cl.cam.ac.uk ab7d21ef3a Remove the BUG() from HYPERVISOR_update_va_mapping and change all the appropriate callers to wrap in BUG_ON()
Signed-off-by: ian@xensource.com
2005-08-12 16:05:37 +00:00
kaf24@firebug.cl.cam.ac.uk ff3b0e5f48 This patch fixes "xm reboot" command.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-08-11 22:18:27 +00:00
kaf24@firebug.cl.cam.ac.uk 42996316f5 domU always reports an error "Ignoring shutdown request: -1" when we
shutdown it from dom0 (using "xm shutdown" command). This patch fixes
it.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-08-11 22:18:02 +00:00
kaf24@firebug.cl.cam.ac.uk 3184c77cda Memory leak in xc_linux_save, and uninitialised var
in secpol_tool.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
2005-08-11 22:12:11 +00:00
kaf24@firebug.cl.cam.ac.uk 7880142fc7 Fix loop iterator aliasing in x86/32 memory initialisation.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
2005-08-11 21:52:22 +00:00
kaf24@firebug.cl.cam.ac.uk 0e1629cc16 Support VCPU migration for VMX guests.
Add a hook to support CPU migration for VMX domains

Reorganize the low level asm code to support relaunching a VMCS on a different
logical CPU.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:38:58 +00:00
kaf24@firebug.cl.cam.ac.uk 1873dc6b45 Fix getdomaininfo for vmx guests.
Replaces Intel patch [14/15].
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-11 21:19:45 +00:00
kaf24@firebug.cl.cam.ac.uk 8e221d71dc Remove arch/xen/x86_64/kernel/init_task.c from sparse tree. It's
identical to the base file, and already marked as a c-link.

Signed-off-by: Chris Wright <chrisw@osdl.org>
2005-08-11 21:09:06 +00:00
kaf24@firebug.cl.cam.ac.uk 7f499abfcb A simple make ARCH=xen clean && make ARCH=xen vmlinuz will fail because
arch/xen/x86_64/kernel/pci-nommu.c and arch/xen/x86_64/kernel/pci-dma.c
symlinks get removed and relinked to base implementation.  Make these non
c-obj's to preserve sparse tree links.

Signed-off-by: Chris Wright <chrisw@osdl.org>
2005-08-11 21:08:51 +00:00
kaf24@firebug.cl.cam.ac.uk 1e9c20a94e Change vpit->period and friends to count in nanoseconds.
This actually reduces the amount of 64 bit math we need to do.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:07:17 +00:00
kaf24@firebug.cl.cam.ac.uk 6152a04c00 Implement event filtering command line options for xentrace.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:06:35 +00:00
kaf24@firebug.cl.cam.ac.uk 065e90e43a When the guest shuts down a VM, make sure that the domain gets destroyed.
Device model needs to do xm destroy before it exits on
guest shutdown/poweroff/halt -p.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:06:15 +00:00
kaf24@firebug.cl.cam.ac.uk 19b77ba87c [ We'll try to get in a proper fix into 3.0 - this is just the backup plan]
Don't attempt to create paravirtualized devices for VMX domains for now.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:05:58 +00:00
kaf24@firebug.cl.cam.ac.uk 094f89109d Fix comments about the localtime option.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:05:21 +00:00
kaf24@firebug.cl.cam.ac.uk eaba06e1d3 Clean up unused junk in xemexample.vmx
Signed-off-by: YongKang You <yongkang.you@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:04:35 +00:00
kaf24@firebug.cl.cam.ac.uk 66c1bb81a1 Need to reset device model pid on reboot
Without this, xend will not spawn a new device model process after the reboot.

Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:04:17 +00:00
kaf24@firebug.cl.cam.ac.uk ca21e61a00 Support rebooting VMX domains
Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:03:16 +00:00
kaf24@firebug.cl.cam.ac.uk f1e7438c35 Handle VMX domains correctly across xend restarts
This patch remembers the device model pid across xend restarts and
avoids creating duplicate device model processes.

Also, device models don't inherit socket fds from xend (which are closed
on exec now), which used to prevent xend restarting.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:02:51 +00:00
kaf24@firebug.cl.cam.ac.uk 55aaa284cf Separate out VMCS host state initialization from the rest
This is needed to support virtual cpu migration, because the host state
initialization is done on every migration, but the rest of the initialization
is done once per vcpu.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:01:36 +00:00
kaf24@firebug.cl.cam.ac.uk cd5f4dd4c3 Improved error reporting on vmlaunch/vmresume failure.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 21:01:10 +00:00
kaf24@firebug.cl.cam.ac.uk ab6d52907c Fix config file parsing for VMX domains.
If we define "vif" in the config file, image.py will raise error "vmx:
missing vbd configuration". The reason is "vif" is dealt with as a "vbd"
device.

This patch fixes this issue by dealing with "vbd" and "vif " separately,
removing "macaddr" arg and parsing mac address from "vif" instead.

Also, the vbd doesn't have to be a file anymore, but can be a physical
disk partition.

Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-11 20:58:08 +00:00
kaf24@firebug.cl.cam.ac.uk 2521f14bda This patch addresses Rustys' [1]suggestions. Most visibly:
Entries in the store:
/cpus/cpuX/online -> /cpu/X/availability

Values:
0|1 -> online|offline

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-08-11 20:57:09 +00:00
kaf24@firebug.cl.cam.ac.uk c4e885cb53 Fix handling of memory holes for Xen heap and domain 0
kernel image and ramdisk.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-11 18:03:22 +00:00
kaf24@firebug.cl.cam.ac.uk a606f89f0e Clean up event-channel notification code in Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-11 16:48:36 +00:00
kaf24@firebug.cl.cam.ac.uk 4afea39c56 Fix where "!" operator used in Bitwise operation.
In IBM we have an internal source code scanner called BEAM. We have run
it against Xen and here are some of the results.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
2005-08-11 16:23:54 +00:00
kaf24@firebug.cl.cam.ac.uk e20872cf5e More time fixes. Now time is set properly in domU's, and
settimeofday() is simplified and fixed.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-11 13:07:08 +00:00
twilkie@paploo.uk.xensource.com 3140b13b50 Added support for abbreviated xm sub commands 2005-08-11 12:06:32 +00:00
kaf24@firebug.cl.cam.ac.uk 0b3823d582 PAE page directories must be below 4GB. Based on a patch
from Gerd Knorr.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-11 10:34:32 +00:00
kaf24@firebug.cl.cam.ac.uk 954a35eeb5 The following patch provides x86_64 SMP support for xen linux. Many,
many thanks to the help for bug fixes, cleanups, good domU support,
and more from Jun and Xin.  I've tested this on a couple different
machines, and made sure the UP build still boots and works.  dom0 and
domU smp both work.  There's still some cleanups to do, but we'd prefer
to do the last bit in tree.  This doesn't update defconfigs just yet.
That'll be a follow-on patch shortly, so for now, you'll have to manually
enable CONFIG_SMP if you'd like to test.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-11 08:59:47 +00:00
kaf24@firebug.cl.cam.ac.uk 5dba835ba5 Since Xend doesn't use twisted anymore, remove the references from the
Makefile.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
2005-08-11 08:58:40 +00:00
kaf24@firebug.cl.cam.ac.uk 66e693a5c0 Remove qemu-vgaram-bin. It's not used any more. 2005-08-11 08:57:48 +00:00
kaf24@firebug.cl.cam.ac.uk 2f403612d8 The attached patch fixes the xm list command, which very
recently stopped working if security was enabled.

xm list fails if security is enabled because of a single
additional "%" character in a print.

Signed-off-by: Reiner Sailer <sailer@watson.ibm.com>
2005-08-11 08:55:47 +00:00
cl349@firebug.cl.cam.ac.uk 3a264694de merge? 2005-08-10 21:55:36 +00:00
iap10@firebug.cl.cam.ac.uk 7b4525c5aa Enable reiserfs in x86_64 domU kernel
Signed-off-by: ian@xensource.com
2005-08-10 17:48:03 +00:00
cl349@firebug.cl.cam.ac.uk b34f79ff69 merge? 2005-08-10 17:06:29 +00:00
iap10@firebug.cl.cam.ac.uk 90c0e3301d Install libxenstore in /usr/lib64 for 64 bit builds
Signed-off-by: ian@xensource.com
2005-08-10 16:52:03 +00:00
cl349@firebug.cl.cam.ac.uk 282447bac6 Make xenconsole more friendly when invoked directly.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-10 16:47:07 +00:00
kaf24@firebug.cl.cam.ac.uk 1c57a9e116 Small time fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-10 16:03:31 +00:00
kaf24@firebug.cl.cam.ac.uk b6e5a7b02b Fix wallclock initialisation in domain0.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-10 15:14:50 +00:00
kaf24@firebug.cl.cam.ac.uk b1231e1b08 Fix domain0 builder for PAE.
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-10 14:11:40 +00:00
kaf24@firebug.cl.cam.ac.uk add4888a4d Fix 64-bit __get_user() on 32-bit x86. Needed for PAE.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-10 13:06:00 +00:00
kaf24@firebug.cl.cam.ac.uk 2de676fedb Fix stupid typo in previous checkin (stopped time.c
from compiling on 32-bit x86).
2005-08-10 13:05:22 +00:00
kaf24@firebug.cl.cam.ac.uk e9041e1e82 Fix time handling on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-10 12:56:47 +00:00
twilkie@paploo.uk.xensource.com cbc34f7812 Fix simple index error in error handling. Now reports correct domain name in error message. 2005-08-10 12:21:39 +00:00
kaf24@firebug.cl.cam.ac.uk 509bb24d17 merge 2005-08-10 09:50:15 +00:00
kaf24@firebug.cl.cam.ac.uk 15f4fae9dc dma_map_single can't sleep since it may be called with locks held, or
interrupts off, etc.   Thus it shouldn't make sleeping allocations.

Signed-off-by: Chris Wright <chrisw@osdl.org>
2005-08-10 09:50:05 +00:00
cl349@firebug.cl.cam.ac.uk efd6f7db4d merge? 2005-08-10 09:47:13 +00:00