Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330261
| From | Radim Krčmář <rkrcmar@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] KVM: x86: consolidate "has lapic" checks into irq.c |
| Date | 2016-02-09 15:10 +0100 |
| Message-ID | <r0h9n-56j-5@gated-at.bofh.it> (permalink) |
| References | <qZWHD-7Fq-13@gated-at.bofh.it> <qZWHF-7Fq-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2016-02-08 17:15+0100, Paolo Bonzini:
> Do for kvm_cpu_has_pending_timer and kvm_inject_pending_timer_irqs
> what the other irq.c routines have been doing.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> diff --git a/arch/x86/kvm/irq.c b/arch/x86/kvm/irq.c
> @@ -33,7 +33,10 @@
> */
> int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu)
> {
> - return apic_has_pending_timer(vcpu);
> + if (lapic_in_kernel(vcpu))
> + return apic_has_pending_timer(vcpu);
> +
> + return true;
Apart from int/bool mismatch, it returned 0 before and that was correct.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/3] KVM: x86: consolidate "has lapic" checks into irq.c Paolo Bonzini <pbonzini@redhat.com> - 2016-02-08 17:20 +0100
Re: [PATCH 2/3] KVM: x86: consolidate "has lapic" checks into irq.c Radim Krčmář <rkrcmar@redhat.com> - 2016-02-09 15:10 +0100
Re: [PATCH 2/3] KVM: x86: consolidate "has lapic" checks into irq.c Paolo Bonzini <pbonzini@redhat.com> - 2016-02-09 16:10 +0100
Re: [PATCH 2/3] KVM: x86: consolidate "has lapic" checks into irq.c Radim Krčmář <rkrcmar@redhat.com> - 2016-02-09 16:30 +0100
csiph-web