Re: [PATCH v2 00/15] KVM GICv3 emulation

2014-10-07 Thread wanghaibin
; [3] https://lists.cs.columbia.edu/pipermail/kvmarm/2014-June/010086.html > > Changes v1 ... v2: > * rebase to v3.17-rc1, caused quite some changes to the init code > * new 9/15 patch to make 10/15 smaller > * fix wrongly ordered cp15 register trap entry (MarcZ) > * fix SGI broadc

Re: [PATCH v2 15/15] arm/arm64: KVM: allow userland to request a virtual GICv3

2014-09-19 Thread wanghaibin
On 2014/8/21 21:06, Andre Przywara wrote: > With everything in place we allow userland to request the kernel > using a virtual GICv3 in the guest, which finally lifts the 8 vCPU > limit for a guest. > Also we provide the necessary support for guests setting the memory > addresses for the virtual d

Re: [PATCH v2 12/15] arm/arm64: KVM: add virtual GICv3 distributor emulation

2014-09-04 Thread wanghaibin
On 2014/8/21 21:06, Andre Przywara wrote: > +void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg) > +{ > + struct kvm *kvm = vcpu->kvm; > + struct kvm_vcpu *c_vcpu; > + struct vgic_dist *dist = &kvm->arch.vgic; > + u16 target_cpus; > + u64 mpidr, mpidr_h, mpidr_l; > +

Re: [PATCH v2 03/15] arm/arm64: KVM: refactor vgic_handle_mmio() function

2014-09-04 Thread wanghaibin
On 2014/8/21 21:06, Andre Przywara wrote: > Currently we only need to deal with one MMIO region for the GIC > emulation, but we soon need to extend this. Refactor the existing > code to allow easier addition of different ranges without code > duplication. > > Signed-off-by: Andre Przywara > ---