diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-05-29 05:16:36 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-30 07:02:23 -0400 |
commit | eda3d33c685ff62524500681249e4c8e2e8dbb8c (patch) | |
tree | 179621cdccda7d859e99c37e469cb939dc22e453 /arch/mips/Kconfig | |
parent | e30492bbe95a2495930aa7db7eacde5141e45332 (diff) |
MIPS: KVM: Override guest kernel timer frequency directly
The KVM_HOST_FREQ Kconfig symbol was used by KVM guest kernels to
override the timer frequency calculation to a value based on the host
frequency. Now that the KVM timer emulation is implemented independent
of the host timer frequency and defaults to 100MHz, adjust the working
of CONFIG_KVM_HOST_FREQ to match.
The Kconfig symbol now specifies the guest timer frequency directly, and
has been renamed accordingly to KVM_GUEST_TIMER_FREQ. It now defaults to
100MHz too and the help text is updated to make it clear that a zero
value will allow the normal timer frequency calculation to take place
(based on the emulated RTC).
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: kvm@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Sanjay Lal <sanjayl@kymasys.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 5cd695f905a1..5e0014e864f3 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -1756,14 +1756,14 @@ config KVM_GUEST | |||
1756 | help | 1756 | help |
1757 | Select this option if building a guest kernel for KVM (Trap & Emulate) mode | 1757 | Select this option if building a guest kernel for KVM (Trap & Emulate) mode |
1758 | 1758 | ||
1759 | config KVM_HOST_FREQ | 1759 | config KVM_GUEST_TIMER_FREQ |
1760 | int "KVM Host Processor Frequency (MHz)" | 1760 | int "Count/Compare Timer Frequency (MHz)" |
1761 | depends on KVM_GUEST | 1761 | depends on KVM_GUEST |
1762 | default 500 | 1762 | default 100 |
1763 | help | 1763 | help |
1764 | Select this option if building a guest kernel for KVM to skip | 1764 | Set this to non-zero if building a guest kernel for KVM to skip RTC |
1765 | RTC emulation when determining guest CPU Frequency. Instead, the guest | 1765 | emulation when determining guest CPU Frequency. Instead, the guest's |
1766 | processor frequency is automatically derived from the host frequency. | 1766 | timer frequency is specified directly. |
1767 | 1767 | ||
1768 | choice | 1768 | choice |
1769 | prompt "Kernel page size" | 1769 | prompt "Kernel page size" |