WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] hvm: Choose correct shared_info format fo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] hvm: Choose correct shared_info format for 32-bit PV drivers on 64-bit Xen.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Apr 2007 18:30:22 -0700
Delivery-date: Tue, 24 Apr 2007 18:29:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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-unstable] hvm: Choose correct shared_info format for 32-bit PV drivers on 64-bit Xen., Xen patchbot-unstable <=