* [PATCH] Don't fault when guest tries to read IA32_EBL_CR_POWERON MSR
@ 2007-05-03 23:46 Matthew Gregan
[not found] ` <20070503234647.GG10676-QufbIeIr5AY@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Gregan @ 2007-05-03 23:46 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 661 bytes --]
Hi,
Attempting to boot the default 'bsd' kernel of OpenBSD 4.1 i386 in a guest
fails early in the kernel init inside p3_get_bus_clock while trying to read
the IA32_EBL_CR_POWERON MSR. KVM logs an 'unhandled MSR' message and the
guest kernel faults.
This patch is sufficient to allow OpenBSD to boot, after which it seems to
run fine. I'm not sure if this is the correct solution for dealing with
this particular MSR, but it works for me.
Signed-off-by: Matthew Gregan <kinetik-QufbIeIr5AY@public.gmane.org>
Cheers,
-mjg
--
Matthew Gregan |/
/| kinetik-QufbIeIr5AY@public.gmane.org
[-- Attachment #2: kvm_openbsd_msr.patch --]
[-- Type: text/x-diff, Size: 416 bytes --]
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 93a8eb0..6aa4b40 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1469,6 +1469,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
case MSR_IA32_MC0_MISC+16:
case MSR_IA32_UCODE_REV:
case MSR_IA32_PERF_STATUS:
+ case MSR_IA32_EBL_CR_POWERON:
/* MTRR registers */
case 0xfe:
case 0x200 ... 0x2ff:
[-- Attachment #3: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #4: 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 related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-06 8:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03 23:46 [PATCH] Don't fault when guest tries to read IA32_EBL_CR_POWERON MSR Matthew Gregan
[not found] ` <20070503234647.GG10676-QufbIeIr5AY@public.gmane.org>
2007-05-06 8:00 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox