Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176552193
D60789.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
513 B
Referenced Files
None
Subscribers
None
D60789.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D60789: riscv: bhyve: add NULL check for hyp in riscv_send_ipi
Attached
Detach File
Event Timeline
Log In to Comment