diff options
| author | Marc Zyngier <[email protected]> | 2023-09-27 09:09:01 +0000 |
|---|---|---|
| committer | Oliver Upton <[email protected]> | 2023-09-30 18:15:43 +0000 |
| commit | 9a0a75d3ccee20149587ab740a2dee31ba401ada (patch) | |
| tree | de4b3fc09dc3db846ccd333b95c323a2e448d328 /scripts/rustdoc_test_gen.rs | |
| parent | Linux 6.6-rc2 (diff) | |
| download | kernel-9a0a75d3ccee20149587ab740a2dee31ba401ada.tar.gz kernel-9a0a75d3ccee20149587ab740a2dee31ba401ada.zip | |
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 <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_gen.rs')
0 files changed, 0 insertions, 0 deletions
