public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Writing to MCG_STATUS register
@ 2007-03-22 11:41 Kiselev, Sergey
       [not found] ` <C07C4589BE74A34981C3C3525EE1F80101A7A177-t8eeqVGEwHVP9JyJpTNKArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Kiselev, Sergey @ 2007-03-22 11:41 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


[-- Attachment #1.1: Type: text/plain, Size: 901 bytes --]

Hi,
 
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:
 
--- kvm-17/kernel/kvm_main.c.orig       2007-03-20 15:12:42.000000000
+0200
+++ kvm-17/kernel/kvm_main.c    2007-03-22 13:37:34.000000000 +0200
@@ -1498,6 +1498,10 @@
                printk(KERN_WARNING "%s: MSR_IA32_MC0_STATUS 0x%llx,
nop\n",
                       __FUNCTION__, data);
                break;
+       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 */

Thanks,
Sergey Kiselev


[-- Attachment #1.2: Type: text/html, Size: 2543 bytes --]

[-- Attachment #2: Type: text/plain, Size: 345 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #3: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-22 12:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 11:41 Writing to MCG_STATUS register Kiselev, Sergey
     [not found] ` <C07C4589BE74A34981C3C3525EE1F80101A7A177-t8eeqVGEwHVP9JyJpTNKArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-03-22 11:47   ` Avi Kivity
     [not found]     ` <46026CB4.4090607-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-03-22 11:59       ` [PATCH] " Kiselev, Sergey
     [not found]         ` <C07C4589BE74A34981C3C3525EE1F80101A7A1AA-t8eeqVGEwHVP9JyJpTNKArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-03-22 12:06           ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox