[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aef8093d-f7da-c8b4-ebf6-6053b50b77ba@srcf.net>
Date: Tue, 9 Nov 2021 15:28:32 +0000
From: Andrew Cooper <amc96@...f.net>
To: Peter Zijlstra <peterz@...radead.org>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>
Cc: linux-kernel@...r.kernel.org, xen-devel@...ts.xenproject.org,
tglx@...utronix.de, bp@...en8.de, dave.hansen@...ux.intel.com,
x86@...nel.org, hpa@...or.com, jgross@...e.com
Subject: Re: [PATCH] x86/smp: Factor out parts of native_smp_prepare_cpus()
On 09/11/2021 15:10, Peter Zijlstra wrote:
> On Mon, Nov 08, 2021 at 12:20:26PM -0500, Boris Ostrovsky wrote:
>>> But looking at those functions; there seems to be more spurious
>>> differences. For example, the whole sched_topology thing.
>>
>> I did look at that and thought this should be benign given that Xen PV
>> is not really topology-aware. I didn't see anything that would be a
>> cause for concern but perhaps you can point me to things I missed.
> And me not being Xen aware... What does Xen-PV guests see of the CPUID
> topology fields? Does it fully sanitize the CPUID data, or is it a clean
> pass-through from whatever CPU the vCPU happens to run on at the time?
That depends on hardware support (CPUID Faulting or not), version of Xen
(anything before Xen 4.7 is totally insane. Anything more recent is
only moderately insane), and whether the kernel asks via the enlightened
CPUID path or not.
On hardware lacking CPUID faulting, and for a kernel using
native_cpuid() where it ought to be using the PVOP, it sees the real
hardware value of the CPU it happens to be running on.
~Andrew
Powered by blists - more mailing lists