diff options
author | Wei Huang <wei.huang2@amd.com> | 2011-05-09 11:40:05 +0100 |
---|---|---|
committer | Wei Huang <wei.huang2@amd.com> | 2011-05-09 11:40:05 +0100 |
commit | 2dafae5693c4badaca9579ef4523888b2a29e3e6 (patch) | |
tree | af38c98cd7a45309ee8b4e2520283f3bcb037e26 /tools/libxc/xc_cpuid_x86.c | |
parent | 5968755d6dab2b3e193bdaf1d23658d3f1328a25 (diff) | |
download | xen-2dafae5693c4badaca9579ef4523888b2a29e3e6.tar.gz xen-2dafae5693c4badaca9579ef4523888b2a29e3e6.tar.bz2 xen-2dafae5693c4badaca9579ef4523888b2a29e3e6.zip |
x86/LWP: export LWP related CPUID to AMD SVM guest
This patch exposes LWP CPUID 0x8000001C to SVM guests.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Diffstat (limited to 'tools/libxc/xc_cpuid_x86.c')
-rw-r--r-- | tools/libxc/xc_cpuid_x86.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c index 08c3efd141..c91347867d 100644 --- a/tools/libxc/xc_cpuid_x86.c +++ b/tools/libxc/xc_cpuid_x86.c @@ -31,7 +31,7 @@ #define DEF_MAX_BASE 0x0000000du #define DEF_MAX_INTELEXT 0x80000008u -#define DEF_MAX_AMDEXT 0x8000000au +#define DEF_MAX_AMDEXT 0x8000001cu static int hypervisor_is_64bit(xc_interface *xch) { @@ -111,7 +111,8 @@ static void amd_xc_cpuid_policy( bitmaskof(X86_FEATURE_3DNOWPREFETCH) | bitmaskof(X86_FEATURE_XOP) | bitmaskof(X86_FEATURE_FMA4) | - bitmaskof(X86_FEATURE_TBM)); + bitmaskof(X86_FEATURE_TBM) | + bitmaskof(X86_FEATURE_LWP)); regs[3] &= (0x0183f3ff | /* features shared with 0x00000001:EDX */ (is_pae ? bitmaskof(X86_FEATURE_NX) : 0) | (is_64bit ? bitmaskof(X86_FEATURE_LM) : 0) | @@ -385,6 +386,7 @@ static void xc_cpuid_hvm_policy( case 0x80000005: /* AMD L1 cache/TLB info (dumped by Intel policy) */ case 0x80000006: /* AMD L2/3 cache/TLB info ; Intel L2 cache features */ case 0x8000000a: /* AMD SVM feature bits */ + case 0x8000001c: /* AMD lightweight profiling */ break; default: |