ARM: virt: Don't generate RTC ACPI device when using UEFI
commit67736a25f86595c8ae174a21d965af5a027884c9
authorShannon Zhao <shannon.zhao@linaro.org>
Fri, 15 Jan 2016 14:11:31 +0000 (15 22:11 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Jan 2016 14:55:16 +0000 (15 14:55 +0000)
tree8401eae5b86ae112ee3504e0dbb35d3951217868
parentade0d0c0d3a0444c626ec5f46ef75af7395236f6
ARM: virt: Don't generate RTC ACPI device when using UEFI

When booting the VM with UEFI, UEFI takes ownership of the RTC hardware.
While UEFI can use libfdt to disable the RTC device node in the DTB that
it passes to the OS, it cannot modify AML. Therefore, we won't generate
the RTC ACPI device at all when using UEFI.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-id: 1452867091-4023-1-git-send-email-shannon.zhao@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt-acpi-build.c