* [PATCH] kvmtool: ARM: timers: add "always-on" property to the device tree
@ 2014-06-20 16:38 Marc Zyngier
2014-06-20 17:57 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Marc Zyngier @ 2014-06-20 16:38 UTC (permalink / raw)
To: kvmarm, kvm; +Cc: Will Deacon, Pekka Enberg
The new optional property "always-on" indicates that the timers
are, well, always on when used with KVM.
This allows for substantial performance improvement in the guest
(it switches to NOHZ instead of using a periodic tick per vcpu)
and removes a lot of burden from the host (no need to inject tons
of interrupts with the associated rescheduling overhead).
Old kernels that don't understand this property will simply ignore it.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
---
tools/kvm/arm/timer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/kvm/arm/timer.c b/tools/kvm/arm/timer.c
index d757c1d..209251e 100644
--- a/tools/kvm/arm/timer.c
+++ b/tools/kvm/arm/timer.c
@@ -33,6 +33,7 @@ void timer__generate_fdt_nodes(void *fdt, struct kvm *kvm, int *irqs)
_FDT(fdt_begin_node(fdt, "timer"));
_FDT(fdt_property(fdt, "compatible", compatible, sizeof(compatible)));
_FDT(fdt_property(fdt, "interrupts", irq_prop, sizeof(irq_prop)));
+ _FDT(fdt_property(fdt, "always-on", NULL, 0));
if (kvm->cfg.arch.force_cntfrq > 0)
_FDT(fdt_property_cell(fdt, "clock-frequency", kvm->cfg.arch.force_cntfrq));
_FDT(fdt_end_node(fdt));
--
1.8.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kvmtool: ARM: timers: add "always-on" property to the device tree
2014-06-20 16:38 [PATCH] kvmtool: ARM: timers: add "always-on" property to the device tree Marc Zyngier
@ 2014-06-20 17:57 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2014-06-20 17:57 UTC (permalink / raw)
To: Marc Zyngier
Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Pekka Enberg
On Fri, Jun 20, 2014 at 05:38:14PM +0100, Marc Zyngier wrote:
> The new optional property "always-on" indicates that the timers
> are, well, always on when used with KVM.
>
> This allows for substantial performance improvement in the guest
> (it switches to NOHZ instead of using a periodic tick per vcpu)
> and removes a lot of burden from the host (no need to inject tons
> of interrupts with the associated rescheduling overhead).
>
> Old kernels that don't understand this property will simply ignore it.
Acked-by: Will Deacon <will.deacon@arm.com>
Will
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-20 17:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20 16:38 [PATCH] kvmtool: ARM: timers: add "always-on" property to the device tree Marc Zyngier
2014-06-20 17:57 ` Will Deacon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.