Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80671
b: refs/heads/master
c: e56a7a2
h: refs/heads/master
i:
  80669: 46cd02a
  80667: edf7958
  80663: a40ee00
  80655: fedca51
  80639: 4ec94cc
v: v3
  • Loading branch information
Christian Borntraeger authored and Avi Kivity committed Jan 30, 2008
1 parent cb495a5 commit 6a3152e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8a7ae055f3533b520401c170ac55e30628b34df5
refs/heads/master: e56a7a28e21aa2d1af659d8f38952411ce9ae40e
3 changes: 3 additions & 0 deletions trunk/drivers/kvm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include <linux/types.h>
#include <linux/hardirq.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
Expand Down Expand Up @@ -671,11 +672,13 @@ __init void kvm_arch_init(void);

static inline void kvm_guest_enter(void)
{
account_system_vtime(current);
current->flags |= PF_VCPU;
}

static inline void kvm_guest_exit(void)
{
account_system_vtime(current);
current->flags &= ~PF_VCPU;
}

Expand Down

0 comments on commit 6a3152e

Please sign in to comment.