[PATCH] KVM: arm: Enable emulation of the physical timer

2018-02-13 Thread Jérémy Fanguède
Set the handlers to emulate read and write operations for CNTP_CTL, CNTP_CVAL and CNTP_TVAL registers in such a way that VMs can use the physical timer. Signed-off-by: Jérémy Fanguède <j.fangu...@virtualopensystems.com> --- This patch is the equivalent of this one: [1], but for arm

Re: [PATCH] KVM: arm64: Enable the EL1 physical timer for AArch32 guests

2018-02-08 Thread Jérémy Fanguède
Hi Marc, On Thu, Feb 8, 2018 at 1:08 PM, Marc Zyngier <marc.zyng...@arm.com> wrote: > On 08/02/18 11:57, Jérémy Fanguède wrote: > > Some 32bits guest OS can use the CNTP timer, however KVM does not > > handle the accesses, injecting a fault instead. > > > > U

[PATCH] KVM: arm64: Enable the EL1 physical timer for AArch32 guests

2018-02-08 Thread Jérémy Fanguède
Some 32bits guest OS can use the CNTP timer, however KVM does not handle the accesses, injecting a fault instead. Use the proper handlers to emulate the EL1 Physical Timer (CNTP) register accesses of AArch32 guests. Signed-off-by: Jérémy Fanguède <j.fangu...@virtualopensystems.com> Sign

Re: [RFC] ARM/ARM64: KVM: Implement KVM_FLUSH_DCACHE_GPA ioctl

2015-05-07 Thread Jérémy Fanguède
On Wed, May 6, 2015 at 4:12 PM, Christoffer Dall christoffer.d...@linaro.org wrote: Hi Jérémy, On Tue, May 05, 2015 at 11:13:11AM +0200, Jérémy Fanguède wrote: To maintain cache coherency on ARM, we may need a mechanism to flush the data cache. In addition to generally just making

Re: [RFC] ARM/ARM64: KVM: Implement KVM_FLUSH_DCACHE_GPA ioctl

2015-05-07 Thread Jérémy Fanguède
On Thu, May 7, 2015 at 1:20 PM, Christoffer Dall christoffer.d...@linaro.org wrote: On Thu, May 07, 2015 at 12:50:50PM +0200, Jérémy Fanguède wrote: On Wed, May 6, 2015 at 4:12 PM, Christoffer Dall christoffer.d...@linaro.org wrote: Hi Jérémy, On Tue, May 05, 2015 at 11:13:11AM +0200

Re: [RFC] ARM/ARM64: KVM: Implement KVM_FLUSH_DCACHE_GPA ioctl

2015-05-07 Thread Jérémy Fanguède
On Thu, May 7, 2015 at 5:34 PM, Christoffer Dall christoffer.d...@linaro.org wrote: On Thu, May 7, 2015 at 4:50 PM, Jérémy Fanguède j.fangu...@virtualopensystems.com wrote: On Thu, May 7, 2015 at 1:20 PM, Christoffer Dall christoffer.d...@linaro.org wrote: On Thu, May 07, 2015 at 12:50:50PM

[RFC] ARM/ARM64: KVM: Implement KVM_FLUSH_DCACHE_GPA ioctl

2015-05-05 Thread Jérémy Fanguède
. Signed-off-by: Jérémy Fanguède j.fangu...@virtualopensystems.com --- arch/arm/kvm/arm.c | 13 + include/uapi/linux/kvm.h | 6 ++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index d9631ec..8638fd2 100644 --- a/arch/arm/kvm/arm.c +++ b

[RFC 0/4] arm/arm64: KVM: Get around cache incoherency

2015-05-05 Thread Jérémy Fanguède
with KVM and now work fine with this patch. The kernel needs this patch: [RFC] ARM/ARM64: KVM: Implement KVM_FLUSH_DCACHE_GPA ioctl [1] https://lists.cs.columbia.edu/pipermail/kvmarm/2015-February/013593.html [2] https://lists.nongnu.org/archive/html/qemu-devel/2015-03/msg01254.html Jérémy

[RFC 1/4] linux-headers update

2015-05-05 Thread Jérémy Fanguède
Add KVM_FLUSH_DCACHE_GPA ioctl. Signed-off-by: Jérémy Fanguède j.fangu...@virtualopensystems.com --- linux-headers/linux/kvm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index b96d978..81d2f64 100644 --- a/linux-headers/linux

[RFC 2/4] target-arm/kvm: Flush data cache support

2015-05-05 Thread Jérémy Fanguède
usage. Signed-off-by: Jérémy Fanguède j.fangu...@virtualopensystems.com --- include/sysemu/kvm.h | 3 +++ stubs/kvm.c | 9 + target-arm/kvm.c | 51 +++ 3 files changed, 63 insertions(+) diff --git a/include/sysemu/kvm.h b