KVM: x86: Add macro to ensure reserved cr4 bits checks stay in sync
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 10 Dec 2019 22:44:16 +0000 (14:44 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Jan 2020 12:58:16 +0000 (13:58 +0100)
commit345599f9a292899bf5474651f3cea9b7a0576436
tree9da0cec97792658b18d01eae6b38ed5d99a1d80f
parent96be4e069c938e4a5fc7125de7e1cc7089b1adef
KVM: x86: Add macro to ensure reserved cr4 bits checks stay in sync

Add a helper macro to generate the set of reserved cr4 bits for both
host and guest to ensure that adding a check on guest capabilities is
also added for host capabilities, and vice versa.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c