diff options
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r-- | arch/x86/kvm/lapic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 443d2a57ad3d..1a2da0e5a373 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c | |||
@@ -1369,7 +1369,7 @@ static void start_apic_timer(struct kvm_lapic *apic) | |||
1369 | 1369 | ||
1370 | hrtimer_start(&apic->lapic_timer.timer, | 1370 | hrtimer_start(&apic->lapic_timer.timer, |
1371 | ktime_add_ns(now, apic->lapic_timer.period), | 1371 | ktime_add_ns(now, apic->lapic_timer.period), |
1372 | HRTIMER_MODE_ABS); | 1372 | HRTIMER_MODE_ABS_PINNED); |
1373 | 1373 | ||
1374 | apic_debug("%s: bus cycle is %" PRId64 "ns, now 0x%016" | 1374 | apic_debug("%s: bus cycle is %" PRId64 "ns, now 0x%016" |
1375 | PRIx64 ", " | 1375 | PRIx64 ", " |
@@ -1402,7 +1402,7 @@ static void start_apic_timer(struct kvm_lapic *apic) | |||
1402 | expire = ktime_add_ns(now, ns); | 1402 | expire = ktime_add_ns(now, ns); |
1403 | expire = ktime_sub_ns(expire, lapic_timer_advance_ns); | 1403 | expire = ktime_sub_ns(expire, lapic_timer_advance_ns); |
1404 | hrtimer_start(&apic->lapic_timer.timer, | 1404 | hrtimer_start(&apic->lapic_timer.timer, |
1405 | expire, HRTIMER_MODE_ABS); | 1405 | expire, HRTIMER_MODE_ABS_PINNED); |
1406 | } else | 1406 | } else |
1407 | apic_timer_expired(apic); | 1407 | apic_timer_expired(apic); |
1408 | 1408 | ||
@@ -1868,7 +1868,7 @@ int kvm_create_lapic(struct kvm_vcpu *vcpu) | |||
1868 | apic->vcpu = vcpu; | 1868 | apic->vcpu = vcpu; |
1869 | 1869 | ||
1870 | hrtimer_init(&apic->lapic_timer.timer, CLOCK_MONOTONIC, | 1870 | hrtimer_init(&apic->lapic_timer.timer, CLOCK_MONOTONIC, |
1871 | HRTIMER_MODE_ABS); | 1871 | HRTIMER_MODE_ABS_PINNED); |
1872 | apic->lapic_timer.timer.function = apic_timer_fn; | 1872 | apic->lapic_timer.timer.function = apic_timer_fn; |
1873 | 1873 | ||
1874 | /* | 1874 | /* |
@@ -2003,7 +2003,7 @@ void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu) | |||
2003 | 2003 | ||
2004 | timer = &vcpu->arch.apic->lapic_timer.timer; | 2004 | timer = &vcpu->arch.apic->lapic_timer.timer; |
2005 | if (hrtimer_cancel(timer)) | 2005 | if (hrtimer_cancel(timer)) |
2006 | hrtimer_start_expires(timer, HRTIMER_MODE_ABS); | 2006 | hrtimer_start_expires(timer, HRTIMER_MODE_ABS_PINNED); |
2007 | } | 2007 | } |
2008 | 2008 | ||
2009 | /* | 2009 | /* |