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 06/16] vmx: nest: handling VMX instruction exits

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Christoph Egger <Christoph.Egger@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 06/16] vmx: nest: handling VMX instruction exits
From: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Date: Mon, 20 Sep 2010 21:10:33 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, "Dong, Eddie" <eddie.dong@xxxxxxxxx>, "He, Qing" <qing.he@xxxxxxxxx>
Delivery-date: Mon, 20 Sep 2010 06:16:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C8BCEAE4.2383C%keir.fraser@xxxxxxxxxxxxx>
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: <1A42CE6F5F474C41B63392A5F80372B22A95FB06@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C8BCEAE4.2383C%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: ActUrjFTQ+ojJjAnSDWc/9iRkRslWQAAQqD5AAF/29AABVpPLQABspUgAAGP4pYA5kz3IAAKg/krAALKLlAAAHr30gAHQp4g
Thread-topic: [Xen-devel] [PATCH 06/16] vmx: nest: handling VMX instruction exits
Keir Fraser wrote:
> On 20/09/2010 10:33, "Dong, Eddie" <eddie.dong@xxxxxxxxx> wrote:
> 
>>> Are you suggesting to always emulate instead of always inject-to-L1?
>>> That's still not accurate virtualisation of this VMX feature.
>> 
>> L2 PIO is always exiting to L0. So we wither inject to L1, or
>> emulate it in L0, base on L1 I/O exiting and bitmap setting.
>> 
>>> 
>>> Hmm... Are you currently setting up to always vmexit on I/O port
>>> accesses by L2? Even if you are, that doesn't stop you looking at
>>> the 
>> 
>> Yes.
>> 
>>> virtual I/O bitmap from in your L0 vmexit handler, and doing the
>> 
>> No, we checked the L1 settings.
> 
> Right, okay, I think this issue about write-protecting the I/O bitmap
> and maintaining an accurate shadow bitmap is entirely orthogonal to
> the issue of emulation versus injection. The former issue is a
> performance optimisation only afaics, and I wouldn't care about that
> in a first checkin of nestedhvm. 

Yes, that is what I mean. I fixed it locally w/ emulation in L0 + "always 
exit", and we may enhance by maintaining an accurate bitmap.

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

<Prev in Thread] Current Thread [Next in Thread>