[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d770033f-5c75-8b83-08cc-eb6b3ff3a1cf@linux.intel.com>
Date: Mon, 8 Feb 2021 11:35:11 +0800
From: "Liu, Jing2" <jing2.liu@...ux.intel.com>
To: Borislav Petkov <bp@...en8.de>
Cc: pbonzini@...hat.com, seanjc@...gle.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, jing2.liu@...el.com,
x86-ml <x86@...nel.org>
Subject: Re: [PATCH RFC 3/7] kvm: x86: XSAVE state and XFD MSRs context switch
On 2/7/2021 7:49 PM, Borislav Petkov wrote:
> On Sun, Feb 07, 2021 at 10:42:52AM -0500, Jing Liu wrote:
>> diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c
>> index 7e0c68043ce3..fbb761fc13ec 100644
>> --- a/arch/x86/kernel/fpu/init.c
>> +++ b/arch/x86/kernel/fpu/init.c
>> @@ -145,6 +145,7 @@ EXPORT_SYMBOL_GPL(fpu_kernel_xstate_min_size);
>> * can be dynamically expanded to include some states up to this size.
>> */
>> unsigned int fpu_kernel_xstate_max_size;
>> +EXPORT_SYMBOL_GPL(fpu_kernel_xstate_max_size);
>>
>> /* Get alignment of the TYPE. */
>> #define TYPE_ALIGN(TYPE) offsetof(struct { char x; TYPE test; }, test)
>> diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c
>> index 080f3be9a5e6..9c471a0364e2 100644
>> --- a/arch/x86/kernel/fpu/xstate.c
>> +++ b/arch/x86/kernel/fpu/xstate.c
>> @@ -77,12 +77,14 @@ static struct xfeature_capflag_info xfeature_capflags[] __initdata = {
>> * XSAVE buffer, both supervisor and user xstates.
>> */
>> u64 xfeatures_mask_all __read_mostly;
>> +EXPORT_SYMBOL_GPL(xfeatures_mask_all);
>>
>> /*
>> * This represents user xstates, a subset of xfeatures_mask_all, saved in a
>> * dynamic kernel XSAVE buffer.
>> */
>> u64 xfeatures_mask_user_dynamic __read_mostly;
>> +EXPORT_SYMBOL_GPL(xfeatures_mask_user_dynamic);
>>
>> static unsigned int xstate_offsets[XFEATURE_MAX] = { [ 0 ... XFEATURE_MAX - 1] = -1};
>> static unsigned int xstate_sizes[XFEATURE_MAX] = { [ 0 ... XFEATURE_MAX - 1] = -1};
> Make sure you Cc x86@...nel.org when touching code outside of kvm.
>
> There's this script called scripts/get_maintainer.pl which will tell you who to
> Cc. Use it before you send next time please.
>
> Thx.
Thank you for the reminder. I'll cc that next time.
BRs,
Jing
Powered by blists - more mailing lists