mbox series

[0/3] KVM: SVM: SEV-ES save area fix+cleanups

Message ID 20240617210432.1642542-1-seanjc@google.com (mailing list archive)
Headers show
Series KVM: SVM: SEV-ES save area fix+cleanups | expand

Message

Sean Christopherson June 17, 2024, 9:04 p.m. UTC
Fix a noinstr violation with allyesconfig builds due a missing __always_inline
on sev_es_host_save_area(), and tidy up related code.

Sean Christopherson (3):
  KVM: SVM: Force sev_es_host_save_area() to be inlined (for noinstr
    usage)
  KVM: SVM: Use sev_es_host_save_area() helper when initializing tsc_aux
  KVM: SVM: Use compound literal in lieu of __maybe_unused rdmsr() param

 arch/x86/kvm/svm/svm.c | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)


base-commit: e4e9e1067138e5620cf0500c3e5f6ebfb9d322c8

Comments

Sean Christopherson June 28, 2024, 10:55 p.m. UTC | #1
On Mon, 17 Jun 2024 14:04:29 -0700, Sean Christopherson wrote:
> Fix a noinstr violation with allyesconfig builds due a missing __always_inline
> on sev_es_host_save_area(), and tidy up related code.
> 
> Sean Christopherson (3):
>   KVM: SVM: Force sev_es_host_save_area() to be inlined (for noinstr
>     usage)
>   KVM: SVM: Use sev_es_host_save_area() helper when initializing tsc_aux
>   KVM: SVM: Use compound literal in lieu of __maybe_unused rdmsr() param
> 
> [...]

Applied 1-2 to kvm-x86 svm.  The compound literal magic is unnecessary, and
hopefully someday we'll fixup the rdmsr mess.

[1/3] KVM: SVM: Force sev_es_host_save_area() to be inlined (for noinstr usage)
      https://github.com/kvm-x86/linux/commit/34830b3c02ae
[2/3] KVM: SVM: Use sev_es_host_save_area() helper when initializing tsc_aux
      https://github.com/kvm-x86/linux/commit/704ec48fc2fb
[3/3] KVM: SVM: Use compound literal in lieu of __maybe_unused rdmsr() param
      (not applied)

--
https://github.com/kvm-x86/linux/tree/next