Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 908e75f3 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Expose MCE control MSRs to userspace



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: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent aea924f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,
};

static int set_efer(struct kvm_vcpu *vcpu, u64 efer)