diff options
author | Zenghui Yu <[email protected]> | 2019-10-29 15:19:19 +0800 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2019-10-29 13:47:39 +0000 |
commit | ca185b260951d3b55108c0b95e188682d8a507b7 (patch) | |
tree | 478a1020713a0cf0bb46568973f6dea49c86f539 /lib/netdev-notifier-error-inject.c | |
parent | bad36e4e8cdc9048948490293efefdbd85c40ecc (diff) |
KVM: arm/arm64: vgic: Don't rely on the wrong pending table
It's possible that two LPIs locate in the same "byte_offset" but target
two different vcpus, where their pending status are indicated by two
different pending tables. In such a scenario, using last_byte_offset
optimization will lead KVM relying on the wrong pending table entry.
Let us use last_ptr instead, which can be treated as a byte index into
a pending table and also, can be vcpu specific.
Fixes: 280771252c1b ("KVM: arm64: vgic-v3: KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES")
Cc: [email protected]
Signed-off-by: Zenghui Yu <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Acked-by: Eric Auger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions