public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: x86: Propagate AMD-specific IBRS bits to guests
@ 2023-02-27 21:05 Takahiro Itazuri
  2023-02-27 21:05 ` [PATCH 1/2] x86/cpufeatures: Add AMD-specific IBRS bits Takahiro Itazuri
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Takahiro Itazuri @ 2023-02-27 21:05 UTC (permalink / raw)
  To: kvm, x86
  Cc: Sean Christopherson, Paolo Bonzini, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, linux-kernel, Takahiro Itazuri,
	Takahiro Itazuri

VMMs retrieve supported CPUID features via KVM_GET_SUPPORTED_CPUID to
construct CPUID information to be passed to KVM_SET_CPUID2. Most CPUID
feature bits related to speculative attacks are propagated from host
CPUID. But AMD processors have AMD-specific IBRS related bits in CPUID
Fn8000_0008_EBX (ref: AMD64 Architecture Programmer's Manual Volume 3:
General-Purpose and System Instructions) and some bits are not
propagated to guests.

Enable propagation of these bits to guests, so that VMMs don't have to
enable them explicitly based on host CPUID.

Takahiro Itazuri (2):
  x86/cpufeatures: Add AMD-specific IBRS bits
  KVM: x86: Propagate AMD-specific IBRS related bits

 arch/x86/include/asm/cpufeatures.h | 3 +++
 arch/x86/kvm/cpuid.c               | 5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
2.38.0


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

end of thread, other threads:[~2023-03-07 19:59 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-27 21:05 [PATCH 0/2] KVM: x86: Propagate AMD-specific IBRS bits to guests Takahiro Itazuri
2023-02-27 21:05 ` [PATCH 1/2] x86/cpufeatures: Add AMD-specific IBRS bits Takahiro Itazuri
2023-02-27 21:05 ` [PATCH 2/2] KVM: x86: Propagate AMD-specific IBRS related bits Takahiro Itazuri
2023-02-27 21:40 ` [PATCH 0/2] KVM: x86: Propagate AMD-specific IBRS bits to guests Borislav Petkov
2023-02-28 18:13   ` Takahiro Itazuri
2023-02-28 19:24     ` Borislav Petkov
2023-02-28 19:41       ` Takahiro Itazuri
2023-02-28 20:45         ` Borislav Petkov
2023-02-28 22:24           ` Takahiro Itazuri
2023-02-28 22:50             ` Borislav Petkov
2023-03-06 21:16               ` Sean Christopherson
2023-03-06 21:25                 ` Paolo Bonzini
2023-03-06 21:44                 ` Borislav Petkov
2023-03-06 21:47                   ` Paolo Bonzini
2023-03-06 21:54                     ` Borislav Petkov
2023-03-07 18:49                       ` Sean Christopherson
2023-03-07 18:58                         ` Borislav Petkov
2023-03-07 19:28                           ` Sean Christopherson
2023-03-07 19:55                             ` Borislav Petkov
2023-03-06 21:31   ` Paolo Bonzini

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