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] [RFC][PATCH] Emulate instructions in vm86 mode

To: Bastian Blank <bastian@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC][PATCH] Emulate instructions in vm86 mode
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 07 Sep 2006 14:24:33 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 07 Sep 2006 06:23:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060907130908.GA6165@xxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbSgPS4M3pndT50Edu/wwAX8io7RQ==
Thread-topic: [Xen-devel] [RFC][PATCH] Emulate instructions in vm86 mode
User-agent: Microsoft-Entourage/11.2.5.060620


On 7/9/06 14:09, "Bastian Blank" <bastian@xxxxxxxxxxxx> wrote:

>> (INS/OUTS). What happens if you just bail to the guest's GPF handler if in
>> vm86 mode?
> 
> I don't know how to do that.

Just add 'if (vm86_mode(regs)) goto fail' to the top of
emulate_privileged_op(). This will cause Xen to fall back to propagating the
fault to the guest's GPF handler.

 -- Keir

> There is some code to pass it to the guest in do_general_protection, but
> I don't know why it fails than.



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