]> git.baikalelectronics.ru Git - kernel.git/commit
KVM/x86: Fix wrong macro references of X86_CR0_PG_BIT and X86_CR4_PAE_BIT in kvm_vali...
authorTianyu Lan <lantianyu1986@gmail.com>
Tue, 16 Jan 2018 09:34:07 +0000 (17:34 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 17 Jan 2018 14:01:11 +0000 (15:01 +0100)
commitdad7fe0d799b90f32d4e810917ef666a4c8cff35
tree8c718f63174a756713e411ab2a866d1cfb524b91
parentcd3fd2d40a074682d91367e74674e69b5a1e35ca
KVM/x86: Fix wrong macro references of X86_CR0_PG_BIT and X86_CR4_PAE_BIT in kvm_valid_sregs()

kvm_valid_sregs() should use X86_CR0_PG and X86_CR4_PAE to check bit
status rather than X86_CR0_PG_BIT and X86_CR4_PAE_BIT. This patch is
to fix it.

Fixes: 4ba026612306b(KVM/x86: Check input paging mode when cs.l is set)
Reported-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c