KVM: VMX: Add and use X86_CR4_PDPTR_BITS when !enable_ept
authorLai Jiangshan <laijs@linux.alibaba.com>
Mon, 8 Nov 2021 12:43:57 +0000 (20:43 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:25:00 +0000 (04:25 -0500)
commita37ebdce168f57732ff2917a685980fc21133417
tree445ed163f79e972b572241a56f955ffca12bff08
parent5ec60aad547f716530ad308266eeab378a4e287c
KVM: VMX: Add and use X86_CR4_PDPTR_BITS when !enable_ept

In set_cr4_guest_host_mask(), all cr4 pdptr bits are already set to be
intercepted in an unclear way.

Add X86_CR4_PDPTR_BITS to make it clear and self-documented.

No functionality changed.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Message-Id: <20211108124407.12187-6-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/kvm_cache_regs.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c