virt-acpi-build: add always-on property for timer
commita43e68a08bd0d723cc7e480e422a1008a5bb78a9
authorAndrew Jones <drjones@redhat.com>
Wed, 3 Feb 2016 13:46:32 +0000 (3 13:46 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 3 Feb 2016 13:46:32 +0000 (3 13:46 +0000)
tree9562a0d8f2f5c4d598432b8cc6cb0873ad959738
parent87574621b18f86eab295a2c207e0b42c77b5dfa0
virt-acpi-build: add always-on property for timer

This patch is the ACPI equivalent of "hw/arm/virt: Add always-on
property to the virt board timer". The timer is always on, and
thus setting this informs Linux that it may switch off the periodic
timer. Switching off the periodic timer substantially reduces the
number of interrupts the host needs to inject.

Testing note: AArch64 guests (the only ones currently booting with
ACPI) do not actually need this patch to determine it can turn the
periodic timer off. I therefore used a hacked guest kernel to ensure
this patch works as the equivalent DT patch does.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
Message-id: 1453380893-26174-1-git-send-email-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt-acpi-build.c