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>
Showing
- Documentation/kvm/api.txt 23 additions, 0 deletionsDocumentation/kvm/api.txt
- arch/x86/include/asm/kvm_host.h 7 additions, 0 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/svm.c 20 additions, 0 deletionsarch/x86/kvm/svm.c
- arch/x86/kvm/x86.c 35 additions, 0 deletionsarch/x86/kvm/x86.c
- include/linux/kvm.h 5 additions, 0 deletionsinclude/linux/kvm.h
Loading
Please register or sign in to comment