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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] vmx: Setting of VMCS IO_BITMAP_B must tak

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] vmx: Setting of VMCS IO_BITMAP_B must take account of fact that
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Mar 2008 02:50:08 -0700
Delivery-date: Fri, 21 Mar 2008 02:50:01 -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.fraser@xxxxxxxxxx>
# Date 1206092734 0
# Node ID 76c9cf11ce23540b6016116a972bb4f0e0480a14
# Parent  c8c8b5c5f6d77a47bfa1869ac60e4975fa764ad6
vmx: Setting of VMCS IO_BITMAP_B must take account of fact that
hvm_io_bitmap is now a long[] rather than a char[].

Bug spotted by Dexuan Cui <dexuan.cui@xxxxxxxxx>

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
 xen/arch/x86/hvm/vmx/vmcs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r c8c8b5c5f6d7 -r 76c9cf11ce23 xen/arch/x86/hvm/vmx/vmcs.c
--- a/xen/arch/x86/hvm/vmx/vmcs.c       Thu Mar 20 18:28:52 2008 +0000
+++ b/xen/arch/x86/hvm/vmx/vmcs.c       Fri Mar 21 09:45:34 2008 +0000
@@ -473,8 +473,8 @@ static int construct_vmcs(struct vcpu *v
     /* I/O access bitmap. */
-    __vmwrite(IO_BITMAP_A, virt_to_maddr(hvm_io_bitmap));
-    __vmwrite(IO_BITMAP_B, virt_to_maddr(hvm_io_bitmap + PAGE_SIZE));
+    __vmwrite(IO_BITMAP_A, virt_to_maddr((char *)hvm_io_bitmap + 0));
+    __vmwrite(IO_BITMAP_B, virt_to_maddr((char *)hvm_io_bitmap + PAGE_SIZE));
     /* Host GDTR base. */
     __vmwrite(HOST_GDTR_BASE, GDT_VIRT_START(v));

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] vmx: Setting of VMCS IO_BITMAP_B must take account of fact that, Xen patchbot-unstable <=