File tree 1 file changed +13
-6
lines changed
bin/propolis-server/src/lib
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -215,13 +215,20 @@ impl VcpuTasks {
215
215
event_handler. unhandled_vm_exit ( vcpu. id , exit. kind ) ;
216
216
VmEntry :: Run
217
217
}
218
+ // Bhyve emits the `Bogus` exit kind when there is no actual
219
+ // guest exit for user space to handle, but circumstances
220
+ // nevertheless dictate that the kernel VMM should exit to
221
+ // user space (e.g. a caller requested that all vCPUs be
222
+ // forced to exit to user space so their threads can
223
+ // rendezvous there).
224
+ //
225
+ // `process_vmexit` should always successfully handle this
226
+ // exit, since it never entails any work that could fail to
227
+ // be completed.
218
228
VmExitKind :: Bogus => {
219
- error ! ( log,
220
- "lib returned bogus exit from vCPU {}" ,
221
- vcpu. id) ;
222
-
223
- event_handler. unhandled_vm_exit ( vcpu. id , exit. kind ) ;
224
- VmEntry :: Run
229
+ unreachable ! (
230
+ "propolis-lib always handles VmExitKind::Bogus"
231
+ ) ;
225
232
}
226
233
VmExitKind :: Debug => {
227
234
error ! ( log,
You can’t perform that action at this time.
0 commit comments