|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.0.5-testing] hvm: Choose correct shared_info form
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1177448445 -3600
# Node ID 74b712492dbae3a70fe1a248592b5ff8ef838c2c
# Parent b43bd71ee65bf40b904ff7b786209cbee4a5bc5a
hvm: Choose correct shared_info format for 32-bit PV drivers on 64-bit Xen.
Signed-off-by: K. Y. Srinivasan <ksrinivasan@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
xen/arch/x86/hvm/hvm.c | 9 +++++++++
1 files changed, 9 insertions(+)
diff -r b43bd71ee65b -r 74b712492dba xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c Tue Apr 24 21:50:00 2007 +0100
+++ b/xen/arch/x86/hvm/hvm.c Tue Apr 24 22:00:45 2007 +0100
@@ -1049,6 +1049,15 @@ long do_hvm_op(unsigned long op, XEN_GUE
break;
case HVM_PARAM_CALLBACK_IRQ:
hvm_set_callback_via(d, a.value);
+#if defined(__x86_64__)
+ /*
+ * Since this operation is one of the very first executed
+ * by PV drivers on initialisation or after save/restore, it
+ * is a sensible point at which to sample the execution mode of
+ * the guest and latch 32- or 64-bit format for shared state.
+ */
+ d->is_compat = (hvm_guest_x86_mode(current) == 4);
+#endif
break;
}
d->arch.hvm_domain.params[a.index] = a.value;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-3.0.5-testing] hvm: Choose correct shared_info format for 32-bit PV drivers on 64-bit Xen.,
Xen patchbot-3.0.5-testing <=
|
|
|
|
|