Commit:     0e5bf0d0e449f6597870570e8dd17e78ba4d75ff
Parent:     fcd3410870049cb74bb1a3a2458cb3ec21185cd1
Author:     Sergey Kiselev <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 22 14:06:18 2007 +0200
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Thu May 3 10:52:26 2007 +0300

    KVM: Handle writes to MCG_STATUS msr
    Some older (~2.6.7) kernels write MCG_STATUS register during kernel
    boot (mce_clear_all() function, called from mce_init()). It's not
    currently handled by kvm and will cause it to inject a GPF.
    Following patch adds a "nop" handler for this.
    Signed-off-by: Sergey Kiselev <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
 drivers/kvm/kvm_main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 05235e1..33eade7 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1467,6 +1467,10 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, 
u64 data)
                printk(KERN_WARNING "%s: MSR_IA32_MC0_STATUS 0x%llx, nop\n",
                       __FUNCTION__, data);
+       case MSR_IA32_MCG_STATUS:
+               printk(KERN_WARNING "%s: MSR_IA32_MCG_STATUS 0x%llx, nop\n",
+                       __FUNCTION__, data);
+               break;
        case MSR_IA32_UCODE_REV:
        case MSR_IA32_UCODE_WRITE:
        case 0x200 ... 0x2ff: /* MTRRs */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to