mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
arm/arm64: KVM: add opaque private pointer to MMIO data
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 later, extend struct kvm_exit_mmio to add an opaque private pointer parameter. The current GICv2 emulation just does not use it. Signed-off-by: Andre Przywara <[email protected]> Acked-by: Christoffer Dall <[email protected]> Signed-off-by: Christoffer Dall <[email protected]>
This commit is contained in:
parent
1d916229e3
commit
9fedf14677
3 changed files with 3 additions and 0 deletions
|
|
@ -709,6 +709,7 @@ static bool call_range_handler(struct kvm_vcpu *vcpu,
|
|||
|
||||
mmio32.len = 4;
|
||||
mmio32.is_write = mmio->is_write;
|
||||
mmio32.private = mmio->private;
|
||||
|
||||
mmio32.phys_addr = mmio->phys_addr + 4;
|
||||
if (mmio->is_write)
|
||||
|
|
|
|||
Loading…
Reference in a new issue