The x86 implementation of KVM accounts for host time while processing
guest exits. Do the same for us.
Signed-off-by: Alexander Graf <agraf@suse.de>
__hard_irq_enable();
trace_kvm_exit(exit_nr, vcpu);
+ kvm_guest_exit();
preempt_enable();
switch (exit_nr) {
}
}
+ kvm_guest_enter();
trace_kvm_book3s_reenter(r, vcpu);
return r;
local_irq_enable();
trace_kvm_exit(exit_nr, vcpu);
+ kvm_guest_exit();
run->exit_reason = KVM_EXIT_UNKNOWN;
run->ready_for_interrupt_injection = 1;
}
}
+ kvm_guest_enter();
+
return r;
}