[PATCH v6 1/7] arm/arm64: vgic-new: Implement support for userspace access

2016-09-19 Thread vijay . kilari
From: Vijaya Kumar K Read and write of some registers like ISPENDR and ICPENDR from userspace requires special handling when compared to guest access for these registers. Refer to Documentation/virtual/kvm/devices/arm-vgic-v3.txt for handling of ISPENDR, ICPENDR registers handling. Add infrastr

Re: [PATCH v6 1/7] arm/arm64: vgic-new: Implement support for userspace access

2016-09-22 Thread Marc Zyngier
On 20/09/16 07:12, vijay.kil...@gmail.com wrote: > From: Vijaya Kumar K > > Read and write of some registers like ISPENDR and ICPENDR > from userspace requires special handling when compared to > guest access for these registers. > > Refer to Documentation/virtual/kvm/devices/arm-vgic-v3.txt > f

Re: [PATCH v6 1/7] arm/arm64: vgic-new: Implement support for userspace access

2016-09-22 Thread Vijay Kilari
On Thu, Sep 22, 2016 at 5:38 PM, Marc Zyngier wrote: > On 20/09/16 07:12, vijay.kil...@gmail.com wrote: >> From: Vijaya Kumar K >> >> Read and write of some registers like ISPENDR and ICPENDR >> from userspace requires special handling when compared to >> guest access for these registers. >> >> R

Re: [PATCH v6 1/7] arm/arm64: vgic-new: Implement support for userspace access

2016-09-23 Thread Marc Zyngier
On 22/09/16 15:01, Vijay Kilari wrote: > On Thu, Sep 22, 2016 at 5:38 PM, Marc Zyngier wrote: >> On 20/09/16 07:12, vijay.kil...@gmail.com wrote: >>> From: Vijaya Kumar K >>> +static int vgic_uaccess_read(struct kvm_vcpu *vcpu, struct kvm_io_device >>> *dev, >>> + gpa_t

Re: [PATCH v6 1/7] arm/arm64: vgic-new: Implement support for userspace access

2016-09-23 Thread Christoffer Dall
On Fri, Sep 23, 2016 at 10:50:38AM +0100, Marc Zyngier wrote: > On 22/09/16 15:01, Vijay Kilari wrote: > > On Thu, Sep 22, 2016 at 5:38 PM, Marc Zyngier wrote: > >> On 20/09/16 07:12, vijay.kil...@gmail.com wrote: > >>> From: Vijaya Kumar K > >>> +static int vgic_uaccess_read(struct kvm_vcpu *vcp