diff options
| author | 2022-08-30 15:37:24 +0200 | |
|---|---|---|
| committer | 2022-09-26 12:02:51 -0400 | |
| commit | 378c4c18509b9eb268a18e03cc1c7e531a97f550 (patch) | |
| tree | df9ae062cf0f13f0674ce8522d22b2f631fb1e04 /tools/testing/selftests/exec/git:/ssh:/git@git.zx2c4.com | |
| parent | KVM: VMX: Check VM_ENTRY_IA32E_MODE in setup_vmcs_config() (diff) | |
| download | linux-dev-378c4c18509b9eb268a18e03cc1c7e531a97f550.tar.xz linux-dev-378c4c18509b9eb268a18e03cc1c7e531a97f550.zip | |
KVM: VMX: Check CPU_BASED_{INTR,NMI}_WINDOW_EXITING in setup_vmcs_config()
CPU_BASED_{INTR,NMI}_WINDOW_EXITING controls are toggled dynamically by
vmx_enable_{irq,nmi}_window, handle_interrupt_window(), handle_nmi_window()
but setup_vmcs_config() doesn't check their existence. Add the check and
filter the controls out in vmx_exec_control().
Note: KVM explicitly supports CPUs without VIRTUAL_NMIS and all these CPUs
are supposedly lacking NMI_WINDOW_EXITING too. Adjust cpu_has_virtual_nmis()
accordingly.
No functional change intended.
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220830133737.1539624-21-vkuznets@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/exec/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
