• Sean Christopherson's avatar
    KVM: nVMX: Use adjusted pin controls for vmcs02 · c075c3e4
    Sean Christopherson authored
    KVM provides a module parameter to allow disabling virtual NMI support
    to simplify testing (hardware *without* virtual NMI support is hard to
    come by but it does have users).  When preparing vmcs02, use the accessor
    for pin controls to ensure that the module param is respected for nested
    guests.
    
    Opportunistically swap the order of applying L0's and L1's pin controls
    to better align with other controls and to prepare for a future patche
    that will ignore L1's, but not L0's, preemption timer flag.
    
    Fixes: d02fcf50 ("kvm: vmx: Allow disabling virtual NMI support")
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarSean Christopherson <sean.j.christopherson@intel.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    c075c3e4
vmx.h 13.6 KB