On 06/04/16 12:34, Boris Petkov wrote: > Haozhong Zhang <haozhong.zh...@intel.com> wrote: > > >This patch adds the support to inject SRAR and SRAO as LMCE, i.e. they > >will be injected to only one VCPU rather than broadcast to all > >VCPUs. As KVM reports LMCE support on Intel platforms, this features is > >only available on Intel platforms. > > > >Signed-off-by: Ashok Raj <ashok....@intel.com> > >Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com> > >--- > >Cc: Paolo Bonzini <pbonz...@redhat.com> > >Cc: Richard Henderson <r...@twiddle.net> > >Cc: Eduardo Habkost <ehabk...@redhat.com> > >Cc: Marcelo Tosatti <mtosa...@redhat.com> > >Cc: Boris Petkov <b...@suse.de> > >Cc: k...@vger.kernel.org > >Cc: Tony Luck <tony.l...@intel.com> > >Cc: Andi Kleen <andi.kl...@intel.com> > >--- > > target-i386/cpu.c | 26 ++++++++++++++++++++++++++ > > target-i386/cpu.h | 13 ++++++++++++- > > target-i386/kvm.c | 35 +++++++++++++++++++++++++++++++---- > > 3 files changed, 69 insertions(+), 5 deletions(-) > > ... > > >@@ -1173,6 +1182,8 @@ struct X86CPU { > > */ > > bool enable_pmu; > > > >+ bool enable_lmce; > > That struct would go fat pretty fast if it grows a bool per CPU feature. > Perhaps a more clever, a-bit-per-featurebit scheme would be in order.
OK, I'll use a 64-bit integer for current and future features. Thanks, Haozhong