This patch set provides virual tsc-deadline timer feature support for HVM guest. Tested with: 1. guest linux kernel 2.6.36.1 patched with Len Brown''s first version of kernel tsc-deadline timer enabling patch: http://www.spinics.net/lists/linux-acpi/msg29584.html http://www.spinics.net/lists/linux-acpi/msg29583.html 2. guest xen build at c/s 22447. This patch set can benefit guests which want to take advantage of TDT feature. It may also benefit nested hypervisor. Host TDT has already been enabled by c/s 22333 - X86: Prefer TSC-deadline timer in Xen. [Details] PATCH 1/5: Define a new function gtsc_to_gtime() to do the transform from guest tsc to guest time. Fix the typo in gtime_to_gtsc() definition. PATCH 2/5: Define APIC_TIMER_MODE_xxx in apicdef.h, remove redundant in apic.c. PATCH 3/5: Modify vlapic code to add vtdt support. Accesses to MSR_IA32_TSC_DEADLINE are trapped, with value stored in a new field vlapic->hw.tdt_msr. vlapic->pt is reused in one shot mode for vtdt to trigger expire events. For details, please refer to the Intel Architectures Software Developer''s Manual 3A, 10.5.4.1 TSC-Deadline Mode. PATCH 4/5: Add a new hvm param HVM_PARAM_TDT_ENABLED, and set it as TRUE by default. PATCH 5/5 Export tdt feature to guest via CPUID.01H:ECX.TSC_Deadline[bit 24] according to the value of hvm param HVM_PARAM_TDT_ENABLED. Jimmy _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel