diff options
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/x86.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 77d57ff3d74e..f0493e7dcf0c 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2535,6 +2535,13 @@ again: | |||
2535 | 2535 | ||
2536 | local_irq_disable(); | 2536 | local_irq_disable(); |
2537 | 2537 | ||
2538 | if (need_resched()) { | ||
2539 | local_irq_enable(); | ||
2540 | preempt_enable(); | ||
2541 | r = 1; | ||
2542 | goto out; | ||
2543 | } | ||
2544 | |||
2538 | if (signal_pending(current)) { | 2545 | if (signal_pending(current)) { |
2539 | local_irq_enable(); | 2546 | local_irq_enable(); |
2540 | preempt_enable(); | 2547 | preempt_enable(); |