Skip to content

Commit 60ab983

Browse files
committed
debug commit
Signed-off-by: Patrick Roy <[email protected]>
1 parent 8cca649 commit 60ab983

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vmm/src/vstate/vcpu/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,14 @@ impl Vcpu {
147147
/// kick the vcpu running on the current thread, if there is one.
148148
pub fn register_kick_signal_handler() {
149149
extern "C" fn handle_signal(_: c_int, _: *mut siginfo_t, _: *mut c_void) {
150+
println!("handle_signal: enter");
150151
Vcpu::TLS_VCPU_PTR.with(|cell| {
151152
if let Some(ref mut kvm_run) = *cell.borrow_mut() {
152153
kvm_run.as_mut_ref().immediate_exit = 1;
153154
fence(Ordering::Release);
154155
}
155156
});
157+
println!("handle_signal: exit");
156158
}
157159

158160
register_signal_handler(sigrtmin() + VCPU_RTSIG_OFFSET, handle_signal)

0 commit comments

Comments
 (0)