Re: 2.6.{26.2,27-rc} oops on virtualbox

From: H. Peter Anvin
Date: Fri Aug 22 2008 - 14:12:17 EST


Hi Luiz, two more tests:

1. a small program to run in userspace and tell us what you get;
2. a patch against -linus for testing.

-hpa

#include <stdio.h>

int main(void)
{
unsigned int eax, edx;

asm(".byte 0x0f,0x1f,0x84,0x00,0x98,0x98,0x98,0x98,0x92,0x90,0x90,0x90"
: "=a" (eax), "=d" (edx)
: "a" (0x88776655), "d" (0x44332211));

printf("%08x:%08x\n", edx, eax);
return 0;
}
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 2763cb3..33193fe 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -157,8 +157,6 @@ static const struct nop {
} noptypes[] = {
{ X86_FEATURE_K8, k8_nops },
{ X86_FEATURE_K7, k7_nops },
- { X86_FEATURE_P4, p6_nops },
- { X86_FEATURE_P3, p6_nops },
{ -1, NULL }
};