OSDN Git Service

KVM/VMX: Check ept_pointer before flushing ept tlb
authorLan Tianyu <Tianyu.Lan@microsoft.com>
Thu, 6 Dec 2018 07:34:36 +0000 (15:34 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 17:00:02 +0000 (18:00 +0100)
commit53963a70ac268c8e813e6d5cd24cbd1b03f56059
tree8c7a8e61c15a2fd0695caeb3acd8f2f432cb37ba
parenta0d4f8034446df402a879dac04cab61f71c4fafc
KVM/VMX: Check ept_pointer before flushing ept tlb

This patch is to initialize ept_pointer to INVALID_PAGE and check it
before flushing ept tlb. If ept_pointer is invalid, bypass the flush
request.

Signed-off-by: Lan Tianyu <Tianyu.Lan@microsoft.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c