]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Add helpers to identify interrupt type from intr_info
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 9 Jun 2020 01:45:18 +0000 (18:45 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Jun 2020 16:12:20 +0000 (12:12 -0400)
commit38b8581be88508c03d2d08195bcd8d363e0d75bf
treed8120a23d4db97509022c68c71bf84cf117bf38b
parent6aa98c5db51954a49839808a72888b4b7c26181d
KVM: VMX: Add helpers to identify interrupt type from intr_info

Add is_intr_type() and is_intr_type_n() to consolidate the boilerplate
code for querying a specific type of interrupt given an encoded value
from VMCS.VM_{ENTER,EXIT}_INTR_INFO, with and without an associated
vector respectively.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200609014518.26756-1-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmcs.h