]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c84c2ea1374436d96772054f37ee1eae7c2fc0e
treeed026f8ef82a5da658cdc2a964bedadde2990458
parentfb8921138a81bf6d8c84794709756c5dd70a0566
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