Skip to content

Commit 9bf8d8b

Browse files
committed
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull KVM fixes from Paolo Bonzini: "Two fixes for this merge window, and an unrelated bugfix for a host hang" * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: ioapic: break infinite recursion on lazy EOI KVM: vmx: rename pi_init to avoid conflict with paride KVM: x86/mmu: Avoid modulo operator on 64-bit value to fix i386 build
2 parents c51ae12 + 7737706 commit 9bf8d8b

5 files changed

Lines changed: 6 additions & 9 deletions

File tree

arch/x86/kvm/ioapic.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,9 @@ static void ioapic_lazy_update_eoi(struct kvm_ioapic *ioapic, int irq)
197197

198198
/*
199199
* If no longer has pending EOI in LAPICs, update
200-
* EOI for this vetor.
200+
* EOI for this vector.
201201
*/
202202
rtc_irq_eoi(ioapic, vcpu, entry->fields.vector);
203-
kvm_ioapic_update_eoi_one(vcpu, ioapic,
204-
entry->fields.trig_mode,
205-
irq);
206203
break;
207204
}
208205
}

arch/x86/kvm/mmu/tdp_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static void __handle_changed_spte(struct kvm *kvm, int as_id, gfn_t gfn,
209209

210210
WARN_ON(level > PT64_ROOT_MAX_LEVEL);
211211
WARN_ON(level < PG_LEVEL_4K);
212-
WARN_ON(gfn % KVM_PAGES_PER_HPAGE(level));
212+
WARN_ON(gfn & (KVM_PAGES_PER_HPAGE(level) - 1));
213213

214214
/*
215215
* If this warning were to trigger it would indicate that there was a

arch/x86/kvm/vmx/posted_intr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void pi_wakeup_handler(void)
222222
spin_unlock(&per_cpu(blocked_vcpu_on_cpu_lock, cpu));
223223
}
224224

225-
void __init pi_init(int cpu)
225+
void __init pi_init_cpu(int cpu)
226226
{
227227
INIT_LIST_HEAD(&per_cpu(blocked_vcpu_on_cpu, cpu));
228228
spin_lock_init(&per_cpu(blocked_vcpu_on_cpu_lock, cpu));

arch/x86/kvm/vmx/posted_intr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ void vmx_vcpu_pi_put(struct kvm_vcpu *vcpu);
9191
int pi_pre_block(struct kvm_vcpu *vcpu);
9292
void pi_post_block(struct kvm_vcpu *vcpu);
9393
void pi_wakeup_handler(void);
94-
void __init pi_init(int cpu);
94+
void __init pi_init_cpu(int cpu);
9595
bool pi_has_pending_interrupt(struct kvm_vcpu *vcpu);
9696
int pi_update_irte(struct kvm *kvm, unsigned int host_irq, uint32_t guest_irq,
9797
bool set);
9898

99-
#endif /* __KVM_X86_VMX_POSTED_INTR_H */
99+
#endif /* __KVM_X86_VMX_POSTED_INTR_H */

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8004,7 +8004,7 @@ static int __init vmx_init(void)
80048004
for_each_possible_cpu(cpu) {
80058005
INIT_LIST_HEAD(&per_cpu(loaded_vmcss_on_cpu, cpu));
80068006

8007-
pi_init(cpu);
8007+
pi_init_cpu(cpu);
80088008
}
80098009

80108010
#ifdef CONFIG_KEXEC_CORE

0 commit comments

Comments
 (0)