From: Vincent Hanquez Date: Tue, 25 Aug 2009 16:43:38 +0000 (+0100) Subject: update some cpuid comments and add a couple of values X-Git-Url: http://xenbits.xen.org/gitweb?a=commitdiff_plain;h=7689cd2484d96e95317077a6a534c35a6ead66a9;p=xenclient%2Ftoolstack.git update some cpuid comments and add a couple of values --- diff --git a/libs/xc/xc_cpuid.h b/libs/xc/xc_cpuid.h index df22a85..feba45a 100644 --- a/libs/xc/xc_cpuid.h +++ b/libs/xc/xc_cpuid.h @@ -114,12 +114,13 @@ static void do_hvm_cpuid_policy(int xc, int domid, uint32_t input, uint32_t regs regs[0] &= 0x0000ffffu; regs[1] = regs[2] = regs[3] = 0; break; - case 0x00000002: - case 0x00000004: - case 0x80000002: - case 0x80000003: - case 0x80000004: - case 0x80000006: + case 0x00000002: /* Intel cache info (dumped by AMD policy) */ + case 0x00000004: /* Intel cache info (dumped by AMD policy) */ + case 0x80000002: /* Processor name string */ + case 0x80000003: /* ... continued */ + case 0x80000004: /* ... continued */ + case 0x80000005: /* AMD L1 cache/TLB info (dumped by Intel policy) */ + case 0x80000006: /* AMD L2/3 cache/TLB info ; Intel L2 cache features */ break; default: regs[0] = regs[1] = regs[2] = regs[3] = 0; @@ -190,6 +191,11 @@ static void do_hvm_cpuid_policy(int xc, int domid, uint32_t input, uint32_t regs (is_64bit ? bitmaskof(X86_FEATURE_SYSCALL) : 0)); break; } + case 0x80000005: + { + regs[0] = regs[1] = regs[2] = 0; + break; + } } } }