linux/arch/mips/kvm
James Hogan a517c1ad65 KVM: MIPS: Init timer frequency from callback
Currently the software emulated timer is initialised to a frequency of
100MHz by kvm_mips_init_count(), but this isn't suitable for VZ where
the frequency of the guest timer matches that of the host.

Add a count_hz argument so the caller can specify the default frequency,
and move the call from kvm_arch_vcpu_create() to the implementation
specific vcpu_setup() callback, so that VZ can specify a different
frequency.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
2017-03-28 14:53:48 +01:00
..
00README.txt KVM/MIPS32: Release notes and KVM module Makefile 2013-05-08 03:55:35 +02:00
callback.c MIPS: KVM: Convert EXPORT_SYMBOL to _GPL 2016-01-24 03:13:24 +01:00
commpage.c MIPS: kvm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
commpage.h MIPS: KVM: Rename files to remove the prefix "kvm_" and "kvm_mips_" 2014-06-30 16:52:03 +02:00
dyntrans.c KVM: MIPS/T&E: Use lockless GVA helpers for dyntrans 2017-02-03 15:21:12 +00:00
emulate.c KVM: MIPS: Init timer frequency from callback 2017-03-28 14:53:48 +01:00
entry.c KVM: MIPS: Use CP0_BadInstr[P] for emulation 2017-02-03 15:21:07 +00:00
fpu.S MIPS: KVM: Fix fpu.S misassembly with r6 2016-07-05 16:09:11 +02:00
hypcall.c KVM: MIPS: Implement HYPCALL emulation 2017-03-28 14:53:33 +01:00
interrupt.c KVM: MIPS/T&E: Implement CP0_EBase register 2017-02-03 15:21:30 +00:00
interrupt.h MIPS; KVM: Convert exception entry to uasm 2016-07-05 16:08:46 +02:00
Kconfig KVM: MIPS/MMU: Implement KVM_CAP_SYNC_MMU 2017-02-03 15:21:28 +00:00
Makefile KVM: MIPS: Implement HYPCALL emulation 2017-03-28 14:53:33 +01:00
mips.c KVM: MIPS: Init timer frequency from callback 2017-03-28 14:53:48 +01:00
mmu.c KVM: MIPS/MMU: Implement KVM_CAP_SYNC_MMU 2017-02-03 15:21:28 +00:00
msa.S MIPS: KVM: Add base guest MSA support 2015-03-27 21:25:19 +00:00
stats.c MIPS: KVM: Clean up kvm_exit trace event 2016-06-14 11:16:23 +02:00
tlb.c KVM: MIPS/Emulate: Use lockless GVA helpers for cache emulation 2017-02-03 15:21:15 +00:00
trace.h KVM: MIPS: Extend counters & events for VZ GExcCodes 2017-03-28 14:53:46 +01:00
trap_emul.c KVM: MIPS: Init timer frequency from callback 2017-03-28 14:53:48 +01:00