[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240422174417.GBZiah8YrdzM6_bA2R@fat_crate.local>
Date: Mon, 22 Apr 2024 19:44:17 +0200
From: Borislav Petkov <bp@...en8.de>
To: Sean Christopherson <seanjc@...gle.com>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>, linux-kernel@...r.kernel.org,
jgross@...e.com, tglx@...utronix.de, x86@...nel.org
Subject: Re: [PATCH 4/4] x86/xen: Enumerate NX from CPUID directly
On Thu, Apr 04, 2024 at 08:05:52AM -0700, Sean Christopherson wrote:
> ...
> and then the NX Xen code is more simply
>
> x86_configure_nx(x86_cpuid_has(X86_FEATURE_NX));
I can't say that I haven't looked at the KVM features code and haven't
thought that, yap, some of the bits we could make generic. And I was
going to even suggest that but then, there's this bigger CPUID feature
rework that has been brewing on the horizon for a loong while now and
where we want to read out the CPUID features once and have everything
else query those instead of everybody doing their own thing...
.. and some of that work is here:
https://lpc.events/event/17/contributions/1511/ ...
and tglx wanted to get this thing moving faster...
So yeah, I think we should finally unify all the feature bits handling
and reading so that there's a single set of APIs which are used by
everybody instead of the crazy "fun" we have now.
And then my hope is that you could kill/merge some of the KVM infra into
generic code.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists