linux/arch/arm64/kvm/vgic
Marc Zyngier 9a0a75d3cc KVM: arm64: vgic: Make kvm_vgic_inject_irq() take a vcpu pointer
Passing a vcpu_id to kvm_vgic_inject_irq() is silly for two reasons:

- we often confuse vcpu_id and vcpu_idx
- we eventually have to convert it back to a vcpu
- we can't count

Instead, pass a vcpu pointer, which is unambiguous. A NULL vcpu
is also allowed for interrupts that are not private to a vcpu
(such as SPIs).

Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230927090911.3355209-2-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
2023-09-30 18:15:43 +00:00
..
trace.h
vgic-debug.c KVM: arm64: Use config_lock to protect vgic state 2023-03-29 14:08:31 +01:00
vgic-init.c KVM: arm64: Restore GICv2-on-GICv3 functionality 2023-06-07 16:38:25 +01:00
vgic-irqfd.c KVM: arm64: vgic: Make kvm_vgic_inject_irq() take a vcpu pointer 2023-09-30 18:15:43 +00:00
vgic-its.c KVM: arm64: vgic: Wrap vgic_its_create() with config_lock 2023-05-19 10:20:00 +01:00
vgic-kvm-device.c KVM: arm64: vgic: Fix a circular locking issue 2023-05-19 10:20:00 +01:00
vgic-mmio-v2.c KVM: arm64: Don't read a HW interrupt pending state in user context 2022-06-07 16:28:19 +01:00
vgic-mmio-v3.c KVM: arm64: vgic: Fix a circular locking issue 2023-05-19 10:20:00 +01:00
vgic-mmio.c KVM: arm64: vgic: Fix a circular locking issue 2023-05-19 10:20:00 +01:00
vgic-mmio.h KVM: arm64: vgic-v3: Use u32 to manage the line level from userspace 2022-07-17 11:55:33 +01:00
vgic-v2.c KVM: arm64: vgic: Fix a circular locking issue 2023-05-19 10:20:00 +01:00
vgic-v3.c KVM: arm64: vgic-v4: Make the doorbell request robust w.r.t preemption 2023-07-13 22:23:34 +00:00
vgic-v4.c KVM: arm64: vgic-v4: Make the doorbell request robust w.r.t preemption 2023-07-13 22:23:34 +00:00
vgic.c KVM: arm64: vgic: Make kvm_vgic_inject_irq() take a vcpu pointer 2023-09-30 18:15:43 +00:00
vgic.h KVM: arm64: Remove unused declarations 2023-08-15 20:27:32 +01:00