[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86 hvm: Expose TSC_DEADLINE CPU feature to guests via CPUID.
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1292411342 0 # Node ID 4c180ed8d04440864eea5ffd1707b6bfb2d6cb22 # Parent 255c074eca57e2b0964b666aecd744c06cfcdb87 x86 hvm: Expose TSC_DEADLINE CPU feature to guests via CPUID. Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx> --- tools/libxc/xc_cpufeature.h | 1 + tools/libxc/xc_cpuid_x86.c | 1 + 2 files changed, 2 insertions(+) diff -r 255c074eca57 -r 4c180ed8d044 tools/libxc/xc_cpufeature.h --- a/tools/libxc/xc_cpufeature.h Wed Dec 15 11:01:59 2010 +0000 +++ b/tools/libxc/xc_cpufeature.h Wed Dec 15 11:09:02 2010 +0000 @@ -100,6 +100,7 @@ #define X86_FEATURE_SSE4_2 (4*32+20) /* Streaming SIMD Extensions 4.2 */ #define X86_FEATURE_X2APIC (4*32+21) /* x2APIC */ #define X86_FEATURE_POPCNT (4*32+23) /* POPCNT instruction */ +#define X86_FEATURE_TSC_DEADLINE (4*32+24) /* "tdt" TSC Deadline Timer */ #define X86_FEATURE_AES (4*32+25) /* AES acceleration instructions */ #define X86_FEATURE_XSAVE (4*32+26) /* XSAVE/XRSTOR/XSETBV/XGETBV */ #define X86_FEATURE_AVX (4*32+28) /* Advanced Vector Extensions */ diff -r 255c074eca57 -r 4c180ed8d044 tools/libxc/xc_cpuid_x86.c --- a/tools/libxc/xc_cpuid_x86.c Wed Dec 15 11:01:59 2010 +0000 +++ b/tools/libxc/xc_cpuid_x86.c Wed Dec 15 11:09:02 2010 +0000 @@ -209,6 +209,7 @@ static void xc_cpuid_hvm_policy( bitmaskof(X86_FEATURE_XSAVE)) : 0)); regs[2] |= (bitmaskof(X86_FEATURE_HYPERVISOR) | + bitmaskof(X86_FEATURE_TSC_DEADLINE) | bitmaskof(X86_FEATURE_X2APIC)); regs[3] &= (bitmaskof(X86_FEATURE_FPU) | _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |