From 7689cd2484d96e95317077a6a534c35a6ead66a9 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Tue, 25 Aug 2009 17:43:38 +0100 Subject: [PATCH] update some cpuid comments and add a couple of values --- libs/xc/xc_cpuid.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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; + } } } } -- 2.39.5