[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9925d172-94e1-4e7a-947e-46261ac83864@intel.com>
Date: Mon, 28 Apr 2025 18:11:24 -0700
From: "Chang S. Bae" <chang.seok.bae@...el.com>
To: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
CC: "kvm@...r.kernel.org" <kvm@...r.kernel.org>, "ebiggers@...gle.com"
<ebiggers@...gle.com>, "Hansen, Dave" <dave.hansen@...el.com>,
"dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>, "Spassov,
Stanislav" <stanspas@...zon.de>, "levymitchell0@...il.com"
<levymitchell0@...il.com>, "samuel.holland@...ive.com"
<samuel.holland@...ive.com>, "Li, Xin3" <xin3.li@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "Yang,
Weijiang" <weijiang.yang@...el.com>, "mingo@...hat.com" <mingo@...hat.com>,
"pbonzini@...hat.com" <pbonzini@...hat.com>, "mlevitsk@...hat.com"
<mlevitsk@...hat.com>, "john.allen@....com" <john.allen@....com>,
"tglx@...utronix.de" <tglx@...utronix.de>, "vigbalas@....com"
<vigbalas@....com>, "peterz@...radead.org" <peterz@...radead.org>,
"hpa@...or.com" <hpa@...or.com>, "Gao, Chao" <chao.gao@...el.com>,
"bp@...en8.de" <bp@...en8.de>, "aruna.ramakrishna@...cle.com"
<aruna.ramakrishna@...cle.com>, "x86@...nel.org" <x86@...nel.org>,
"seanjc@...gle.com" <seanjc@...gle.com>
Subject: Re: [PATCH v5 3/7] x86/fpu/xstate: Differentiate default features for
host and guest FPUs
On 4/28/2025 8:42 AM, Edgecombe, Rick P wrote:
>
> Right, so there should be no need to keep a separate features and buffer size
> for KVM's xsave UABI, as this patch does. Let's just leave it using the core
> kernels UABI version.
Hmm, why so?
As I see it, the vcpu->arch.guest_fpu structure is already exposed to
KVM. This series doesn’t modify those structures (fpu_guest and
fpstate), other than removing a dead field (patch 2).
Both ->usersize and ->user_xfeatures fields are already exposed --
currently KVM just doesn’t reference them at all.
All the changes introduced here are transparent to KVM. Organizing the
initial values and wiring up guest_perm and fpstate are entirely
internal to the x86 core, no?
Powered by blists - more mailing lists