x86: allow pv guests to disable TSC for applications
authorKeir Fraser <keir@xensource.com>
Mon, 29 Oct 2007 16:49:02 +0000 (16:49 +0000)
committerKeir Fraser <keir@xensource.com>
Mon, 29 Oct 2007 16:49:02 +0000 (16:49 +0000)
commite33d4a73162dac1fe6861f3a5e96de89e30b6a91
tree6426b7d4c5d273bc21191ebf17e616d07bb4f8cb
parent8fbfe1c9c1c7a954bcb1d6c2142c75196ca2d9cd
x86: allow pv guests to disable TSC for applications

Linux, under CONFIG_SECCOMP, has been capable of hiding the TSC from
processes for quite a while. This patch enables this to actually work
for pv kernels, by allowing them to control CR4.TSD (and, as a simple
thing to do at the same time, CR4.DE).

Applies cleanly only on top of the previously submitted debug register
handling patch.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Also clean up CR4 and EFER handling, and hack-n-slash header file
inclusion madness to get the tree building again.

Signed-off-by: Keir Fraser <keir@xensource.com>
26 files changed:
xen/arch/x86/acpi/boot.c
xen/arch/x86/acpi/power.c
xen/arch/x86/domain.c
xen/arch/x86/flushtlb.c
xen/arch/x86/hvm/svm/amd_iommu/amd-iommu-detect.c
xen/arch/x86/hvm/svm/amd_iommu/amd-iommu-init.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/setup.c
xen/arch/x86/smp.c
xen/arch/x86/smpboot.c
xen/arch/x86/traps.c
xen/include/asm-x86/amd-iommu.h
xen/include/asm-x86/apic.h
xen/include/asm-x86/domain.h
xen/include/asm-x86/hvm/io.h
xen/include/asm-x86/hvm/irq.h
xen/include/asm-x86/io_apic.h
xen/include/asm-x86/iommu.h
xen/include/asm-x86/msr.h
xen/include/asm-x86/page.h
xen/include/asm-x86/processor.h
xen/include/asm-x86/smp.h
xen/include/asm-x86/x86_32/elf.h
xen/include/asm-x86/x86_64/elf.h