Page MenuHomeFreeBSD

D60789.diff
No OneTemporary

D60789.diff

diff --git a/sys/riscv/vmm/vmm_riscv.c b/sys/riscv/vmm/vmm_riscv.c
--- a/sys/riscv/vmm/vmm_riscv.c
+++ b/sys/riscv/vmm/vmm_riscv.c
@@ -541,6 +541,9 @@
uint16_t maxcpus;
int i;
+ if (__predict_false(hyp == NULL))
+ return;
+
vm = hyp->vm;
maxcpus = vm_get_maxcpus(hyp->vm);
@@ -548,6 +551,8 @@
if (!CPU_ISSET(i, cpus))
continue;
hypctx = hyp->ctx[i];
+ if (__predict_false(hypctx == NULL))
+ continue;
atomic_set_32(&hypctx->ipi_pending, 1);
vcpu_notify_event(vm_vcpu(vm, i));
}

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 20, 7:02 PM (7 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40970579
Default Alt Text
D60789.diff (513 B)

Event Timeline