KVM: VMX: Introduce pi_is_pir_empty() helper
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 11 Nov 2019 17:20:12 +0000 (17:20 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Nov 2019 09:17:41 +0000 (10:17 +0100)
commit29881b6ec6e453ff8df37ad8f44e17bf0d4e1e12
treeed026f8ef82a5da658cdc2a964bedadde2990458
parent132194ffa138863eac620abb3b6f983278e61b4a
KVM: VMX: Introduce pi_is_pir_empty() helper

Streamline the PID.PIR check and change its call sites to use
the newly added helper.

Suggested-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h