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: "Dong, Eddie" <eddie.dong@xxxxxxxxx>, 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: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 20 Sep 2010 10:41:40 +0100
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, "He, Qing" <qing.he@xxxxxxxxx>
Delivery-date: Mon, 20 Sep 2010 02:42:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1A42CE6F5F474C41B63392A5F80372B22A95FB06@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: ActUrjFTQ+ojJjAnSDWc/9iRkRslWQAAQqD5AAF/29AABVpPLQABspUgAAGP4pYA5kz3IAAKg/krAALKLlAAAHr30g==
Thread-topic: [Xen-devel] [PATCH 06/16] vmx: nest: handling VMX instruction exits
User-agent: Microsoft-Entourage/12.26.0.100708
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.

 -- Keir



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

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