Re: [PATCH v3 15/19] arm/arm64: KVM: add opaque private pointer to MMIO accessors

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

 



On Fri, Oct 31, 2014 at 05:26:50PM +0000, Andre Przywara wrote:
> For a GICv2 there is always only one (v)CPU involved: the one that
> does the access. On a GICv3 the access to a CPU redistributor is
> memory-mapped, but not banked, so the (v)CPU affected is determined by
> looking at the MMIO address region being accessed.
> To allow passing the affected CPU into the accessors, extend them to
> take an opaque private pointer parameter.
> For the current GICv2 emulation we ignore it and simply pass NULL
> on the call.
> 
> Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>

Why does it have to be an opaque private pointer?  Would it not always
be a struct vcpu * or a vcpu_id then?

Thanks,
-Christoffer
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm




[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux