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] Fix races in iret hypercall

To: Christoph Egger <Christoph.Egger@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix races in iret hypercall
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Thu, 09 Aug 2007 09:44:41 +0100
Delivery-date: Thu, 09 Aug 2007 01:42:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200708091035.08282.Christoph.Egger@xxxxxxx>
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: AcfaYYa0xVa1iUZUEdyJlwAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH] Fix races in iret hypercall
User-agent: Microsoft-Entourage/11.3.3.061214
On 9/8/07 09:35, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:

> Attached patch fixes races seen on SMP when multiple HVM guests
> execute the iret instruction at the same time.
> 
> current vcpu can change in the middle of do_iret().

This is fine as a cleanup, but it does not fix any bugs!

For two reasons:
 1. Current vcpu *cannot* change in the middle of do_iret(). Xen does not
support involuntary preemption.
 2. HVM guests do not ever execute do_iret(). That function is for pv guests
only.

How did you conclude there was a bug?

 -- Keir


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

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