Commit Graph
14023 Commits
Author SHA1 Message Date
Ewan Mellor c2592685ff Added Console.other_config to the docs (Xend already has this).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 19:38:24 +00:00
Ewan Mellor cdbec983af Rename Console.uri to location. Xend already uses the latter.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 19:23:28 +00:00
Ewan Mellor ada588411f Remove VM.VCPUs_number and VM.VCPUs_utilisation as these have moved onto the
VM_metrics class.  Remove VM_metrics.VM -- the backreference is unnecessary
and awkward to deal with.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 16:30:24 +00:00
Ewan Mellor d5ae26ac7a Replace the X_HANDLE_INVALID error codes with a single HANDLE_INVALID that
names the class as a parameter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 15:24:01 +00:00
kfraser@localhost.localdomain d80a8c31ac hvm: Fix getvcpucontext to return the correct CR3 value.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-20 23:54:42 +00:00
Tim Deegan 901eef1bb1 [HVM] Fix MMIO AND emulation
which was falling though into AND...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-20 20:49:44 +00:00
Tim Deegan 3482c7ac5e [HVM] Fix MMIO LODS emulation
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-20 20:02:49 +00:00
kfraser@localhost.localdomain 8d6da6a5f0 x86 emulation: fix bswap
REX.R needs to be decoded. Since it is simple to do, faster, and
smaller, let hardware do 32- and 64-bit BSWAP. 16-bite BSWAP is
undefined: emulate with observed behaviour (write zero).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-20 17:05:50 +00:00
kfraser@localhost.localdomain fe30060046 x86: Fix emulation of REP prefix.
Firstly, it should be ignored when used with any opcode for which it
is undefined. Secondly, the count register (rCX) width depends on
address size.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-20 16:57:50 +00:00
Tim Deegan de83482a55 Merge 2007-02-20 16:19:40 +00:00
Tim Deegan cca5559356 [HVM] Another unchecked caller of hvm_copy_to_guest_virt()
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-20 16:18:56 +00:00
kfraser@localhost.localdomain 3ebf6b23fe acm: More fixes after grant-table changes. These are all bugs
introduced during merge of Isaku's previous patch. :-)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-02-20 16:12:02 +00:00
Tim Deegan feaecc4d84 Merge 2007-02-20 15:37:28 +00:00
Tim Deegan 621bd0c079 [XEN] Get rid of gva_to_gpa translation
It didn't have any sensible error checking.  Make all callers
use gva_to_gfn translation and check the result.  MMIO and PIO
callers inject pagefaults to the guest iof the non-IO address is
not mapped.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-20 15:37:03 +00:00
Vincent Hanquez c7a30b4b8b add /sbin to the $PATH and use ldconfig -p instead of ldconfig -v 2007-02-20 14:12:12 +00:00
Tim Deegan 25fc3fb464 [XEN] Fix skip-verify shadow heuristic
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-20 13:57:26 +00:00
kfraser@localhost.localdomain 99f8ff2844 linux: Fix swiotlb bug-out due to uninitialised end_pfn/max_mapnr.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-20 12:27:03 +00:00
Vincent Hanquez d8b291a0b6 add /sbin to the $PATH for debian's ldconfig.
use ldconfig -p instead of -v that doesn't require root privilege to work.
2007-02-20 12:22:40 +00:00
kfraser@localhost.localdomain 6cf88c4309 linux/x86: Advertise which page table entries contain MFNs and hence
need to be (un)canonicalized during save/restore.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-02-20 12:18:29 +00:00
kfraser@localhost.localdomain 7263379ba7 xen/x86: Better BUG back traces.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-20 11:57:06 +00:00
Tim Deegan cb015ee268 [XEN] Fix potential race in unshadow code
And add some diagnostic printout in case it happens again
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-20 11:51:40 +00:00
kfraser@localhost.localdomain 2d59634928 linux/x86: Clean up page table handling headers
- remove dead code
- fix line breaking and space vs. tab usage
- remove redundant parentheses

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-02-20 09:41:32 +00:00
Tim Deegan 5b4f23d446 Merge 2007-02-20 09:34:22 +00:00
kfraser@localhost.localdomain eee7931c83 linux/x86: Adjust and fix page table handling.
Ensure that all and only those page table entries that have their
present bit set undergo p2m/m2p translation in all relevant places.
This should fix migration issues with _PAGE_PROTNONE pages which
previously could retain MFNs in PTEs while having the present bit
clear (and thus were not getting (un)canonicalized during save/
restore).

Many thanks to Keir Fraser for his analysis, suggestions, and
corrections.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-02-20 09:33:14 +00:00
john.levon@sun.com 90a79f7c6f Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message:
(XEN) event_channel.c:177:d0 EVTCHNOP failure: domain 0, error -22, line 177
2007-02-19 20:44:42 -08:00
john.levon@sun.com ec08a094b2 Filesystem implementations may need optional arguments in terms of
what to mount. Add an options string to the libfsimage API.

Signed-off-by: John Levon <john.levon@sun.com>
2007-02-19 20:44:42 -08:00
kfraser@localhost.localdomain 5f855af627 linux: Fix 32-bit build after changeset 13993:168030c8e0a93d8401cf5e783e10ecdf0938abda
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-19 22:50:07 +00:00
Emmanuel Ackaouy d2d677648c [XEN] 32on64 shadowing / live migration support for PV PAE compat guests
PAE compat guests on 64bit hypervisors are shadowed
using 4-on-4 with special handling for the top level
L4 page and the L2E M2P mappings.

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2007-02-19 19:58:07 +00:00
kfraser@localhost.localdomain db31631cfe Quieten noisy fied-up-GPF-in-Xen logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-19 16:16:53 +00:00
kfraser@localhost.localdomain 408c8a79de linux: Introduce {current_,}vcpu_info.
Also consolidate time-xen.c in giving get_time_values_from_xen() a
'cpu' parameter to match other functions (this consolidation could of
course also be done the other way around, but I think this way the
resulting code can be more efficient).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-02-19 16:11:56 +00:00
kfraser@localhost.localdomain c2db4fa33d ia64: Fixes after changes to grant table code.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-02-19 16:06:03 +00:00
kfraser@localhost.localdomain bfc097127d acm: Further fixes after grant-table changes.
Based on a patch from Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-19 16:05:34 +00:00
kfraser@localhost.localdomain 516d0c43d0 Fix ACM build after recent grant-table code changes.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-19 15:52:51 +00:00
kfraser@localhost.localdomain 2c8d71cdf3 hvm, vtpm: Fix wait for an outstanding response.
Post the interrupt upon reception of the response and adapt the
state machine.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-19 15:51:46 +00:00
kfraser@localhost.localdomain 3b5ef8c46d minios: Fix xenbus-id allocation loop.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2007-02-19 15:50:29 +00:00
kfraser@localhost.localdomain fcd667b266 hvm: Remove noisy warnings associated with MOVS emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-19 15:46:01 +00:00
kfraser@localhost.localdomain f9d4556021 hvm: Emulate opcode 0x03 (ADD mem,reg).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-19 15:43:27 +00:00
Ian Campbell 6f1113b5c5 [LIBELF] Prefer PT_NOTE segments to SHT_NOTE sections for ELF notes.
It's always an error to try to use sections on an executable; the
segments in the phdr are definitive.

Unfortunately we cannot drop SHT_NOTE support completely due to a
binutils bug which causes kernels to have the offset field of the
PT_NOTE phdr set to zero:

	http://sourceware.org/bugzilla/show_bug.cgi?id=594

This bug is present in binutils 2.17 although some distros have
backported the fix.

Therefore we simply prefer a PT_NOTE segment if we find one otherwise
we still use the SHT_NOTE section (and then the old __xen_guest
section).

Based on a patch from Jeremy Fitzhardinge.

Also added XEN_ELFNOTE_HV_START_LOW to readnotes.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-02-19 12:21:41 +00:00
Keir Fraser 4fca2a7981 hvm: Support PUSH from mmio area (opcode 0xFF/6).
Also fix a bogus assertion in vlapic device model.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-18 15:29:40 +00:00
Keir Fraser bbf3a3eebd linux: vmalloc_sync_all() is not a no-op when running in PAE mode on Xen.
Also vmalloc_sync_all() is only defined for x86 architectures so make
use of it in driver code conditional on CONFIG_X86.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-17 13:26:33 +00:00
kfraser@localhost.localdomain 0d1df40b65 Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-17 09:59:00 +00:00
Jake Wires b3fb1294fa [TAPDISK] add tapdisk support for image chaining
Enables tapdisk to chain an arbitrary number of VDIs, propagating reads of
holes in children to their parent images.  Introduces two new functions to the
tapdisk interface to facilitate this.  Modifies the QCoW plugin to take
advantage of these changes, thus providing support for arbitrarily long chains
of QCoW image types.
2007-02-16 20:31:27 -08:00
kfraser@localhost.localdomain 3bddff4a58 x86-64: fix Lx_DISALLOW_MASK
x86-64's Lx_DISALLOW_MASK values weren't properly taking care of the
NX bit, L3 and L4 were needlessly customized, and the compat mode L3
one wasn't really matching native PAE.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-02-16 16:34:28 +00:00
kfraser@localhost.localdomain e77ed40f70 linux/x86_64: miscellaneous initialization code cleanup
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-02-16 16:05:01 +00:00
kfraser@localhost.localdomain 2d420d93a6 hvm: Processor Objects require unique IDs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-16 15:50:02 +00:00
kfraser@localhost.localdomain 938d51e10e hvm: Dynamically generate the correct number of ACPI Processor Objects
in an SSDT.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-16 15:33:51 +00:00
Tim Deegan a61c420101 [XEN] Set p2m page count-info fields properly on allocation.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-16 13:10:00 +00:00
Tim Deegan bd25d1048e [HVM] Save/restore: explicitly name MSRs in save format
Signed off by: Mats Petersson (Mats.Petersson@amd.com)
2007-02-16 12:34:30 +00:00
kfraser@localhost.localdomain 29438379b9 Fix grant-table initialisation so that domain destruction does not barf.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-16 12:13:33 +00:00
kfraser@localhost.localdomain 090fa70b37 linux: remove {lock,unlock}_vm_area(). Instead use vmalloc_sync_all()
in alloc_vm_area().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-16 11:24:10 +00:00