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-devel

[Xen-devel] Fix wrong memory size of nested shadow_io_bitmap

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Fix wrong memory size of nested shadow_io_bitmap
From: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Date: Sat, 28 May 2011 22:18:18 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Delivery-date: Sat, 28 May 2011 07:21:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110527152220.GA10031@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1303333640-5994-1-git-send-email-konrad.wilk@xxxxxxxxxx> <20110425115850.48b7d254@jbarnes-desktop> <20110527152220.GA10031@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acwc5Jd2jffzLEO3Te+DuhH29uPFLAAXTZ0A
Thread-topic: Fix wrong memory size of nested shadow_io_bitmap
Not sure if the mistake impact the real nested guest, but it is a bug.

Thx, Eddie



    Fix wrong memory size of nested shadow_io_bitmap.

    Signed-off-by: Eddie Dong <eddie.dong@xxxxxxxxx>

diff -r 0de62ff0850a xen/arch/x86/hvm/nestedhvm.c
--- a/xen/arch/x86/hvm/nestedhvm.c      Sat May 28 19:02:38 2011 +0800
+++ b/xen/arch/x86/hvm/nestedhvm.c      Sat May 28 19:24:37 2011 +0800
@@ -173,9 +173,9 @@
  */
 
 /* same format and size as hvm_io_bitmap */
-#define IOBITMAP_SIZE          3*PAGE_SIZE/BYTES_PER_LONG
+#define IOBITMAP_SIZE          3*PAGE_SIZE
 /* same format as hvm_io_bitmap */
-#define IOBITMAP_VMX_SIZE      2*PAGE_SIZE/BYTES_PER_LONG
+#define IOBITMAP_VMX_SIZE      2*PAGE_SIZE
 
 static unsigned long *shadow_io_bitmap[3];

Attachment: patch5
Description: patch5

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>