]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Fix MSR_IA32_BNDCFGS in msrs_to_save
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 12 Apr 2015 18:47:15 +0000 (21:47 +0300)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:11:46 +0000 (19:11 -0400)
commit753fd54a07c04b01555a45fe9b124cee6cfed450
treeb396a8e04f4612f3bfa795f265c8ee5d995dd088
parent6cbb41b18694ff9d928aa94e144487ca7b26e6f4
KVM: x86: Fix MSR_IA32_BNDCFGS in msrs_to_save

[ Upstream commit HEAD ]

commit 9e9c3fe40bcd28e3f98f0ad8408435f4503f2781 upstream.

kvm_init_msr_list is currently called before hardware_setup. As a result,
vmx_mpx_supported always returns false when kvm_init_msr_list checks whether to
save MSR_IA32_BNDCFGS.

Move kvm_init_msr_list after vmx_hardware_setup is called to fix this issue.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Message-Id: <1428864435-4732-1-git-send-email-namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 702a71cf592282298395b3359f49a9a985182934)
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/x86/kvm/x86.c