diff options
author | Marc Zyngier <[email protected]> | 2023-09-27 10:09:02 +0100 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-09-30 18:15:43 +0000 |
commit | d455d366c451e68781122c693e2e357c673ee807 (patch) | |
tree | c820844fc06c5c8cfd455b191f4122c09c99c68e /lib/test_fortify/write_overflow-memcpy.c | |
parent | 9a0a75d3ccee20149587ab740a2dee31ba401ada (diff) |
KVM: arm64: vgic-its: Treat the collection target address as a vcpu_id
Since our emulated ITS advertises GITS_TYPER.PTA=0, the target
address associated to a collection is a PE number and not
an address. So far, so good. However, the PE number is what userspace
has provided given us (aka the vcpu_id), and not the internal vcpu
index.
Make sure we consistently retrieve the vcpu by ID rather than
by index, adding a helper that deals with most of the cases.
We also get rid of the pointless (and bogus) comparisons to
online_vcpus, which don't really make sense.
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 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions