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
kfraser@localhost.localdomain
fd564aa780
Fix vncdisplay config option for HVM guests.
...
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com >
2007-02-16 09:57:25 +00:00
kfraser@localhost.localdomain
8d0689ddbe
hvm: Fix acpi processor id in MADT LAPIC entries.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-15 19:03:09 +00:00
kfraser@localhost.localdomain
d715d3e17b
ia64: Fix build failure
...
Signed-off-by: Alex WIlliamson <alex.williamson@hp.com >
2007-02-15 18:05:05 +00:00
Tim Deegan
789a25c656
[HVM] Save/restore: remove u8 from publich header
...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-02-15 14:58:43 +00:00
kfraser@localhost.localdomain
4008fb3e4d
Remove unnecessary check from HVM builder.
...
Thanks to Guy Zana for spotting this.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-15 14:38:08 +00:00
kfraser@localhost.localdomain
cfafd88d92
Lift physical address restriction in save/restore code.
...
Bump this to 44 bits for x86-32 and 52 bits for x86-64.
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 14:28:01 +00:00
kfraser@localhost.localdomain
073f9d922a
Propagate error return from elf_xen_parse().
...
From: Jan Beulich <jbeulich@novell.com >
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-15 14:25:58 +00:00
kfraser@localhost.localdomain
eb9ec1a8a8
x86: fix NMI delivery to dom0
...
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 14:24:11 +00:00
kfraser@localhost.localdomain
56c508cce0
Bring TPM driver files to 2.6.18 level. Remove the tpm.c so that the
...
one from the kernel can be used and reduce changes to a minimum
required to compile the xen-specific driver.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2007-02-15 14:21:50 +00:00
kfraser@localhost.localdomain
5c4256ca47
[ACM] Update the xensec_ezpolicy ACM policy generation tool so
...
that it works with wxPython under Python 2.5.
Signed-off by: Reiner Sailer <sailer@us.ibm.com >
2007-02-15 14:20:05 +00:00
kfraser@localhost.localdomain
a5333b24d5
minios: build system cleanups.
...
- Added ARCH_LDFLAGS for architecture specific LDFLAGS
- Fixed build dependencies after changing makerule files
- Fixed ARCH_CFLAGS for 64bit guest, added ARCH_ASFLAGS
- Couple of variable renames
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com >
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk >
2007-02-15 14:18:21 +00:00
kfraser@localhost.localdomain
a917e6d478
Disable GCC stack protector for ROMBIOS.
...
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2007-02-15 14:17:00 +00:00
kfraser@localhost.localdomain
3169b9cf23
linux: miscellaneous changes after upgrade through 2.6.17.
...
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 14:12:32 +00:00
kfraser@localhost.localdomain
ae79131cf1
linux: e820 handling adjustments
...
In certain places, machine_e820 should be used rather than e820.
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 14:05:58 +00:00
kfraser@localhost.localdomain
620b8b957c
linux: user user_mode_vm() in place of user_mode() where necessary.
...
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 13:51:25 +00:00
kfraser@localhost.localdomain
07c2f1f3b0
linux: avoid need to modify include/linux/pfn.h
...
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 13:49:04 +00:00
kfraser@localhost.localdomain
a190e7e3da
linux: early_printk adjustments
...
This is a little more than a pure merge with 2.6.17, to remove a few
more non-Xen items.
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 13:40:33 +00:00
kfraser@localhost.localdomain
2b41f02c7a
linux: proper mutex use in balloon driver
...
Mutexes are supposed to not use the old semaphore technique anymore.
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 13:38:59 +00:00
kfraser@localhost.localdomain
86531075d4
[VTPM] Add a missing initialization of a state variable in the TIS
...
device model so that the first response received after a resume is not
aborted.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2007-02-15 13:36:58 +00:00
kfraser@localhost.localdomain
a5c9d9c243
libxc: Fix xc_vcpu_{set,get}_affinity (Xen-bugzilla No.900).
...
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2007-02-15 13:36:00 +00:00