Re: [PATCH] KVM: VMX: Add helpers to identify interrupt type from intr_info

2020-06-15 Thread Paolo Bonzini
On 09/06/20 03:45, Sean Christopherson wrote: > 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. > >

[PATCH] KVM: VMX: Add helpers to identify interrupt type from intr_info

2020-06-08 Thread Sean Christopherson
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 --- I wrote and proposed a