kfraser@localhost.localdomain [Wed, 8 Nov 2006 10:48:21 +0000 (10:48 +0000)]
[XEN] Add debug mode to xmalloc().
This detects programming mistakes such as:
* double free
* use after free
* write beyond bounds of allocation
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Wed, 8 Nov 2006 09:50:09 +0000 (09:50 +0000)]
This patch addresses bugzilla #649, enabling `xm list' to display the
actual amount of memory allocated by a guest. Also this patch:
- makes it more apparent that 'xm mem-set' has no effect on HVM's.
- show's that memory is changing if 'xm list' is issued while guest is
ballooning (w/o touching balloon driver)
Signed-off-by: Tommie McAfee <tommie.mcafee@unisys.com>
kasai.takanori@jp.fujitsu.com [Wed, 8 Nov 2006 09:38:06 +0000 (09:38 +0000)]
Add the Japanese keymap for VNC Server.
Signed-off-by: Takanori Kasai < kasai.takanori@jp.fujitsu.com >
Ewan Mellor [Thu, 2 Nov 2006 23:05:24 +0000 (23:05 +0000)]
fix xm-test configure.ac to not define RD_PATH which prevented env override
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Ewan Mellor [Wed, 1 Nov 2006 14:27:54 +0000 (14:27 +0000)]
Update README.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 1 Nov 2006 14:27:29 +0000 (14:27 +0000)]
Fix comment.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 1 Nov 2006 14:27:19 +0000 (14:27 +0000)]
Add helper script for releasing xm-test binary ISOs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 1 Nov 2006 08:42:02 +0000 (08:42 +0000)]
Bump xm-test version to 1.1 to accommodate new devices.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Ewan Mellor [Wed, 1 Nov 2006 09:21:27 +0000 (09:21 +0000)]
Allow the i386 ramdisk to be used on x86_64. Part of a patch from Yu Ping Y.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 1 Nov 2006 08:43:54 +0000 (08:43 +0000)]
Correct copy-n-paste error.
Also Whitespace cleanups.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Ewan Mellor [Wed, 1 Nov 2006 08:41:24 +0000 (08:41 +0000)]
Add xvd devices to the initrd.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Ewan Mellor [Wed, 1 Nov 2006 08:39:45 +0000 (08:39 +0000)]
Update all block tests to use the Xen Virtual Block Device (xvd) rather than IDEor SCSI.
This patch also modifies
09_block_attach_and_dettach_device_check_data_pos.py to force / to be
read-write otherwise the mkdir fails.
Also Whistspace cleanups.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Ewan Mellor [Wed, 1 Nov 2006 08:38:22 +0000 (08:38 +0000)]
The XenDomain class does not respect the arch defaults where
as XmTestDomain does. This part of the patch forces both HVM and
non-HVM tests to use XmTestDomain. With appropriate changes to the
extraConfig arg.
On PPC we need to use the arch defaults to get the console setup
correctly.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Ewan Mellor [Wed, 1 Nov 2006 08:34:55 +0000 (08:34 +0000)]
This fixes another missing part for x86-64 support in the xm testsuite.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@localhost.localdomain [Wed, 8 Nov 2006 00:03:11 +0000 (00:03 +0000)]
[XEN] Put the non-GPL license text in each public header file.
This excludes arch-powerpc.h and xencomm.h which require
confirmation from the original authors that the existing GPL
text can be removed and replaced.
Original patch from: Mark Johnson <mark.johnson@sun.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Tue, 7 Nov 2006 23:14:09 +0000 (23:14 +0000)]
[XEN] Fix 64-bit build.
This required fiddling the asm constraints of the atomic bitops. It
seems gcc isn't entirely happy with "+m": the manual says that the
'+' modifier should be used only when a register constraint is
available.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 18:13:12 +0000 (18:13 +0000)]
[XEN] License clarification.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 17:48:18 +0000 (17:48 +0000)]
[SVM] Fix an interrupt race window in the do_launch/vmrun/vmexit loop for AMD-V.
There is also some comment cleanup in this patch.
This problem found by Virtual Iron (Dave Winchell), and patch also
provided by VI.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Dave Winchell <dwinchell@virtualiron.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 17:46:40 +0000 (17:46 +0000)]
[HVM] VIOAPIC and VPIC cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 15:48:10 +0000 (15:48 +0000)]
[HVM] VLAPIC cleanups. vlapic tsruct is statically contained
inside the vcpu structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 13:13:52 +0000 (13:13 +0000)]
[HVM] Replace shared-memory PIC state with a set-irq-level hypercall.
This simplifies the IRQ logic significantly and avoids the bogus
hvm_pic_assist() on domain resume path.
There is more work to be done here. At least:
1. set-irq-level should really be set-interrupt-wire-level. Wire
state needs to be distinguished from PIC (in particular, PIC IRR)
state.
2. Hypercalls can be batched in qemu and pushed down in one
multicall.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 12:31:17 +0000 (12:31 +0000)]
[BLKTAP] No need for barrier when updating rsp_prod_pvt.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 11:54:52 +0000 (11:54 +0000)]
[LIBXC] Fix memory alloc/dealloc routines to return error properly.
Remove unnecessary decrease_reservation() from hvm builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 11:19:26 +0000 (11:19 +0000)]
[IA64] Build blktap driver by default.
Signed-off-by: Aron Griffis <aron@hp.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 11:17:39 +0000 (11:17 +0000)]
[BLKTAP] ia64 support
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 11:14:52 +0000 (11:14 +0000)]
[BLKTAP] avoid race between tapdisk and xvd daemon with ufe_ring.
- Tapdisk updates rsp_cons by ioctl(). on the other hand xvd daemon
reads rsp_cons in do_block_io_op() with RING_FULL().
Copy request and memory barrier before updating rsp_cons.
- Tapdisk access req_prod_pvt with select(). on the other hand xvd
daemon updates it in do_block_io_op().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 11:01:35 +0000 (11:01 +0000)]
[BLKTAP] Various cleanups necessary for ia64 support.
- remove magic number 8 and 64.
page size / sector size is 8 on x86, however on ia64 page size is
16kb.
blkring size is 64 on x86. however it's 128 on ia64.
- replace 0xFFFF with INVALID_GRANT_HANDLE
- don't map io ring into user space with uncachable.
kernel access the page with cacable and tapdisk uses memory barrier
so that it isn't necessary.
- remove printk warning and inserted new line.
- remove unused variable, page.
- add one BUG()
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 10:48:48 +0000 (10:48 +0000)]
Enhance HVM xentrace:
1) VMX xentrace data are store in current vcpu instead physical CPU.
2) Log PIO data in xentrace.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 10:46:03 +0000 (10:46 +0000)]
[XENAPI] Add 'image' field to xen_vbd_record, allowing an image to be
associated with the vbd. xend supports this field and the client
bindings need it to support existing images that are not under
control of an SR.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 10:41:35 +0000 (10:41 +0000)]
[XEN] Remove unnecessary FORCE_CRASH() macro.
Signed-off-by: Keir Fraser <keir@xensource.com>
Emmanuel Ackaouy [Tue, 7 Nov 2006 10:37:30 +0000 (10:37 +0000)]
[XEN] When balancing idlers per socket/core, do it one at a time.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 10:19:20 +0000 (10:19 +0000)]
[HVM][SVM] Turn off long mode (EFER.LMA) when CR0.PG==0.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 10:18:50 +0000 (10:18 +0000)]
[HVM][VMX] Disable IA32e mode in VM_ENTRY_CONTROLS when guest tries
to disable PG from LME mode.
Without this patch, the 64 Vista cannot boot.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 09:48:19 +0000 (09:48 +0000)]
[NET] back: Fix wrap to zero in transmit credit scheduler.
This could happen when credit_bytes == ~0UL (i.e., scheduling is 'disabled').
Signed-off-by: Kirk Allan <kallan@novell.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 09:35:57 +0000 (09:35 +0000)]
[HVM] MAke HVM hypercall table NR_hypercalls entries big.
Otherwise a buggy/malicious HVM guest can cause us to read
off the end of the table.
Signed-off-by: George Dunlap <gdunlap@xensource.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 09:32:02 +0000 (09:32 +0000)]
Trivial change to look in correct location for qemu-dm when using the debug wrapper on a 64 bit system.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 09:29:53 +0000 (09:29 +0000)]
PV-on-HVM: Fix PV-on-HVM drivers need maddr.h included for defn of maddr_t.
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
kfraser@localhost.localdomain [Tue, 7 Nov 2006 09:28:18 +0000 (09:28 +0000)]
[LINUX] Use pfn_to_page instead of relying in memory assumptions
This makes usage agnostic wrt the memory model being used.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
kaf24@localhost.localdomain [Tue, 7 Nov 2006 00:02:52 +0000 (00:02 +0000)]
[HVM] Fix 64-bit HVM domain creation.
1. vlapic must be initialised before VMX-specific init.
2. various shadow tweaks (e.g., check d->vcpu[0] before use).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Mon, 6 Nov 2006 20:47:10 +0000 (20:47 +0000)]
[SVM] Strip down svm_do_launch() pending complete removal.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Mon, 6 Nov 2006 20:23:08 +0000 (20:23 +0000)]
[SVM] Move VMCB construction to VCPU creation time.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Mon, 6 Nov 2006 18:57:33 +0000 (18:57 +0000)]
[HVM][SVM] Start moving SVM launch code to domain/vcpu initialisation.
This first patch is just enough to get SVM guests working again after
I broke SVM support earlier today.
Signed-off-by: Keir Fraser <keir@xensource.com>
Emmanuel Ackaouy [Mon, 6 Nov 2006 17:32:00 +0000 (17:32 +0000)]
[XEN] Initial support for multi-core and multi-threaded CPU scheduling.
In multi-core and multi-threaded systems, not all idling "CPUs" are
equal: When there are idling execution vehicles, it's better to spread
VCPUs across sockets and cores before co-scheduling cores and threads.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
Emmanuel Ackaouy [Mon, 6 Nov 2006 16:55:56 +0000 (16:55 +0000)]
[XEN] Optimize credit scheduler load balancing logic
When looking for remote work, only look at or grab a remove CPU's
lock when this CPU is not idling.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kfraser@localhost.localdomain [Mon, 6 Nov 2006 16:36:51 +0000 (16:36 +0000)]
[HVM] Replace relinquish_resources() destructor hook with
separate vcpu and domain destructors that are called at the
point the domain is finally destroyed.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 6 Nov 2006 15:46:28 +0000 (15:46 +0000)]
[HVM] Initialise AP TSC to same as BP TSC.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 6 Nov 2006 15:40:30 +0000 (15:40 +0000)]
[VMX] Get rid of special vm_launch schedule tail.
This required various hacking, including getting rid
of implicit vcpu==current assumption in __vmwrite()
and a couple of tweaks to the shadow code.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 6 Nov 2006 13:13:04 +0000 (13:13 +0000)]
[HVM] Move VMX VMCS initialisation to vcpu-initialisation time.
Simplify context initialisation (e.g., no need for selectors to
be given dummy non-zero values).
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Mon, 6 Nov 2006 11:36:38 +0000 (11:36 +0000)]
Catch IOError when using local configuration files, to give better diagnostics.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Mon, 6 Nov 2006 11:03:04 +0000 (11:03 +0000)]
[XEN] Re-jig VCPU initialisation -- VMX init requires generic VCPU
fields to already be allocated. This has led to a general cleanup of
domain and vcpu initialisation and destruction.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Mon, 6 Nov 2006 09:46:13 +0000 (09:46 +0000)]
[HVM] Be sure to nul terminate uuids in HVM SMBIOS tables.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Mon, 6 Nov 2006 09:02:15 +0000 (09:02 +0000)]
[LINUX] Don't use uint64_t parameter to gnttab_set_{,un}map_op() when
the upper 32 bits will never be used (i.e., i386 non-pae).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kaf24@localhost.localdomain [Sun, 5 Nov 2006 20:17:40 +0000 (20:17 +0000)]
[XEN] Replace hvm_setup_platform() with hvm_domain_initialise()
and extra code in hvm_vcpu_initialise(). Remove 'apic' config
option -- HVM CPUs will always have an APIC (which should be
set up in virtual wire mode for backward compatibility, just as
in a real system).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 4 Nov 2006 20:13:22 +0000 (20:13 +0000)]
[XEN] Do not halt on exceptions-with-interrupts-disabled and double faults.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 4 Nov 2006 19:50:59 +0000 (19:50 +0000)]
[XEN] Simplify domain shutdown -- no need to synchronously halt execution.
This avoids a possible deadlock on the per-domain 'big lock'.
No control tools depend on synchronous halting of execution (e.g.,
save/restore already expect that secondary CPUs were halted
synchronously under the control of the guest itself). This makes the
code rather less complex.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 4 Nov 2006 19:26:29 +0000 (19:26 +0000)]
[XEN] Avoid taking domain biglock in the page-fault handler.
This avoids deadlock situation with the shadow_lock.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 3 Nov 2006 16:51:28 +0000 (16:51 +0000)]
[XEND] Fix xen_version and missing os import
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 3 Nov 2006 15:47:05 +0000 (15:47 +0000)]
[XEND] Cleanup HVM image shutdown watch and move readDom call away
from image.py
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 3 Nov 2006 15:17:00 +0000 (15:17 +0000)]
[XEND] XendDomainInfo.refreshShutdown is called from image.py.
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 3 Nov 2006 15:15:16 +0000 (15:15 +0000)]
[XEND] Fix HVM image shutdown.
Missed HVM image creation's hook into XendDomainInfo.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 3 Nov 2006 12:32:26 +0000 (12:32 +0000)]
[HVM] More printk cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 3 Nov 2006 12:10:02 +0000 (12:10 +0000)]
[LINUX] Clean up header includes (gnttab.h from fixmap.h).
include/asm-{i386,x86_64}/mach-xen/asm/fixmap.h was needlessly
including include/xen/gnttab.h. Removing this made necessary explicit
inclusion of that header in tpm_xen.c, the build of which should not
have succeeded on non-x86 architectures before.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Fri, 3 Nov 2006 12:08:42 +0000 (12:08 +0000)]
[BLKTAP] Fix gnttab unmap call to specify that address contains PTE.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Fri, 3 Nov 2006 11:54:33 +0000 (11:54 +0000)]
[XEN] Fix shadow-lock macro backslash alignments.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Alastair Tse [Fri, 3 Nov 2006 11:43:27 +0000 (11:43 +0000)]
Merge
Alastair Tse [Fri, 3 Nov 2006 11:42:57 +0000 (11:42 +0000)]
[XEND] Don't hide the 'type' SXP config item from HVM guests
Should allow network devices to properly initialised in HVM guests.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 3 Nov 2006 11:38:24 +0000 (11:38 +0000)]
merge.
kfraser@localhost.localdomain [Fri, 3 Nov 2006 11:37:41 +0000 (11:37 +0000)]
[XEN] Adjust logging levels of a few printk messages.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 3 Nov 2006 11:29:16 +0000 (11:29 +0000)]
[XEND] Make sure lookups cause a refresh so xm list gets the latest
info.
Signed-off-by: Alastair Tse <atse@xensource.com>
Steven Hand [Fri, 3 Nov 2006 11:22:22 +0000 (11:22 +0000)]
Fix syntax error.
Signed-off-by: Steven Hand <steven@xensource.com>
kfraser@localhost.localdomain [Fri, 3 Nov 2006 11:15:10 +0000 (11:15 +0000)]
[XEN] Fix log-level printk logic for multi-line and partial-line printks.
Add support for switching to print-all mode, and use this for
debug-key output.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 3 Nov 2006 10:52:29 +0000 (10:52 +0000)]
[XEN] Remove VGCF_hvm_guest, replace with XEN_DOMINF_hvm_guest.
Rename DOMFLAGS_* to XEN_DOMINF_*.
Clean up tools to deal with flags changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 3 Nov 2006 10:41:20 +0000 (10:41 +0000)]
[XEND] Handle permission denied when calling xc.domain_getinfo
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 3 Nov 2006 10:39:32 +0000 (10:39 +0000)]
[XEND][XM] Restore old state string in xm.
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 3 Nov 2006 10:38:18 +0000 (10:38 +0000)]
[XEND] Silence Xen API debugging messages.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 3 Nov 2006 10:26:36 +0000 (10:26 +0000)]
[XEN] Quieten down tracing when fail (quite expectedly) to map INVALID_MFN.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Thu, 2 Nov 2006 23:01:32 +0000 (23:01 +0000)]
I found a small bug in xenmon. Even if I gave xenmon a wrong
parameter, xenmon did not become an error.
This patch adds a checking of wrong parameter into xenmon.
If wrong parameter is given, xenmon shows the following error
messages.
usage: xenmon.py [options]
xenmon.py: error: No parameter required
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@localhost.localdomain [Thu, 2 Nov 2006 22:24:20 +0000 (22:24 +0000)]
[XEN] Add 'loglvl' and 'guest_loglvl' boot parameters.
<lvl> := none|error|warning|info|debug|all
loglvl=<lvl_print_always>[/<lvl_print_ratelimit>]
<lvl_print_always>: log level which is always printed
<lvl_print_rlimit>: log level which is rate-limit printed
'loglvl' applies to non-guest-related messages.
'guest_loglvl' applies to guest-related messages.
Defaults: loglvl=warning ; guest_loglvl=none/warning
Also clean up hvm_print_line().
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Thu, 2 Nov 2006 18:52:04 +0000 (18:52 +0000)]
Merge
Alastair Tse [Thu, 2 Nov 2006 18:51:23 +0000 (18:51 +0000)]
[XEND] Reverting self.domains UUID indexing
Due to localhost migration, it is possible to have two VMs with the
same UUID on the same host. So instead, we revert back to XendDomain
where there are two lists, a "domains" of active domains indexed by
domid and a "managed_domains" which is a list of all domains whose
lifecycle is managed by Xend.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Thu, 2 Nov 2006 18:19:22 +0000 (18:19 +0000)]
Dynamically link to libgcc on Solaris. Also clean up duplicate -Wall flags.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Thu, 2 Nov 2006 18:18:19 +0000 (18:18 +0000)]
[BLKTAP] Fix Linux and Xen gnttab map operations when mapping into
PTEs above 4GB on PAE systems.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kfraser@localhost.localdomain [Thu, 2 Nov 2006 15:55:51 +0000 (15:55 +0000)]
[HVM] Clean up VCPU initialisation in Xen. No longer
parse HVM e820 tables in Xen (add some extra HVM parameters as a
cleaner alternative). Lots of code removal.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Thu, 2 Nov 2006 15:48:32 +0000 (15:48 +0000)]
[XEND] Fix paused state being overriden by refreshShutdown
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Thu, 2 Nov 2006 14:27:16 +0000 (14:27 +0000)]
Merge with tip
Alastair Tse [Thu, 2 Nov 2006 14:26:01 +0000 (14:26 +0000)]
[XEND][XM] Fixes for xm list output
Do not output image, security if they are empty
Change xm list slightly to be more informative about state.
Add back store_mfn and console_mfn to the SXP so save/restore can work
again.
Signed-off-by: Alastair Tse <atse@xensource.com>
Steven Smith [Thu, 2 Nov 2006 13:20:32 +0000 (13:20 +0000)]
[XEN] Better parameter checking for grant table copy operation.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Ian Campbell [Thu, 2 Nov 2006 11:56:26 +0000 (11:56 +0000)]
PV-on-HVM: Conditionally disable checksum offload for receive on some
older kernels.
On some older kernels the CHECKSUM_UNNECESSARY flag on received
skbuffs is not honoured by all subsystems, specifically netfilter
under 2.6.9-42.EL
To work around this we need to ensure that the correct checksum is
calculated at some point. We can cause the backend to do this for us
by advertising to the backend that we cannot support checksum offload.
The correlation of this issue with the presence of NETIF_F_TSO is not
100% but it is a good first approximation.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Thu, 2 Nov 2006 11:56:26 +0000 (11:56 +0000)]
PV-on-HVM: Tweak reboot.c to be compatible with older kernels.
call_usermodehelper_keys() was not available until 2.6.13 but since we
pass session_keyring as NULL we may as well use call_usermodehelper()
anyway.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Thu, 2 Nov 2006 11:56:26 +0000 (11:56 +0000)]
PV-on-HVM: Fix PV-on-HVM drivers for IA64.
Thanks to Kasai Takanori and Doi Tsunehisa for testing.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Thu, 2 Nov 2006 11:56:26 +0000 (11:56 +0000)]
PV-on-HVM: Use ln -nsf in mkbuildtree to avoid creating a symlink loop
if include/xen/interfaces already exists.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Thu, 2 Nov 2006 11:11:28 +0000 (11:11 +0000)]
[TOOLS] Paravirt guests have their memory allocated in the
libxenguest builder function.
Again, PPC and IA64 will need to do some fixing up.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 2 Nov 2006 07:46:06 +0000 (07:46 +0000)]
[XEND] Compare result of blkdev_name_to_number() explicitly against None.
Signed-off-by: Keir Fraser <keir@xensource.com>
Emmanuel Ackaouy [Wed, 1 Nov 2006 19:44:34 +0000 (19:44 +0000)]
[XEN] Fix credit scheduler cap mechanism not to over park VCPUs
We used to park a capped VCPU when it had ran its fair share, even
if the fair share was below its cap. With this change, make sure
we only park once a VCPU has overrun its actual cap.
We could also try to make the capping mechanism more accurate by
parking and unparking at a finer granularity (currently done on
30ms boundaries) but that'll be for a different time.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kfraser@localhost.localdomain [Wed, 1 Nov 2006 18:48:57 +0000 (18:48 +0000)]
[XEN] Fix x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Wed, 1 Nov 2006 18:39:33 +0000 (18:39 +0000)]
Return the restored VM at the end of XendDomainInfo.restore.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Wed, 1 Nov 2006 18:37:23 +0000 (18:37 +0000)]
[HVM] Move shadow initialisation into domain-creation hypercall.
Allocate HVM guest memory in the libxc builder function rather
than in xend. Clean up fall out from these changes.
Todo: Fix ia64. Move PV builder to same model (it should allocate the
memory rather than xend doing so -- then it can avoid using
xc_get_pfn_list()).
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Wed, 1 Nov 2006 18:32:45 +0000 (18:32 +0000)]
Print errno for each of the "Error when writing to state file" messages.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 1 Nov 2006 18:20:23 +0000 (18:20 +0000)]
Return the domain renaming during migration.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Wed, 1 Nov 2006 16:08:19 +0000 (16:08 +0000)]
[HVM] HVM is now a flag parameter to domain-creation hypercall.
This cleans up HVM start-of-day in Xen and means that the
HVM status of a domain is maintained from cradle to grave.
Signed-off-by: Keir Fraser <keir@xensource.com>