WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 0/5] tsc-deadline timer virtualization

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 0/5] tsc-deadline timer virtualization
From: "Wei, Gang" <gang.wei@xxxxxxxxx>
Date: Tue, 14 Dec 2010 11:25:38 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "Wei, Gang" <gang.wei@xxxxxxxxx>
Delivery-date: Mon, 13 Dec 2010 19:28:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcubPpP7xCxRlXnEQ5+cie2YuyfvvA==
Thread-topic: [PATCH 0/5] tsc-deadline timer virtualization
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 0/5] tsc-deadline timer virtualization, Wei, Gang <=