qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/2] Remove CP15 timer from the device tree if KVM i


From: Pavel Fedin
Subject: [Qemu-devel] [PATCH 0/2] Remove CP15 timer from the device tree if KVM is used without in-kernel irqchip
Date: Wed, 24 Jun 2015 14:58:07 +0300

Certain machines do not have working vGIC hardware. Linux kernel (at least
up to v4) has configuration options which would still allow to use KVM,
but GIC and timer have to be emulated in userspace. Unfortunately, ARM CPUs
do not have an option to trap access to CP15 virtual timer registers.
Consequently, timer operations cannot be trapped and emulated.

The only possibility to work around is to use another timer hardware which
is memory-mapped and can be emulated by qemu. In order to make guest kernel
ignoring CP15 timer, we remove it from machine's device tree.

Of course this works only with machine models which actually have these
timers (like vexpress).

Pavel Fedin (2):
  Introduce qemu_fdt_remove_compatible()
  Remove CP15 timer from the device tree if KVM is used without
    in-kernel irqchip

 device_tree.c                | 10 ++++++++++
 hw/arm/boot.c                |  5 +++++
 include/sysemu/device_tree.h | 10 ++++++++++
 3 files changed, 25 insertions(+)

-- 
1.9.5.msysgit.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]