|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 10/24] xen: mask XSAVE from cpuid
>>> Jeremy Fitzhardinge <jeremy@xxxxxxxx> 13.03.09 09:11 >>>
>From: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
>
>Xen leaves XSAVE set in cpuid, but doesn't allow cr4.OSXSAVE
>to be set. This confuses the kernel and it ends up crashing on
>an xsetbv instruction.
>
>At boot time, try to set cr4.OSXSAVE, and mask XSAVE out of
>cpuid it we can't. This will produce a spurious error from Xen,
>but allows us to support XSAVE if/when Xen does.
As pointed out on an earlier thread, it seems inappropriate to do probing
like this when there is a cpuid feature flag (osxsave) that can be used to
determine whether XSAVE can be used. And even without that flag,
simply reading CR4 and checking whether osxsave is set there would
suffice. This is under the assumption that Xen's to-be-done implementation
of XSAVE support would match that of FXSAVE (Xen turns its support on
unconditionally and for all [pv] guests).
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 04/24] xen: split construction of p2m mfn tables from registration, (continued)
- [Xen-devel] [PATCH 04/24] xen: split construction of p2m mfn tables from registration, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 03/24] xen: dynamically allocate p2m tables, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 06/24] xen: make xen_load_gdt simpler, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07/24] xen: remove xen_load_gdt debug, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 05/24] xen: clean up xen_load_gdt, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 12/24] x86-64: remove PGE from must-have feature list, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 08/24] xen: reserve i386 Xen pagetables, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 09/24] NULL noise: arch/x86/xen/smp.c, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10/24] xen: mask XSAVE from cpuid, Jeremy Fitzhardinge
- Re: [Xen-devel] [PATCH 10/24] xen: mask XSAVE from cpuid,
Jan Beulich <=
[Xen-devel] [PATCH 13/24] Xen: Add virt_to_pfn helper function, Jeremy Fitzhardinge
[Xen-devel] [PATCH 11/24] xen: add FIX_TEXT_POKE to fixmap, Jeremy Fitzhardinge
[Xen-devel] [PATCH 14/24] xen: add irq_from_evtchn, Jeremy Fitzhardinge
[Xen-devel] [PATCH 18/24] xen: add "capabilities" file, Jeremy Fitzhardinge
|
|
|
|
|