KVM: X86: Reset the three MSR list number variables to 0 in kvm_init_msr_list()
authorXiaoyao Li <xiaoyao.li@intel.com>
Wed, 13 Nov 2019 01:15:21 +0000 (09:15 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 14:50:39 +0000 (15:50 +0100)
commit6cbee2b9eccfc1c93a03aaa286ec93331f7c95e7
treec97f491e02cb4133c2ff76f09dd33df1fcf0278a
parente37f9f139f62deddff90c7298ae3a85026a71067
KVM: X86: Reset the three MSR list number variables to 0 in kvm_init_msr_list()

When applying commit 7a5ee6edb42e ("KVM: X86: Fix initialization of MSR
lists"), it forgot to reset the three MSR lists number varialbes to 0
while removing the useless conditionals.

Fixes: 7a5ee6edb42e (KVM: X86: Fix initialization of MSR lists)
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c