Re: [RFT] Fix for unhandled msr c0000081 problems under Intel cpus

Michael Riepe
2006-12-13T19:26:56Z

Oh well...

I was wondering which stupid piece of sh^H^Hcode generated so many wrong
rdmsr instructions without looking at the CPU feature flags. So I
grepped through the linux kernel and glibc sources as well as some other
likely suspects and found - nothing.

Guess what? It's qemu!

In qemu-kvm.c (around line 329 in save_regs()) it starts to call
kvm_get_msrs(), and one of the MSRs it wants to read is MSR_STAR. When I
removed MSR_STAR from the list (which fortunately has no consequences on
my Core Duo), the messages were gone.

--
Michael "Tired" Riepe <michael-0QoEqw4nQxo@public.gmane.org>
X-Tired: Each morning I get up I die a little