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-ia64-devel

Re: [Xen-ia64-devel] RE: [PATCH]: disable handling of legacy privified i

To: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Subject: Re: [Xen-ia64-devel] RE: [PATCH]: disable handling of legacy privified insns
From: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Date: Mon, 20 Mar 2006 08:34:34 +0100
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 20 Mar 2006 07:31:41 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <516F50407E01324991DD6D07B0531AD5A64786@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <516F50407E01324991DD6D07B0531AD5A64786@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
Le Vendredi 17 Mars 2006 20:53, Magenheimer, Dan (HP Labs Fort Collins) a 
écrit :
> > From: Tristan Gingold [mailto:Tristan.Gingold@xxxxxxxx]
> > Sent: Friday, March 17, 2006 2:48 AM
> > To: Magenheimer, Dan (HP Labs Fort Collins)
> > Subject: Re: [Xen-ia64-devel] RE: [PATCH]: disable handling
> > of legacy privified insns
> >
> > Just a question: why hyperprivops need ic=0/ic=1 ?
> > Since they can only occur in CPL=2, Xen could check CPL
> > instead of ic ?
>
> Answering on-list for documentation to community...
>
> Break instructions and the full range of break immediate
> values are reserved for the guest.  Linux/ia64 only uses
> one break immediate value for system calls, however other
> operating systems (or future changes to Linux/ia64) may
> use other break immediate values.  Thus it is unsafe for
> Xen/ia64 to assume any specific break immediate value
> is not used by a guest.
This is what I don't understand.

Hyperprivops should only occur in Linux, shouldn't them ?

The Linux kernel doesn't use the break instructions for itself, does it ?

So, if I am correct the linux kernel could use break insns without ic=0/ic=1 
for hyperprivops.

I really think this could work for linux.
What about other OS ?  I don't see why they would use break in kernel mode.
The only exception may be debugger/single stepping.

Tristan.



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

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