Commit Graph
10991 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com e7e16fef9d Fix the unit test to match the new way of allocating VNC ports.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-09 10:13:37 +01:00
emellor@leeni.uk.xensource.com bdbb3176b8 Added a couple of unit tests for the sxp parsing.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-09 10:13:36 +01:00
emellor@leeni.uk.xensource.com 9f60fd73a8 Fix reference to buf in parsing of ocaml escapes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-09 10:13:34 +01:00
emellor@leeni.uk.xensource.com 03b3d1627f Better diagnosis of the failure when Xend crashes. Thanks to Hollis Blanchard
for diagnosis.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-09 09:52:43 +01:00
kaf24@firebug.cl.cam.ac.uk a3a905683d [XEN] Assorted further PER_CPU- or read_mostly-ifications.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 15:43:54 +01:00
kaf24@firebug.cl.cam.ac.uk 67a4f5634c [XEN] Implement proper __read_mostly memory arrangemengt for x86.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 15:14:43 +01:00
kaf24@firebug.cl.cam.ac.uk 1d82ec9774 [XEN] Make tracing structures and buffers explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:56:22 +01:00
kaf24@firebug.cl.cam.ac.uk 8eafa79a73 [XEN] Make multicall info explicitly PER_CPU.
Also remove cacheline alignment in a few places. We leave
the common timer and schedule_data structures aligned because
they may be accessed randomly by remoted CPUs: at least we can
contain cacheline bouncing to just the offending structures.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:48:43 +01:00
kaf24@firebug.cl.cam.ac.uk 1ac7758ecb [XEN] Make per-cpu pending EOI interrupt info explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:29:16 +01:00
kaf24@firebug.cl.cam.ac.uk bfedab9eef [XEN] Make per-cpu mm information explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:18:57 +01:00
kaf24@firebug.cl.cam.ac.uk cb805ea0f2 [XEN] Make per-cpu time information explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:02:14 +01:00
kaf24@firebug.cl.cam.ac.uk 62e16a8285 [XEN] Make per-cpu schedule data explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 13:55:22 +01:00
kaf24@firebug.cl.cam.ac.uk 8513c2357d [XEN] Place per-cpu timer info in PER_CPU space.
Signed-of-fby: Keir Fraser <keir@xensource.com>
2006-08-08 12:04:46 +01:00
kaf24@firebug.cl.cam.ac.uk dedb00f212 [XEN] Make tlbflush_time a PER_CPU variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 11:45:37 +01:00
chris@kneesaa.uk.xensource.com ff3a405c4d [qemu patches] Refresh patches.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-08 11:28:35 +01:00
chris@kneesaa.uk.xensource.com 7c45b14c84 [qemu patches] Update patches for changeset 10974:415614d3a1ee.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-08 11:27:12 +01:00
sos22@douglas.cl.cam.ac.uk 68fb557e74 [hvm/qemu] Flip the device model over to using the new Xen event channels
support.

Signed-off-by: Steven Smith <ssmith@xensource.com>
2006-08-08 11:19:29 +01:00
sos22@douglas.cl.cam.ac.uk 2586650047 [hvm] Move the mapping of the shared IO page slightly earlier
in the initialisation sequence for HVM guests, so that we can
write vp_eport into the shared after creating the port.

Signed-off-by: Steven Smith <ssmith@xensource.com>
2006-08-08 11:17:52 +01:00
kaf24@firebug.cl.cam.ac.uk 33351e725f [XENSTAT] Ignore domains that are being created/destroyed during get_info call.
Currently, xenstat_get_node exits with a failure and returns NULL if a
VM is deleted between the time the list of VMs is obtained and the time
it attempts to collect information about the VMs. This patch modifies xenstat
to ignore domains that transition during the call.

Signed-off-by: Simon Graham <Simon.Graham@stratus.com>
2006-08-08 10:36:32 +01:00
kaf24@firebug.cl.cam.ac.uk 66ff8f7ce3 [HVM][VMX] Cleanup vmx vmexit handler.
Current code doesn't handle vmexits caused by triple fault, INIT, SIPI,
etc, which are listed in IA32 Architecture System Programming Guide 2,
Appendix I VMX Basic Exit Reasons, and calls __hvm_bug() when not
handling such cases, actually domain crash should be good enough.

Also various coding style cleanups.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-08-08 10:29:58 +01:00
kaf24@firebug.cl.cam.ac.uk 70858a054e [XEND] Daemonise vncviewer when it is spawned from xend.
There are various reasons it should be daemonized, but the particular
problem we hit was that YaST called "xm create" and waited on output on
stdout/stderr; xm then spawned vncviewer (which never closed its
inherited stdout and stderr); xm then would exit, but YaST still had
open file descriptors, and therefore waited forever.  It would be
possible to work around in YaST, but it seemed cleaner to daemonize
vncviewer.

Signed-off-by:  Charles Coffing <ccoffing@novell.com>
2006-08-08 10:21:51 +01:00
kaf24@firebug.cl.cam.ac.uk baa7c435ce [PCI] back: New virtual pci backend: slot
This backend use a slot per pci device.  Contrary to vpci two functions from
one slot appear as two slots. This is useful on ia64 because it doesn't scan
functions > 0 if function 0 does not exist.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-08-08 10:17:42 +01:00
kaf24@firebug.cl.cam.ac.uk e5d1731cea [XEND] Fix fallback and error path for domain destruction by domid,
or of non-existent domain.

I saw the following error message. (A domain of domain name XXX does 
not exist.)

# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0     1019     2 r-----    29.8
# xm destroy XXX
Error: an integer is required

This patch fixes it to print the following error message.

# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0     1019     2 r-----    35.8
# xm destroy XXX
Error: the domain 'XXX' does not exist.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-08-08 10:03:30 +01:00
kaf24@firebug.cl.cam.ac.uk 0144a035fd [HVM][VMX] Move hvm interface init_hypercall_page initialization into vmx_setup_hvm_funcs.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-08-08 09:59:47 +01:00
kaf24@firebug.cl.cam.ac.uk dfcd4f6e10 [LIBXC] Do not gzclose() after close() on a gzdopen()'ed fd.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-08-08 09:57:24 +01:00
kaf24@firebug.cl.cam.ac.uk 74d7945b4d [HVMLOADER] Only install hvmloader if it is built.
This reverts a broken change in changeset 10948 that broke
the ia64 build.
Signed-off-by: Al Stone <ahs3@fc.hp.com>
2006-08-08 09:51:08 +01:00
kaf24@firebug.cl.cam.ac.uk 122373c2a7 Add RH-ish localhost to xend-relocation-hosts-allow in xend-config.sxp
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-08-08 09:33:38 +01:00
kaf24@firebug.cl.cam.ac.uk a3c844bd07 [PYGRUB] Flesh out some of pygrub's functionality as was originally
intended. Changes include:
 * Addition of basic command line mode much like grub's so that you can
   boot things without having them specified in the config file
 * Edit/append mode for modifying kernel command lines, etc
 * Fix handling of case where the grub config didn't have a default
   specified

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-08-08 09:30:11 +01:00
kaf24@firebug.cl.cam.ac.uk c304f4e249 [HVM] Fix hvm boot when acpi=1 is specified.
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2006-08-08 09:25:46 +01:00
kaf24@firebug.cl.cam.ac.uk d47ef3dd1e [XEN] Remove redundant redeclaration of 'machine_restart'.
Fixes compile warning with gcc 3.4.2.
Signed-off-by: Hollis Blanchard <hollis@us.ibm.com>
2006-08-08 09:19:32 +01:00
chris@kneesaa.uk.xensource.com ae5534e54e [qemu patches] Update patches for changesets 10957:08a11694b109 - 10959:06e2a95d3395.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-07 18:28:50 +01:00
chris@kneesaa.uk.xensource.com 93a961f49b [qemu] Update ioemu to qemu 0.8.2.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-07 18:27:27 +01:00
chris@kneesaa.uk.xensource.com 21d94d9388 [qemu] Update ioemu to qemu 0.8.2. (.CVS files)
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-07 18:26:20 +01:00
chris@kneesaa.uk.xensource.com b5d8830efe [qemu] Update ioemu to qemu 0.8.2.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-07 18:25:30 +01:00
jchesterfield@wicket.uk.xensource.com acf531c565 Limit blktap static link to just libaio. 2006-08-07 18:11:59 +01:00
kaf24@firebug.cl.cam.ac.uk 7e9fd035da [LINUX] Fix a couple of benign diffs against vanilla spinlock.h.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-07 16:07:20 +01:00
kaf24@firebug.cl.cam.ac.uk cea4bbec3f Provides hooks for perfc print/reset/gather.
These arch-neutral hooks allow architectures to report hardware counters.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-08-07 15:55:39 +01:00
kaf24@firebug.cl.cam.ac.uk a6e8b7effa Change DOM0_PERFCCONTROL: remove array limit.
Descriptors and values are passed by two distinct buffers.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-08-07 15:53:06 +01:00
kaf24@firebug.cl.cam.ac.uk ed79bfa130 [XEN] Allow users to specify mce/nomce boot parameters.
Signed-off-by: Arun Sharma <arun@sharma-home.net>
2006-08-07 15:42:25 +01:00
kaf24@firebug.cl.cam.ac.uk 9ee1bd77bf [XEN] Clean up shutdown handling and ignore opt_noreboot if dom0
shuts down cleanly. The option is intended only to retain information
on the local console in case of a crash.

Based on a patch from Muli Ben-Yehuda <muli@il.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-07 15:35:06 +01:00
chris@kneesaa.uk.xensource.com 3923c6638e [xend] Fix reboot for hvm domains with cdrom devices.
The device-type was not added to the device details which caused
cdrom devices to appear as harddisks after a reboot.

From: Alex Brett <Alex.Brett@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-07 11:59:31 +01:00
kfraser@localhost.localdomain 76338bfaaa [XEN] Add Xen-attached event channels, which will be used
by HVM for the ioreq_packet port.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-04 20:34:44 +01:00
kfraser@localhost.localdomain 5eeca68ffd [HVMLOADER] HVM loader initialises hypercall shim and uses
it to interrogate Xen version information. Also add support
for HVM hypercall execution on 64-bit host.

Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-04 20:30:12 +01:00
ack@localhost.localdomain 092b64b838 [NET] front: Check for received packets in network_open0
Because the backend brings up the interface long before the frontend
has booted up, it is possible that by the time we get here we already
have packets queued up for processing.

If we don't process them here, we may delay them more than what is
necessary.  Worse yet, it is possible to miss the notification
interrupt from the backend in such a way that we never get another
one until we bring the interface down and up.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-08-04 16:07:58 +01:00
chris@kneesaa.uk.xensource.com 47b577e71c [qemu patches] Update patches for changeset 10945:baa6d08e62a0.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-04 11:36:07 +01:00
chris@kneesaa.uk.xensource.com 1f401924d5 [qemu] Add missing semicolon.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-04 11:35:51 +01:00
chris@kneesaa.uk.xensource.com 41df99f54e [qemu patches] Update patches for changeset 10943:1de1bb6a51c5.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-04 11:34:01 +01:00
chris@kneesaa.uk.xensource.com c4a18a0435 [qemu] Update acpi timer to not use a qemu timer.
Compute the acpi timer's value when it is accessed instead of using
a qemu timer to keep it uptodate.

From: Wang, Winston L <winston.l.wang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-04 11:33:41 +01:00
chris@kneesaa.uk.xensource.com a5da231f56 [hvm firmware] Update hvm acpi dsdt table.
1)Code style clean up
2)Mininor fix for pci bus 0, dev 4 apic IRQ number
3)Add support for HCT "unreported IO and Memory" test by reporting low
640 MB mem as motherboard resource

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2006-08-04 11:03:17 +01:00
chris@kneesaa.uk.xensource.com 28f1d62e49 [qemu patches] Refresh patches.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-04 10:57:34 +01:00