diff options
Diffstat (limited to 'include/linux/kvm_host.h')
| -rw-r--r-- | include/linux/kvm_host.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 0e2212fe4784..f17158bdd4fc 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -741,7 +741,7 @@ static inline void kvm_guest_enter(void) | |||
| 741 | * This is running in ioctl context so we can avoid | 741 | * This is running in ioctl context so we can avoid |
| 742 | * the call to vtime_account() with its unnecessary idle check. | 742 | * the call to vtime_account() with its unnecessary idle check. |
| 743 | */ | 743 | */ |
| 744 | vtime_account_system(current); | 744 | vtime_account_system_irqsafe(current); |
| 745 | current->flags |= PF_VCPU; | 745 | current->flags |= PF_VCPU; |
| 746 | /* KVM does not hold any references to rcu protected data when it | 746 | /* KVM does not hold any references to rcu protected data when it |
| 747 | * switches CPU into a guest mode. In fact switching to a guest mode | 747 | * switches CPU into a guest mode. In fact switching to a guest mode |
| @@ -759,7 +759,7 @@ static inline void kvm_guest_exit(void) | |||
| 759 | * This is running in ioctl context so we can avoid | 759 | * This is running in ioctl context so we can avoid |
| 760 | * the call to vtime_account() with its unnecessary idle check. | 760 | * the call to vtime_account() with its unnecessary idle check. |
| 761 | */ | 761 | */ |
| 762 | vtime_account_system(current); | 762 | vtime_account_system_irqsafe(current); |
| 763 | current->flags &= ~PF_VCPU; | 763 | current->flags &= ~PF_VCPU; |
| 764 | } | 764 | } |
| 765 | 765 | ||
