On 21/11/2014 21:06, Andy Lutomirski wrote:
>> > +                  cpuid_count(XSTATE_CPUID, index,
>> > +                              &size, &offset, &ecx, &edx);
>> > +                  memcpy(dest + offset, src, size);
> Is this really the best way to do this?  cpuid is serializing, so this
> is possibly *very* slow.

The data is in arch/x86/kernel/xsave.c, but it is not exported.  But
this is absolutely not a hotspot.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to