summary refs log tree commit diff
path: root/kvm/tests/dirty_log.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kvm/tests/dirty_log.rs')
-rw-r--r--kvm/tests/dirty_log.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvm/tests/dirty_log.rs b/kvm/tests/dirty_log.rs
index 527af46..1efe135 100644
--- a/kvm/tests/dirty_log.rs
+++ b/kvm/tests/dirty_log.rs
@@ -52,8 +52,9 @@ fn test_run() {
         )
         .expect("failed to register memory");
 
+    let runnable_vcpu = vcpu.to_runnable(None).unwrap();
     loop {
-        match vcpu.run().expect("run failed") {
+        match runnable_vcpu.run().expect("run failed") {
             VcpuExit::Hlt => break,
             r => panic!("unexpected exit reason: {:?}", r),
         }