aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/smm.c
diff options
context:
space:
mode:
authorGravatar Maxim Levitsky <mlevitsk@redhat.com> 2023-01-30 17:20:03 -0800
committerGravatar Sean Christopherson <seanjc@google.com> 2023-01-31 12:56:42 -0800
commit916b54a7688b0b9a1c48c708b848e4348c3ae2ab (patch)
tree0cb5c19bb0c5bf0283a7db3e4a86b92997dc0e67 /arch/x86/kvm/smm.c
parentKVM: x86: Move HF_GIF_MASK into "struct vcpu_svm" as "guest_gif" (diff)
downloadlinux-916b54a7688b0b9a1c48c708b848e4348c3ae2ab.tar.gz
linux-916b54a7688b0b9a1c48c708b848e4348c3ae2ab.tar.bz2
linux-916b54a7688b0b9a1c48c708b848e4348c3ae2ab.zip
KVM: x86: Move HF_NMI_MASK and HF_IRET_MASK into "struct vcpu_svm"
Move HF_NMI_MASK and HF_IRET_MASK (a.k.a. "waiting for IRET") out of the common "hflags" and into dedicated flags in "struct vcpu_svm". The flags are used only for the SVM and thus should not be in hflags. Tracking NMI masking in software isn't SVM specific, e.g. VMX has a similar flag (soft_vnmi_blocked), but that's much more of a hack as VMX can't intercept IRET, is useful only for ancient CPUs, i.e. will hopefully be removed at some point, and again the exact behavior is vendor specific and shouldn't ever be referenced in common code. converting VMX No functional change is intended. Suggested-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Tested-by: Santosh Shukla <Santosh.Shukla@amd.com> Link: https://lore.kernel.org/r/20221129193717.513824-5-mlevitsk@redhat.com [sean: split from HF_GIF_MASK patch] Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/kvm/smm.c')
0 files changed, 0 insertions, 0 deletions