]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
KVM: X86: Implement userspace interface to set virtual_tsc_khz
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 25 Mar 2011 08:44:51 +0000 (09:44 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:06 +0000 (07:57 -0400)
commit92a1f12d2598f429bd8639e21d89305e787115c5
tree48a6b7d6c50b5583b5163185dd097db100a471c6
parent857e40999e35906baa367a79137019912cfb5434
KVM: X86: Implement userspace interface to set virtual_tsc_khz

This patch implements two new vm-ioctls to get and set the
virtual_tsc_khz if the machine supports tsc-scaling. Setting
the tsc-frequency is only possible before userspace creates
any vcpu.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Documentation/kvm/api.txt
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/x86.c
include/linux/kvm.h