Commit Graph
14175 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain ed372f4e41 linux: More save/restore fixes. Fix deadlock of cpu_hotplug_lock vs
workqueue_mutex. This is a new deadlock since the workqueue_mutex is
acquired in the workqueue_cpu_calbback() function across
CPU_UP_PREPARE->CPU_ONLINE.

The fix is for us not to rudely grab the cpu_hotplug_lock() during
save/restore -- it's really not necessary.

This patch is applicable to any of our 2.6 kernels, but is absolutely
required from 2.6.18 onwards.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 17:55:19 +00:00
George Dunlap 397a059280 [XEN][SHADOW] Use slow method for early-unshadow
The "fast" method fails a significant portion of the time.
unshadow will still use the "fast" method, but will fall
back to a brute-force method if it fails.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
2007-02-28 11:13:49 -05:00
George Dunlap c2198fde19 [XEN][SHADOW] Fix early-unshadow logic.
Make sure to reset the early-unshadow logic when we
do a fast-path propagate or when we emulate a non-zero
write.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
2007-02-28 11:11:22 -05:00
kfraser@localhost.localdomain a227a47981 hvm: Only do hvm_disable() on HVM-enabled systems.
Original patch by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 14:44:52 +00:00
kfraser@localhost.localdomain 82972d6f10 linux: Disable idle-loop alternatives.
ACPI and APM idle functions in particular are not suitable choices
when running on Xen.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 14:34:25 +00:00
kfraser@localhost.localdomain ed2bd98ac2 linux: Split suspend_mutex into watch_mutex and transaction_mutex.
This clarifies their usage and relationship with request_mutex and
response_mutex.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 14:26:26 +00:00
kfraser@localhost.localdomain c70b3e5890 More PV save/restore fixes.
Related changesets:
 14148:b67c253d1cdb4f502dec2
 13519:b4a8000e76db6b4b27341

These three changesets must be applied as a set!

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 14:13:09 +00:00
Tim Deegan 96b0fdf67b Fix 32-bit x86 compile 2007-02-28 13:22:20 +00:00
Tim Deegan 9ee002e88b [XEN] Compat-mode dom0 always provides compat vcpu_guest_context structs.
Update arch_set_info_guest to do the right thing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-28 13:19:16 +00:00
Tim Deegan e4c182e03a [XEN] Make the compat-mode l4 page table look more like a page table
and remove some special-case code in the shadows.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-28 13:17:27 +00:00
Christian Limpach 990718d0bd [XEN] No need to change the compat mode of the guest in xen.
The tools set the compat mode already explicitly.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-02-28 10:40:52 +00:00
kfraser@localhost.localdomain 72e4f39c3f Loop on actual elfnote array size rather than depending on ELFNOTE_MAX
macro.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 09:44:59 +00:00
kfraser@localhost.localdomain 7954a48c41 Add suspend_cancel flag to linux elf notes.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-02-28 09:41:02 +00:00
kfraser@localhost.localdomain 1066e48e86 Add xm save -c/--checkpoint option
xm save --checkpoint leaves the domain running after creating the
snapshot.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-02-28 09:39:23 +00:00
kfraser@localhost.localdomain e5d4e1285c Let xend choose to do hard or soft domain resumption depending on
whether the domain advertises support for soft resumption in its
elfnotes.

Signed-off-by: Brendan Cully <brendan@kublai.com>
2007-02-28 09:39:03 +00:00
kfraser@localhost.localdomain 5f7ac4f0bc Fix off-by-one preventing the last elfnote from being read in xc.c.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-02-28 09:38:14 +00:00
kfraser@localhost.localdomain 1f95747a4f Add openssl-dev and xorg-x11-dev to README
Attached is a documentation patch to the top-level README file; it
just adds two notes saying that you need to have openssl-devel and
xorg-x11-devel installed to successfully complete a "make world" at
the top level.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2007-02-27 20:27:18 +00:00
kfraser@localhost.localdomain e76c2ace24 [XEN] [ACM] Simplify the event channel scanning
This patch simplifies the scanning of a domain's event channels
considering that an 'ECS_UNBOUND' event channel is not connected and
can be skipped.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-27 20:22:36 +00:00
kfraser@localhost.localdomain a2d9dd3374 Fix for Solaris compile/output for VBDs in xentop.
Signed-off-by: John Levon <john.levon@sun.com>
2007-02-27 16:13:08 +00:00
Ian Campbell 8ca1a72e79 merge 2007-02-27 15:40:37 +00:00
Ian Campbell 0a650f1a63 [TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-02-27 15:39:08 +00:00
kfraser@localhost.localdomain facf57a667 Accelerate IDE PIO on HVM/IA64 [3/3]
Add a bufferring mechanism for IDE PIO in a hypervisor.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-02-27 15:34:55 +00:00
kfraser@localhost.localdomain e60659a59b Accelerate IDE PIO on HVM/IA64 [2/3]
Add one more page to the guest for IDE PIO.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-02-27 15:34:24 +00:00
kfraser@localhost.localdomain cfb8ffa9f9 Accelerate IDE PIO on HVM/IA64 [1/3]
Add a bufferring mechanism for IDE PIO in qemu.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-02-27 15:33:25 +00:00
Steven Hand c516e5ec52 Fix save/restore (and non-live migrate) on PAE.
Plus add some more debug output to help us spot similar issues in the future.

Signed-off-by: Steven Hand <steven@xensource.com>
2007-02-27 14:33:07 +00:00
Ewan Mellor b31df5785d Added SXP pretty-printer.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-27 13:58:40 +00:00
kfraser@localhost.localdomain 8c364f217a linux: Don't allow partial message raeds from xenstore across
save/restore. This patch is an essential companion to
13519:b4a8000e76db6b4b27341.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-27 13:43:01 +00:00
Ewan Mellor 9b981ee160 Fix exception handling to cope with exceptions that do not have a string as
the first argument.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-27 11:19:25 +00:00
George Dunlap f245784ba0 [TOOLS] Make xentrace help a little more informative.
Signed-off-by: George Dunlap <gdunlap@xensource.com>
2007-02-27 06:06:29 -05:00
George Dunlap 99d2f8aeb0 Merge 2007-02-27 06:02:32 -05:00
George Dunlap f186b11e23 [TOOLS] Added option to xentrace to discard records in the buffer
before beginning the trace.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
2007-02-27 06:01:35 -05:00
kfraser@localhost.localdomain 5cccd3bd31 x86: Fix BUG() crash in mm.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-27 11:00:36 +00:00
Ewan Mellor 6bd6a1390e Fix missing bits of the docs from cset 14020, and match that change by removing
the similar fields on host_metrics, PIF_metrics, and VM_guest_metrics.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-27 01:52:27 +00:00
Ewan Mellor b33bb1e4d9 Implementation of host_metrics.get_all, PIF_metrics.get_all, and docs and
bindings for many of the get_all methods elsewhere that Xend already
implemented.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-27 01:05:32 +00:00
Ewan Mellor d8309d27a1 Added some more fields to host_cpu.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-27 00:37:27 +00:00
Tim Deegan b3c8af5814 [HVM][SVM] Save/Restore: Remove commented out code
Code not needed by SVM as the "VM_ENTRY_CONTROLS" register doesn't
exist.

Signed off: Mats Petersson (mats.petersson@amd.com)
2007-02-26 17:20:36 +00:00
kfraser@localhost.localdomain 9f60d76316 Missing files from previous changeset.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
2007-02-26 17:05:10 +00:00
kfraser@localhost.localdomain 7998832e81 [xentrace][HVM] introduce HVM tracing to unify SVM and VMX tracing
* new tracing class TRC_HVM replacing TRC_VMX

* 20 new trace events to differentiate the information carried by them
** added corresponding trace points in SVM and VMX code
** updated formats file: descriptive formatting of trace event data
** completely replacing previous simple tracing in VMX

* possibility to toggle single events on and off at compile time in
  include/asm-x86/hvm/trace.h

Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
2007-02-26 17:04:39 +00:00
kfraser@localhost.localdomain 05741dbcaf x86: Update map_pages_to_xen() to avoid arithmetic based on
uninitialised frame_table variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-26 16:27:35 +00:00
kfraser@localhost.localdomain 7353b82451 x86: Clean up {alloc,free}_xen_pagetable() interface to avoid use of
frame_table variable before initialisation. This wasn't a bug, but was
confusing.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-26 16:25:17 +00:00
Ewan Mellor 9923350256 Add argument check for xm network-attach command
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-26 15:50:50 +00:00
Ewan Mellor d804137cf6 Fix xm vcpu-set command for when wrong number of VCPU is given
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-26 15:41:35 +00:00
Ewan Mellor bb5e8c6299 Move credit scheduler configuration into XendDomainInfo, so that the domain
will be cleaned up correctly if the scheduler parameters are wrong.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-26 15:39:34 +00:00
Tim Deegan f30771eb96 Merge 2007-02-26 14:48:46 +00:00
Tim Deegan a9ddde26e2 [TOOLS] fix sizeof() usage in xc_core
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-26 14:47:54 +00:00
kfraser@localhost.localdomain a3546dd2fc linux: Fix backward compatibility in page table handling
A 3.0.2 compatibility requirement slipped my attention before
submitting the original page table handling changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-02-26 14:09:08 +00:00
Tim Deegan 9990621f33 [XEN] Allow log-dirty mode to be enabled on already-shadowed domains.
and catch a few missing mark_dirty() calls
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-26 13:56:01 +00:00
kfraser@localhost.localdomain 2765521399 Remap PCI-ISA IRQ 6 to IRQ 7. Disable LPT1 by default and remove its
definition from the ACPI DSDT. This avoids conflict with FDC on IRQ6
(it is a bit more likely that someone will want to connect a floppy
image to a guest than it is that anyone will ever care about
parallel-port functionality).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-26 11:53:35 +00:00
kfraser@localhost.localdomain f7e153faad Resolve conflict over use of name xen_elfnote.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-26 11:21:03 +00:00
Tim Deegan cf5a7b113f Merge 2007-02-26 10:23:03 +00:00