diff options
| author | Olaf Hering <olaf@aepfle.de> | 2013-05-23 10:08:33 +0200 |
|---|---|---|
| committer | Jan Beulich <jbeulich@suse.com> | 2013-05-23 10:08:33 +0200 |
| commit | 0b05309aa78ef834ece1b27866be279c9e184572 (patch) | |
| tree | e5009a80339f795df12befb57692abe1915425e4 /tools/lib/sys_string.h | |
| parent | 2dd5ee75cdc3101b7a90c8482a27d8cc990dd46d (diff) | |
| download | xen-0b05309aa78ef834ece1b27866be279c9e184572.tar.gz xen-0b05309aa78ef834ece1b27866be279c9e184572.tar.bz2 xen-0b05309aa78ef834ece1b27866be279c9e184572.zip | |
x86: handle paged gfn in wrmsr_hypervisor_regs
If xenpaging is started very early for a guest the gfn for the hypercall
page may be paged-out already. This leads to a guest crash:
...
(XEN) HVM10: Allocated Xen hypercall page at 169ff000
(XEN) traps.c:654:d10 Bad GMFN 169ff (MFN 3e900000000) to MSR 40000000
(XEN) HVM10: Detected Xen v4.3
(XEN) io.c:201:d10 MMIO emulation failed @ 0008:c2c2c2c2: 18 7c 55 6d 03 83 ff ff 10 7c
(XEN) hvm.c:1253:d10 Triple fault on VCPU0 - invoking HVM shutdown action 1.
(XEN) HVM11: HVM Loader
...
Update return codes of wrmsr_hypervisor_regs, update callers to deal
with the new return codes:
0: not handled
1: handled
-EAGAIN: retry
Currently wrmsr_hypervisor_regs will not return the following error, it
will be added in a separate patch:
-EINVAL: error during handling
Also update the gdprintk to handle a page value of NULL to avoid
printing a bogus MFN value. Update also computing of MSR value in
gdprintk, the idx was always zero.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Keir Fraser <keir@xen.org>
master commit: 013e34f5a61725012467f17650597d351fc0ca99
master date: 2013-05-07 16:41:24 +0200
Diffstat (limited to 'tools/lib/sys_string.h')
0 files changed, 0 insertions, 0 deletions
