aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | Remove unnecessary union in grant table map/unmap ops.akw27@arcadians.cl.cam.ac.uk2005-08-137-26/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All addresses, host virtual and PTEs, are now passed in the cunningly ambiguous "host_addr" field, rather than in an anonymous union.
* | | | | | | | If block-create didn't work, then chances are block-destroy doesn't work kaf24@firebug.cl.cam.ac.uk2005-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | either right :-) In this case, XendDomain.py is just calling a function that doesn't exist (device_destroy instead of device_delete). Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | | | | | | | xm block-create doesn't work. It seems like this command hasn't even kaf24@firebug.cl.cam.ac.uk2005-08-132-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | been tested (perhaps since the un-Twisting?). This particular problem was that one function was being called with self instead of the right argument and another function's return value was being used when it didn't actually return anything. This patch also improves the error handling a bit by making sure we don't thrown an exception on a log statement with a None value. In general, one should always use the % formatter instead of concatination for strings in Python (even though this is not what this patch does). Signed-off-by: Anthony Liguori
* | | | | | | | This changest allows grant mappings to arbitrary PTEs.akw27@arcadians.cl.cam.ac.uk2005-08-125-71/+329
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The map operation now takes PTE addresses as well as virtual addresses. The contains_pte flag is used to indicate what sort of address is in the map request. Additionally, this patch: - fixes grant mappings to user space. - fixes overflow testing when you run out of maptrack entry space. Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk> Signed-off-by: Leoffrey Lefebvre <geoffrey.g.lefebvre@intel.com>
| * | | | | | | | mergeiap10@freefall.cl.cam.ac.uk2005-08-125-27/+21
| |\| | | | | | | | | |/ / / / / / | |/| | | | | |
| | * | | | | | Remove the BUG() from HYPERVISOR_update_va_mapping and change all the ↵iap10@freefall.cl.cam.ac.uk2005-08-125-27/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | appropriate callers to wrap in BUG_ON() Signed-off-by: ian@xensource.com
| * | | | | | | Build xenstore interface as shared library.kaf24@firebug.cl.cam.ac.uk2005-08-122-15/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * | | | | | | another mergekaf24@firebug.cl.cam.ac.uk2005-08-121-1/+1
| |\ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
* | | | | | | | forget to substitute CC back to gccvh249@arcadians.cl.cam.ac.uk2005-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Hanquez <vincent@xensource.com>
| * | | | | | | mergekaf24@firebug.cl.cam.ac.uk2005-08-128-52/+29
| |\ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
* | | | | | | | make needlessly global functions static and use NULL instead of 0 for pointervh249@arcadians.cl.cam.ac.uk2005-08-126-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Hanquez <vincent@xensource.com>
* | | | | | | | not valid file descriptor is -1 not 0vh249@arcadians.cl.cam.ac.uk2005-08-121-1/+1
| | | | | | | |
* | | | | | | | remove pointless NULL checks before free()vh249@arcadians.cl.cam.ac.uk2005-08-126-42/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Hanquez <vincent@xensource.com>
| * | | | | | | Fix wallclock time when the offset relative to the epochkaf24@firebug.cl.cam.ac.uk2005-08-126-23/+56
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1 Jan 1970 00:00:00) is negative. This happens in some LTP tests, for example. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | | | | Rearrange code in __start_xen() to work around internalkaf24@firebug.cl.cam.ac.uk2005-08-121-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiler error in x86/64 gcc. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | | | | Fix --output-pid (broken when we fixed --pid-file).kaf24@firebug.cl.cam.ac.uk2005-08-121-4/+3
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to Jerone Young for spotting this. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* | | | | | This patch fixes "xm reboot" command.kaf24@firebug.cl.cam.ac.uk2005-08-111-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
* | | | | | domU always reports an error "Ignoring shutdown request: -1" when wekaf24@firebug.cl.cam.ac.uk2005-08-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shutdown it from dom0 (using "xm shutdown" command). This patch fixes it. Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
* | | | | | Memory leak in xc_linux_save, and uninitialised varkaf24@firebug.cl.cam.ac.uk2005-08-112-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in secpol_tool. Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
* | | | | | Fix loop iterator aliasing in x86/32 memory initialisation.kaf24@firebug.cl.cam.ac.uk2005-08-111-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
* | | | | | Support VCPU migration for VMX guests.kaf24@firebug.cl.cam.ac.uk2005-08-119-101/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | Fix getdomaininfo for vmx guests.kaf24@firebug.cl.cam.ac.uk2005-08-111-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaces Intel patch [14/15]. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | | | Remove arch/xen/x86_64/kernel/init_task.c from sparse tree. It'skaf24@firebug.cl.cam.ac.uk2005-08-111-49/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identical to the base file, and already marked as a c-link. Signed-off-by: Chris Wright <chrisw@osdl.org>
* | | | | | A simple make ARCH=xen clean && make ARCH=xen vmlinuz will fail becausekaf24@firebug.cl.cam.ac.uk2005-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | Change vpit->period and friends to count in nanoseconds.kaf24@firebug.cl.cam.ac.uk2005-08-111-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | Implement event filtering command line options for xentrace.kaf24@firebug.cl.cam.ac.uk2005-08-113-8/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Edwin Zhai <edwin.zhai@intel.com> Signed-off-by: Arun Sharma <arun.sharma@intel.com>
* | | | | | When the guest shuts down a VM, make sure that the domain gets destroyed.kaf24@firebug.cl.cam.ac.uk2005-08-112-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | [ We'll try to get in a proper fix into 3.0 - this is just the backup plan]kaf24@firebug.cl.cam.ac.uk2005-08-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't attempt to create paravirtualized devices for VMX domains for now. Signed-off-by: Arun Sharma <arun.sharma@intel.com>
* | | | | | Fix comments about the localtime option.kaf24@firebug.cl.cam.ac.uk2005-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Arun Sharma <arun.sharma@intel.com>
* | | | | | Clean up unused junk in xemexample.vmxkaf24@firebug.cl.cam.ac.uk2005-08-111-43/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: YongKang You <yongkang.you@intel.com> Signed-off-by: Arun Sharma <arun.sharma@intel.com>
* | | | | | Need to reset device model pid on rebootkaf24@firebug.cl.cam.ac.uk2005-08-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | Support rebooting VMX domainskaf24@firebug.cl.cam.ac.uk2005-08-113-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ke Yu <ke.yu@intel.com> Signed-off-by: Arun Sharma <arun.sharma@intel.com>
* | | | | | Handle VMX domains correctly across xend restartskaf24@firebug.cl.cam.ac.uk2005-08-116-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | Separate out VMCS host state initialization from the restkaf24@firebug.cl.cam.ac.uk2005-08-111-18/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | Improved error reporting on vmlaunch/vmresume failure.kaf24@firebug.cl.cam.ac.uk2005-08-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Arun Sharma <arun.sharma@intel.com>
* | | | | | Fix config file parsing for VMX domains.kaf24@firebug.cl.cam.ac.uk2005-08-112-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | This patch addresses Rustys' [1]suggestions. Most visibly:kaf24@firebug.cl.cam.ac.uk2005-08-112-42/+37
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Entries in the store: /cpus/cpuX/online -> /cpu/X/availability Values: 0|1 -> online|offline Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
* | | | | Fix handling of memory holes for Xen heap and domain 0kaf24@firebug.cl.cam.ac.uk2005-08-112-28/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kernel image and ramdisk. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | | Clean up event-channel notification code in Xen.kaf24@firebug.cl.cam.ac.uk2005-08-115-26/+32
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | | Fix where "!" operator used in Bitwise operation. kaf24@firebug.cl.cam.ac.uk2005-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | More time fixes. Now time is set properly in domU's, andkaf24@firebug.cl.cam.ac.uk2005-08-114-67/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | settimeofday() is simplified and fixed. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | | Added support for abbreviated xm sub commandstwilkie@paploo.uk.xensource.com2005-08-111-0/+4
| | | | |
* | | | | PAE page directories must be below 4GB. Based on a patchkaf24@firebug.cl.cam.ac.uk2005-08-114-13/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from Gerd Knorr. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | | The following patch provides x86_64 SMP support for xen linux. Many,kaf24@firebug.cl.cam.ac.uk2005-08-1113-7/+656
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | Since Xend doesn't use twisted anymore, remove the references from the kaf24@firebug.cl.cam.ac.uk2005-08-111-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makefile. Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
* | | | | Remove qemu-vgaram-bin. It's not used any more.kaf24@firebug.cl.cam.ac.uk2005-08-113-5/+2
| | | | |
* | | | | The attached patch fixes the xm list command, which verykaf24@firebug.cl.cam.ac.uk2005-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | merge?cl349@firebug.cl.cam.ac.uk2005-08-101-1/+1
|\ \ \ \ \
| * | | | | Enable reiserfs in x86_64 domU kerneliap10@firebug.cl.cam.ac.uk2005-08-101-1/+1
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: ian@xensource.com
* | | | | merge?cl349@firebug.cl.cam.ac.uk2005-08-102-11/+8
|\| | | |