Skip to content
Snippets Groups Projects
Commit a09a7abf authored by Gavin Shan's avatar Gavin Shan
Browse files

selftests: KVM: Free the GIC FD when cleaning up in arch_timer

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2075082



In order to correctly destroy a VM, all references to the VM must be
freed. The arch_timer selftest creates a VGIC for the guest, which
itself holds a reference to the VM.

Close the GIC FD when cleaning up a VM.

Signed-off-by: default avatarOliver Upton <oupton@google.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220406235615.1447180-4-oupton@google.com


(cherry picked from commit 21db8384)
Signed-off-by: default avatarGavin Shan <gshan@redhat.com>
parent 32cd34fd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment