diff options
| author | Marc Zyngier <[email protected]> | 2023-12-07 15:11:57 +0000 |
|---|---|---|
| committer | Oliver Upton <[email protected]> | 2023-12-12 07:11:38 +0000 |
| commit | 01ad29d224ff73bc4e16e0ef9ece17f28598c4a4 (patch) | |
| tree | 8126b87f312f8aaba9e1abe7a5bf75b8f9352a32 /drivers/platform/surface/surface_aggregator_cdev.c | |
| parent | 33cc938e65a98f1d29d0a18403dbbee050dcad9a (diff) | |
KVM: arm64: vgic: Simplify kvm_vgic_destroy()
When destroying a vgic, we have rather cumbersome rules about
when slots_lock and config_lock are held, resulting in fun
buglets.
The first port of call is to simplify kvm_vgic_map_resources()
so that there is only one call to kvm_vgic_destroy() instead of
two, with the second only holding half of the locks.
For that, we kill the non-locking primitive and move the call
outside of the locking altogether. This doesn't change anything
(we re-acquire the locks and teardown the whole vgic), and
simplifies the code significantly.
Cc: [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 'drivers/platform/surface/surface_aggregator_cdev.c')
0 files changed, 0 insertions, 0 deletions