mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: Mark vendor module param read-only after init
@ 2022-11-10  1:30 Sean Christopherson
  2022-11-10  1:30 ` [PATCH 1/3] KVM: VMX: Make module params and other variables " Sean Christopherson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sean Christopherson @ 2022-11-10  1:30 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini; +Cc: kvm, linux-kernel

Mark the read-only VMX and SVM module params, and a few other global
variables, read-only after init.  In many cases, KVM is royally hosed if
a configuration knob changes while VMs are running, e.g. toggling the TDP
knob would result in spectacular fireworks.

This series is probably best queued very early in a cycle, as the result
of mis-labeled variable is an unexpected kernel #PF.

Sean Christopherson (3):
  KVM: VMX: Make module params and other variables read-only after init
  KVM: SVM: Make MSR permission bitmap offsets read-only after init
  KVM: SVM: Make module params and other variables read-only after init

 arch/x86/kvm/svm/svm.c          | 38 ++++++++++++++++-----------------
 arch/x86/kvm/svm/svm.h          |  2 +-
 arch/x86/kvm/vmx/capabilities.h | 16 +++++++-------
 arch/x86/kvm/vmx/nested.c       |  4 ++--
 arch/x86/kvm/vmx/sgx.c          |  2 +-
 arch/x86/kvm/vmx/sgx.h          |  2 +-
 arch/x86/kvm/vmx/vmx.c          | 36 +++++++++++++++----------------
 7 files changed, 50 insertions(+), 50 deletions(-)


base-commit: d663b8a285986072428a6a145e5994bc275df994
-- 
2.38.1.431.g37b22c650d-goog


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

end of thread, other threads:[~2022-11-10  1:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10  1:30 [PATCH 0/3] KVM: Mark vendor module param read-only after init Sean Christopherson
2022-11-10  1:30 ` [PATCH 1/3] KVM: VMX: Make module params and other variables " Sean Christopherson
2022-11-10  1:30 ` [PATCH 2/3] KVM: SVM: Make MSR permission bitmap offsets " Sean Christopherson
2022-11-10  1:30 ` [PATCH 3/3] KVM: SVM: Make module params and other variables " Sean Christopherson

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

all inboxes | Powered by JetHome®