Hi, Avi, On Wed, 2010-07-07 at 19:09 +0800, Avi Kivity wrote: > Userspace needs to reset and save/restore these MSRs. > > The MCE banks are not exposed since their number varies from vcpu to vcpu. > > Signed-off-by: Avi Kivity <avi@xxxxxxxxxx> > --- > arch/x86/kvm/x86.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 7070b41..1e12cc5 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -744,6 +744,8 @@ static unsigned num_msrs_to_save; > > static u32 emulated_msrs[] = { > MSR_IA32_MISC_ENABLE, > + MSR_IA32_MCG_STATUS, > + MSR_IA32_MCG_CTL, We need only clear MSR_IA32_MCG_STATUS during reset, but should not clear MSR_IA32_MCG_CTL. > }; > > static int set_efer(struct kvm_vcpu *vcpu, u64 efer) Best Regards, Huang Ying -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html