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: Device model architecture (Was Re: [Xen-devel] Re: Are linker script

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: Device model architecture (Was Re: [Xen-devel] Re: Are linker scripts needed?)
From: adsharma@xxxxxxxxxxxxxxxxxxxx (Arun Sharma)
Date: Wed, 25 May 2005 23:43:53 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 26 May 2005 06:42:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <mailman.1116984272.27453@xxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <mailman.1116984272.27453@xxxxxxxxxxxxxxxxxxxx>
Reply-to: Arun Sharma <arun.sharma@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
In xen.devel, you wrote:
>
>> > - why is this better than running the device models inside the VMX 
>> > domain? Do you expect switching to the helper domain to be 
>> faster than 
>> > a  vmx world switch?
>> 
>> Depends on whether you can make the CPU do a direct switch, 
>> or if you need to 'bounce' through root VMCS (taking an extra 
>> cr3 switch).
>
> The 'monitor_table' will also be the (single) pagetable for device
> emulator and Xen.
>
> There should be no need for extra cr3 switches (other than that incurred
> by the vmexit).
>
> When switching between the vmcs guest and the minios, we just need to
> switch new values into the guest_table variable and the shadow_mode
> variable and then all the Xen logic will do the right thing. (no cr3
> flush in incurred)

I guess the main logic behind your argument is that there is no need to
fully virtualize the device models, so no need to run them within a
non-root VMCS.

This should give us some of the same management benefits that running
them inside a VMX domain would give us (memory sharing, device models
go away when the domain is destroyed etc).

The only comment I have is: for the case where the device models require the
services of a backend driver, you might be paying more than what we
currently pay (one domain switch) i.e. vmx domain -> mini os -> backend. But
it should be faster for everything else.

        -Arun

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

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