|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: [PATCH] x86: unconditionally mark TSC unstable under
On 07/15/2010 09:40 AM, Dan Magenheimer wrote:
> Isn't the real problem that, in a PV guest, the cpuid instructions
> that are testing the TSC-related CPUID bits are obtaining the actual
> hardware value, rather than what Xen would like the guest to believe?
>
No, because there shouldn't be any "naked" rdtscs in the kernel.
> IOW, isn't the correct fix to use pvcpuid instead of cpuid when
> xen_pvdomain() is true?
>
Every use of cpuid in the kernel goes via the cpuid pvop, which ends up
doing the Xen cpuid rather than the native one. Usermode cpuid is still
the "real" one, unless they explicitly use the Xen version.
J
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|