public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] x86, kvm: Unify CPUID computation and fix MSR accessing
@ 2015-11-14 10:37 Borislav Petkov
  2015-11-14 10:37 ` [RFC PATCH 1/3] x86/cpu: Unify CPU family, model, stepping calculation Borislav Petkov
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Borislav Petkov @ 2015-11-14 10:37 UTC (permalink / raw)
  To: LKML; +Cc: Paolo Bonzini, X86 ML, KVM

From: Borislav Petkov <bp@suse.de>

Hi all,

so this is something which should help fixing the MSR access to IC_CFG
on AMD.

The usefulness should come, however, from the unification and the
additional family, model, stepping helpers in kvm in case one wants to
know those of the guest CPU. Who knows, might be much more useful in the
future.

Quick testing shows it works, I'll hammer on it more after rc1 is out.

Thanks.

Borislav Petkov (3):
  x86/cpu: Unify CPU family, model, stepping calculation
  kvm: Add accessors for guest CPU's family, model, stepping
  x86/cpu/amd, kvm: Satisfy guest kernel reads of IC_CFG MSR

 arch/x86/include/asm/cpu.h            |  3 +++
 arch/x86/include/asm/microcode.h      | 31 +++----------------------------
 arch/x86/include/asm/msr-index.h      |  1 +
 arch/x86/kernel/cpu/amd.c             |  4 ++--
 arch/x86/kernel/cpu/common.c          | 11 +++--------
 arch/x86/kernel/cpu/microcode/core.c  |  6 +++---
 arch/x86/kernel/cpu/microcode/intel.c | 16 ++++++----------
 arch/x86/kvm/cpuid.h                  | 34 ++++++++++++++++++++++++++++++++++
 arch/x86/kvm/svm.c                    | 17 +++++++++++++++++
 arch/x86/lib/Makefile                 |  2 +-
 arch/x86/lib/cpu.c                    | 35 +++++++++++++++++++++++++++++++++++
 11 files changed, 108 insertions(+), 52 deletions(-)
 create mode 100644 arch/x86/lib/cpu.c

-- 
2.3.5


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-11-19  9:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-14 10:37 [RFC PATCH 0/3] x86, kvm: Unify CPUID computation and fix MSR accessing Borislav Petkov
2015-11-14 10:37 ` [RFC PATCH 1/3] x86/cpu: Unify CPU family, model, stepping calculation Borislav Petkov
2015-11-18 11:10   ` Paolo Bonzini
2015-11-18 11:28     ` Borislav Petkov
2015-11-18 11:35       ` Paolo Bonzini
2015-11-18 18:50         ` Borislav Petkov
2015-11-19  9:34           ` Paolo Bonzini
2015-11-19  9:47             ` Borislav Petkov
2015-11-14 10:37 ` [RFC PATCH 2/3] kvm: Add accessors for guest CPU's family, model, stepping Borislav Petkov
2015-11-18 11:10   ` Paolo Bonzini
2015-11-14 10:37 ` [RFC PATCH 3/3] x86/cpu/amd, kvm: Satisfy guest kernel reads of IC_CFG MSR Borislav Petkov
2015-11-18 11:11   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox