aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/kvm/kvm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index df0711ce9baa..e8a21e8cb2ad 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -7,6 +7,7 @@
7 */ 7 */
8 8
9#include <linux/types.h> 9#include <linux/types.h>
10#include <linux/hardirq.h>
10#include <linux/list.h> 11#include <linux/list.h>
11#include <linux/mutex.h> 12#include <linux/mutex.h>
12#include <linux/spinlock.h> 13#include <linux/spinlock.h>
@@ -671,11 +672,13 @@ __init void kvm_arch_init(void);
671 672
672static inline void kvm_guest_enter(void) 673static inline void kvm_guest_enter(void)
673{ 674{
675 account_system_vtime(current);
674 current->flags |= PF_VCPU; 676 current->flags |= PF_VCPU;
675} 677}
676 678
677static inline void kvm_guest_exit(void) 679static inline void kvm_guest_exit(void)
678{ 680{
681 account_system_vtime(current);
679 current->flags &= ~PF_VCPU; 682 current->flags &= ~PF_VCPU;
680} 683}
681 684