Page MenuHomeFreeBSD

D62223.1796260553.diff
No OneTemporary

Authored By
Unknown
Size
621 B
Referenced Files
None
Subscribers
None

D62223.1796260553.diff

diff --git a/sys/arm64/vmm/io/vgic.c b/sys/arm64/vmm/io/vgic.c
--- a/sys/arm64/vmm/io/vgic.c
+++ b/sys/arm64/vmm/io/vgic.c
@@ -162,6 +162,19 @@
void
vgic_detach_from_vm(struct hyp *hyp)
{
+ struct hypctx *hypctx;
+
+ if (!hyp->vgic_attached)
+ return;
+
+ for (u_int cpu = 0; cpu < vm_get_maxcpus(hyp->vm); cpu++) {
+ hypctx = hyp->ctx[cpu];
+ if (hypctx == NULL)
+ continue;
+
+ VGIC_CPUCLEANUP(vgic_dev, hypctx);
+ }
+
VGIC_DETACH_FROM_VM(vgic_dev, hyp);
}
@@ -182,7 +195,6 @@
void
vgic_cpucleanup(struct hypctx *hypctx)
{
- VGIC_CPUCLEANUP(vgic_dev, hypctx);
free(hypctx->vgic_cpu, M_DEVBUF);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 3, 1:15 AM (15 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42127251
Default Alt Text
D62223.1796260553.diff (621 B)

Event Timeline