Re: [Xen-devel] [PATCH 10/24] xen: mask XSAVE from cpuid
From: H. Peter Anvin
Date: Mon Mar 16 2009 - 21:42:31 EST
Andi Kleen wrote:
> "Jan Beulich" <jbeulich@xxxxxxxxxx> writes:
>
>>>>> Arjan van de Ven <arjan@xxxxxxxxxxxxx> 16.03.09 01:09 >>>
>>> Well.. pretty much all new instructions need Xen modifications due to
>>> the need to be emulate to deal with traps/vmexits/etc right?
>>> So I don't quite see many cpuid bits that would NOT involve some Xen
>>> modification or another ;)
>> No, new (user-mode accessible) instructions represent precisely the kind
>> of extension that do not require hypervisor (or OS) awareness (see SSE2
>> etc, AES, FMA). New registers otoh are examples of where awareness is
>> needed (SSE, AVX), as would be new privileged instructions.
>
> Whey would another hypothetical FP register extension need Xen support
> once it gets proper XSAVE support? I can't think of a reason why
> (assuming XSAVE support) it would need to know of a new kind of
> FP register or similar. They very likely won't appear in any
> instructions that need mmio. Or are you worried about the real
> mode emulator?
>
The point is YOU DON'T KNOW. In particular, there might be new traps,
there might be new state, there might be new MSRs, there might be new
control bits... anything. Therefore, you cannot blindly pass the bit
on, even though XSAVE solves one part of the problem.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/