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

2014-09-05 Thread Andre Przywara
Hi wanghaibin, On 05/09/14 04:28, wanghaibin wrote: 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;

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; + int sgi,

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

2014-08-21 Thread Andre Przywara
With everything separated and prepared, we implement a model of a GICv3 distributor and redistributors by using the existing framework to provide handler functions for each register group. Currently we limit the emulation to a model enforcing a single security state, with SRE==1 (forcing system