Theo de Raadt <deraadt <at> cvs.openbsd.org> writes: > If these VM's are real VM's the should start emulating the machines > they claim to be emulating correctly, or they should start advertising > that they are something "different", so that we can isolate the bullshit > factor.
Ok. I see. Could we trim that down to the following? --- sys/arch/amd64/amd64/identcpu.c.orig Mon May 20 19:58:06 2013 +++ sys/arch/amd64/amd64/identcpu.c Mon May 20 20:01:08 2013 @@ -127,6 +127,7 @@ { CPUIDECX_AVX, "AVX" }, { CPUIDECX_F16C, "F16C" }, { CPUIDECX_RDRAND, "RDRAND" }, + { CPUIDECX_HV, "HV" }, }, cpu_ecpuid_ecxfeatures[] = { { CPUIDECX_LAHF, "LAHF" }, { CPUIDECX_CMPLEG, "CMPLEG" }, --- sys/arch/amd64/include/specialreg.h.orig Mon May 20 20:01:56 2013 +++ sys/arch/amd64/include/specialreg.h Mon May 20 20:06:09 2013 @@ -158,6 +158,7 @@ #define CPUIDECX_AVX 0x10000000 /* Advanced Vector Extensions */ #define CPUIDECX_F16C 0x20000000 /* 16bit fp conversion */ #define CPUIDECX_RDRAND 0x40000000 /* RDRAND instruction */ +#define CPUIDECX_HV 0x80000000 /* Hypervisor presence */ /* * "Structured Extended Feature Flags Parameters" (CPUID function 0x7, leaf 0)