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] Re: [RFC PATCH 18/35] Support gdt/idt/ldt handling on Xe

To: Zachary Amsden <zach@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [RFC PATCH 18/35] Support gdt/idt/ldt handling on Xen.
From: Andi Kleen <ak@xxxxxxx>
Date: Wed, 22 Mar 2006 18:36:23 +0100
Cc: Chris Wright <chrisw@xxxxxxxxxxxx>, virtualization@xxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Ian Pratt <ian.pratt@xxxxxxxxxxxxx>
Delivery-date: Wed, 22 Mar 2006 18:10:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <44218E9C.3060102@xxxxxxxxxx>
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: <20060322063040.960068000@xxxxxxxxxxxxxxxxxx> <200603221530.51644.ak@xxxxxxx> <44218E9C.3060102@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
On Wednesday 22 March 2006 18:51, Zachary Amsden wrote:

> 
> Yes, trapping works fine.  Even LLDT is infrequent. 

Not when you use old style LinuxThreads which use the LDT for TLS.

> No.  First, you have to create a special #GP handler for the general 
> protection fault.  

[... etc ...]

Sure but Xen already has the infrastructure for all of this and last
time I checked it was approaching and exceeding the size of the main
core kernel so a bit more of instruction emulation probably wouldn't 
do too much harm. 

In general I think any x86 hypervisor that attempts to work 
on current platforms needs instruction emulation because it is 
the only way to virtualize IO devices.

If this was supposed to be a interface for lots of hypervisors then maybe,
but so far it seems to only cover Xen and possibly some other bloatware 
ones.

That said I don't feel very strongly about emulating these instructions
or not as long as they can do that without too much code duplication.
The current patch are still a bit too excessive on the duplication front.

-Andi

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

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