KVM: x86: introduce num_emulated_msrs
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 May 2015 10:08:55 +0000 (12:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2015 14:00:46 +0000 (16:00 +0200)
commit62ef68bb4d00f1a662e487f3fc44ce8521c416aa
tree178fbc896e807a5c0a252a0f8e5b35f4439ca199
parente69fab5df45f993cb3b8cc0625a7791e86450a99
KVM: x86: introduce num_emulated_msrs

We will want to filter away MSR_IA32_SMBASE from the emulated_msrs if
the host CPU does not support SMM virtualization.  Introduce the
logic to do that, and also move paravirt MSRs to emulated_msrs for
simplicity and to get rid of KVM_SAVE_MSRS_BEGIN.

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c