Re: [RFC PATCH 4/7] x86: Add XFD faulting bit for state components

2022-01-21 Thread Yang Zhong
On Tue, Jan 18, 2022 at 01:52:51PM +0100, Paolo Bonzini wrote: > On 1/7/22 10:31, Yang Zhong wrote: > >-uint32_t need_align; > >+uint32_t need_align, support_xfd; > > These can be replaced by a single field "uint32_t ecx". > > You can add also macros like > > #define ESA_FEATURE_ALIGN64_

Re: [RFC PATCH 4/7] x86: Add XFD faulting bit for state components

2022-01-18 Thread Paolo Bonzini
On 1/7/22 10:31, Yang Zhong wrote: -uint32_t need_align; +uint32_t need_align, support_xfd; These can be replaced by a single field "uint32_t ecx". You can add also macros like #define ESA_FEATURE_ALIGN64_BIT (1) #define ESA_FEATURE_XFD_BIT (2) to simplify access. Paolo

Re: [RFC PATCH 4/7] x86: Add XFD faulting bit for state components

2022-01-10 Thread Yang Zhong
On Mon, Jan 10, 2022 at 04:38:18PM +0800, Tian, Kevin wrote: > > From: Zhong, Yang > > Sent: Friday, January 7, 2022 5:32 PM > > > > From: Jing Liu > > > > Intel introduces XFD faulting mechanism for extended > > XSAVE features to dynamically enable the features in > > runtime. If CPUID (EAX=0Dh,

RE: [RFC PATCH 4/7] x86: Add XFD faulting bit for state components

2022-01-10 Thread Tian, Kevin
> From: Zhong, Yang > Sent: Friday, January 7, 2022 5:32 PM > > From: Jing Liu > > Intel introduces XFD faulting mechanism for extended > XSAVE features to dynamically enable the features in > runtime. If CPUID (EAX=0Dh, ECX=n, n>1).ECX[2] is set > as 1, it indicates support for XFD faulting of