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] PATCH [resend]: more case handled in mmio.c

To: "Tristan Gingold" <Tristan.Gingold@xxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>, "Alex Williamson" <alex.williamson@xxxxxx>
Subject: RE: [Xen-ia64-devel] PATCH [resend]: more case handled in mmio.c
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Fri, 14 Apr 2006 22:37:34 +0800
Delivery-date: Fri, 14 Apr 2006 07:37:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcZftxHVXuTee5PLSE223LDdAy/BkgAF5fGw
Thread-topic: [Xen-ia64-devel] PATCH [resend]: more case handled in mmio.c
>From: Tristan Gingold
>Sent: 2006?4?14? 19:36
>To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx; Alex Williamson
>Subject: [Xen-ia64-devel] PATCH [resend]: more case handled in mmio.c
>
>Hi,
>
>thanks to Anthony comments, I have rewritten getfpregs.
>
>Tested by booting domVTI.

I don't think getfpreg will be executed even domVTI is booting. :-).

Currently, every time domain switch, all floating registers are saved.
So lazy floating registers save/restore algorithm is not implemented in xen.
It's not ease. :-).
When domain switch happens, below function is called.
/* load f32-f127 from FPH */
static inline void
ia64_load_fpu (struct ia64_fpreg *fph) {
        ia64_fph_enable();
        __ia64_load_fpu(fph);
        ia64_fph_disable();
}
Fph is disabled, and if getfpreg is called, disabled floating
Register fault may happen.
Because all fr are saved at domain switch, seems VMM don't
Need to disable fph.
My question is,
Do we need to implement lazy fr algorithm?
If yes, we need to handle disabled fr fault and not need to save
all fr at domain switch.
If no, we can simply remove all ia64_fph_enable() and ia64_fph_disable()
in VMM.
What's your option?


Thanks,
Anthony

>
>Tristan.

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