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

Re: [XenPPC] [xenppc-unstable] [ppc] Turn on Save and Restore of VMX reg


On Jun 13, 2006, at 8:43 PM, Segher Boessenkool wrote:

Ok, its a bad comment :).
The point is that, the hypervisor cannot depend on the OSes above us to use VRSAVE at all, so we have to S&R the whole shebang.

Ah, much clearer already.

Do we really have to?  Can't we, for example, define the supervisor
vs. hypervisor ABI wrt. VMX to be "if the hypervisor wants to use
any VMX regs, it better S&R those itself"?  And when switching
supervisor context, just swap-em all out.  Although perhaps this is
just what the full code is doing, souldn't tell from the patch alone :-)

The S&R of FPU and VMX (and SLB while we are at it) occurs only on domain switch. We could come up with optimizations from the domain where the domain can assert that the FPU and VMX registers matter and in that case simply zero them, but that a future optimization.

-JX


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

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