Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

[Xen-devel] Re: [PATCH][RFC] Emulating real mode with x86_emulate

To: Andi Kleen <andi@xxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH][RFC] Emulating real mode with x86_emulate
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Fri, 30 Mar 2007 17:00:54 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir@xxxxxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
Delivery-date: Fri, 30 Mar 2007 23:02:12 +0100
Envelope-to: Keir.Fraser@xxxxxxxxxxxx
In-reply-to: <20070330212548.GA10338@xxxxxxxxxxxxxxxxxx>
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: <4607074E.1030807@xxxxxxxxxx> <p73mz1uqt5q.fsf@xxxxxxxxxxxxxx> <460D7F26.2080809@xxxxxxxxxx> <20070330212548.GA10338@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (X11/20070307)
Andi Kleen wrote:
There are some hard problems with migrating into QEMU. Namely, the code that QEMU generates isn't SMP safe (atomic instructions lose their atomicity)

I see.

You're worrying that real mode startup trampolines of OS rely on atomic instructions? I can't think of much other possible real mode
multi CPU code.

No, that's a concern for using V2E to handle 32 bit code. The big problem for handling real mode code is dealing with synchronization for device state. With the devices split between QEMU and within the hypervisor, this becomes even more complicated.

Any of the interesting guests that use big real mode also depend on being able to synchronize this device state.

Regards,

Anthony Liguori

-Andi


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