lguest: restrict CPUID to avoid perf counter wrmsr
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 18 Jul 2009 03:47:44 +0000 (21:47 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 17 Jul 2009 12:17:45 +0000 (21:47 +0930)
commit7a5049205f7265620c48781814155f2763e70abb
tree7b3cf5ec83687e74028bbfa100dac4e6d449155a
parent27de22d03d6808a82bbe9bd7e3cc75d60132ba9e
lguest: restrict CPUID to avoid perf counter wrmsr

Avoid the following:
[    0.012093] WARNING: at arch/x86/kernel/apic/apic.c:249 native_apic_write_dummy+0x2f/0x40()

Rather than chase each new cpuid-detected feature, just lie about the highest
valid CPUID so this code is never run.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/x86/lguest/boot.c