Commit Graph
12289 Commits
Author SHA1 Message Date
Ewan Mellor c0b2fe79a2 Bump xm-test version to 1.1 to accommodate new devices.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-01 08:42:02 +00:00
Ewan Mellor e1502fb422 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>
2006-11-01 09:21:27 +00:00
Ewan Mellor 9855faf004 Correct copy-n-paste error.
Also Whitespace cleanups.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-01 08:43:54 +00:00
Ewan Mellor f19d56d6dd Add xvd devices to the initrd.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-01 08:41:24 +00:00
Ewan Mellor 3cb85f33f0 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>
2006-11-01 08:39:45 +00:00
Ewan Mellor 240c6346f7 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>
2006-11-01 08:38:22 +00:00
Ewan Mellor c51e990ede This fixes another missing part for x86-64 support in the xm testsuite.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-01 08:34:55 +00:00
kaf24@localhost.localdomain 1cbd4a6303 [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>
2006-11-08 00:03:11 +00:00
kaf24@localhost.localdomain 34c45267cf [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>
2006-11-07 23:14:09 +00:00
kfraser@localhost.localdomain b9649d8627 [XEN] License clarification.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-07 18:13:12 +00:00
kfraser@localhost.localdomain 7d6376a63a [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>
2006-11-07 17:48:18 +00:00
kfraser@localhost.localdomain 18f003979c [HVM] VIOAPIC and VPIC cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-07 17:46:40 +00:00
kfraser@localhost.localdomain 1aa6e42118 [HVM] VLAPIC cleanups. vlapic tsruct is statically contained
inside the vcpu structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-07 15:48:10 +00:00
kfraser@localhost.localdomain 25f5b0ff15 [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>
2006-11-07 13:13:52 +00:00
kfraser@localhost.localdomain bcc2aed22a [BLKTAP] No need for barrier when updating rsp_prod_pvt.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-07 12:31:17 +00:00
kfraser@localhost.localdomain 428e6e4900 [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>
2006-11-07 11:54:52 +00:00
kfraser@localhost.localdomain c527dd4702 [IA64] Build blktap driver by default.
Signed-off-by: Aron Griffis <aron@hp.com>
2006-11-07 11:19:26 +00:00
kfraser@localhost.localdomain 39b46b711f [BLKTAP] ia64 support
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-07 11:17:39 +00:00
kfraser@localhost.localdomain c58282c9f4 [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>
2006-11-07 11:14:52 +00:00
kfraser@localhost.localdomain 720860012a [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>
2006-11-07 11:01:35 +00:00
kfraser@localhost.localdomain a30605d6ee 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>
2006-11-07 10:48:48 +00:00
kfraser@localhost.localdomain 93f56e1536 [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>
2006-11-07 10:46:03 +00:00
kfraser@localhost.localdomain 3402add9b4 [XEN] Remove unnecessary FORCE_CRASH() macro.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-07 10:41:35 +00:00
Emmanuel Ackaouy efb59eeb86 [XEN] When balancing idlers per socket/core, do it one at a time.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-11-07 10:37:30 +00:00
kfraser@localhost.localdomain 1ee5b359d6 [HVM][SVM] Turn off long mode (EFER.LMA) when CR0.PG==0.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-07 10:19:20 +00:00
kfraser@localhost.localdomain 288301c37f [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>
2006-11-07 10:18:50 +00:00
kfraser@localhost.localdomain 53aff3a78c [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>
2006-11-07 09:48:19 +00:00
kfraser@localhost.localdomain 2de9dec23d [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>
2006-11-07 09:35:57 +00:00
kfraser@localhost.localdomain c020f83b78 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>
2006-11-07 09:32:02 +00:00
kfraser@localhost.localdomain ff8bf0b0f4 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>
2006-11-07 09:29:53 +00:00
kfraser@localhost.localdomain 77d409f7f2 [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>
2006-11-07 09:28:18 +00:00
kaf24@localhost.localdomain 759af8e380 [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>
2006-11-07 00:02:52 +00:00
kaf24@localhost.localdomain 7dc32da5ea [SVM] Strip down svm_do_launch() pending complete removal.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 20:47:10 +00:00
kaf24@localhost.localdomain 1714d2c351 [SVM] Move VMCB construction to VCPU creation time.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 20:23:08 +00:00
kaf24@localhost.localdomain 9bf5c88d09 [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>
2006-11-06 18:57:33 +00:00
Emmanuel Ackaouy 72ee01f5db [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>
2006-11-06 17:32:00 +00:00
Emmanuel Ackaouy 32ae1c3387 [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>
2006-11-06 16:55:56 +00:00
kfraser@localhost.localdomain b46deb1d43 [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>
2006-11-06 16:36:51 +00:00
kfraser@localhost.localdomain c31f8336e6 [HVM] Initialise AP TSC to same as BP TSC.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 15:46:28 +00:00
kfraser@localhost.localdomain 47d2388d6a [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>
2006-11-06 15:40:30 +00:00
kfraser@localhost.localdomain 8b26cfe8a7 [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>
2006-11-06 13:13:04 +00:00
Ewan Mellor 447a08c789 Catch IOError when using local configuration files, to give better diagnostics.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-06 11:36:38 +00:00
kfraser@localhost.localdomain 1ad5dad74c [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>
2006-11-06 11:03:04 +00:00
Steven Smith 5c445c2f6d [HVM] Be sure to nul terminate uuids in HVM SMBIOS tables.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-11-06 09:46:13 +00:00
kfraser@localhost.localdomain adf74ce752 [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>
2006-11-06 09:02:15 +00:00
kaf24@localhost.localdomain 6bc01e4efd [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>
2006-11-05 20:17:40 +00:00
kaf24@localhost.localdomain 5aa732c204 [XEN] Do not halt on exceptions-with-interrupts-disabled and double faults.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-04 20:13:22 +00:00
kaf24@localhost.localdomain 2507f30a28 [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>
2006-11-04 19:50:59 +00:00
kaf24@localhost.localdomain 3203345bb1 [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>
2006-11-04 19:26:29 +00:00
Alastair Tse 14267ebb9a [XEND] Fix xen_version and missing os import
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 16:51:28 +00:00