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

RE: [Xen-devel] [PATCH 00 of 20] Rebased Nested VMX v2

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 00 of 20] Rebased Nested VMX v2
From: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Date: Tue, 14 Jun 2011 11:01:52 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Delivery-date: Mon, 13 Jun 2011 20:04:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110613092450.GB17634@xxxxxxxxxxxxxxxxxxxxxxx>
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: <patchbomb.1307607905@xxxxxxxxxxxxxxxxxxxx> <4DF09CAC.3060108@xxxxxxx> <20110613092450.GB17634@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acwpq8F2fAGoeLrSTC+SgiOJOqK9YwAkz4Nw
Thread-topic: [Xen-devel] [PATCH 00 of 20] Rebased Nested VMX v2
> 
> Eddie, I've queued up 01-19 ready to be committed.  Patch 20 still has
> some MSRs that are passed through directly from the host, which I think
> needs to be fixed.  I'd prefer just a new patch 20 rather than a new
> drop of the whole series next time, to save me having to re-check
> 01-19.
> 

Thanks, Tim. I have reposted patch 20.

BTW,  here is a bug fix to patch 17.

Eddie


    Filter out the high bit in indexing from port # to iobitmap

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


diff -r 4e1760dc3134 xen/arch/x86/hvm/vmx/vvmx.c
--- a/xen/arch/x86/hvm/vmx/vvmx.c       Tue Jun 14 10:33:59 2011 +0800
+++ b/xen/arch/x86/hvm/vmx/vvmx.c       Tue Jun 14 10:53:20 2011 +0800
@@ -1531,7 +1531,7 @@ if (debug_nested_event) {
         {
             port = __vmread(EXIT_QUALIFICATION) >> 16;
             bitmap = nvmx->iobitmap[port >> 15];
-            if ( bitmap[(port <<1) >> 4] & (1 << (port & 0x7)) )
+            if ( bitmap[(port & 0x7fff) >> 4] & (1 << (port & 0x7)) )
                 nvcpu->nv_vmexit_pending = 1;
             if ( !nvcpu->nv_vmexit_pending )
                gdprintk(XENLOG_WARNING, "L0 PIO %x.\n", port);


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel