diff options
author | Marc Zyngier | 2023-12-07 15:11:59 +0000 |
---|---|---|
committer | Greg Kroah-Hartman | 2024-01-01 12:39:08 +0000 |
commit | 425379154b7fd1e8f6005235ce35d8d268b52d46 (patch) | |
tree | e3f0acb06f2beb53a43a7e40e0254994a38ff289 /arch/x86 | |
parent | 5dfacfd0fcd6fbd41c01ed981d289f036305231a (diff) |
KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroy
commit 02e3858f08faabab9503ae2911cf7c7e27702257 upstream.
When failing to create a vcpu because (for example) it has a
duplicate vcpu_id, we destroy the vcpu. Amusingly, this leaves
the redistributor registered with the KVM_MMIO bus.
This is no good, and we should properly clean the mess. Force
a teardown of the vgic vcpu interface, including the RD device
before returning to the caller.
Cc: stable@vger.kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231207151201.3028710-4-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions