diff options
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r-- | arch/x86/kvm/lapic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index c4bcc86d6dc4..e05946c36b87 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c | |||
@@ -209,7 +209,8 @@ out: | |||
209 | if (old) | 209 | if (old) |
210 | kfree_rcu(old, rcu); | 210 | kfree_rcu(old, rcu); |
211 | 211 | ||
212 | kvm_vcpu_request_scan_ioapic(kvm); | 212 | if (ioapic_in_kernel(kvm)) |
213 | kvm_vcpu_request_scan_ioapic(kvm); | ||
213 | } | 214 | } |
214 | 215 | ||
215 | static inline void apic_set_spiv(struct kvm_lapic *apic, u32 val) | 216 | static inline void apic_set_spiv(struct kvm_lapic *apic, u32 val) |
@@ -1845,7 +1846,8 @@ void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu, | |||
1845 | kvm_x86_ops->hwapic_isr_update(vcpu->kvm, | 1846 | kvm_x86_ops->hwapic_isr_update(vcpu->kvm, |
1846 | apic_find_highest_isr(apic)); | 1847 | apic_find_highest_isr(apic)); |
1847 | kvm_make_request(KVM_REQ_EVENT, vcpu); | 1848 | kvm_make_request(KVM_REQ_EVENT, vcpu); |
1848 | kvm_rtc_eoi_tracking_restore_one(vcpu); | 1849 | if (ioapic_in_kernel(vcpu->kvm)) |
1850 | kvm_rtc_eoi_tracking_restore_one(vcpu); | ||
1849 | } | 1851 | } |
1850 | 1852 | ||
1851 | void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu) | 1853 | void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu) |