From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH] kvm: x86: correctly reset dest_map->vector when restoring LAPIC state Date: Mon, 19 Sep 2016 15:16:19 +0200 Message-ID: <20160919131619.GE3138@suse.de> References: <1473889712-13785-1-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, David Gilbert , Radim =?utf-8?B?S3LEjW3DocWZ?= To: Paolo Bonzini Return-path: Content-Disposition: inline In-Reply-To: <1473889712-13785-1-git-send-email-pbonzini@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, Sep 14, 2016 at 11:48:32PM +0200, Paolo Bonzini wrote: > When userspace sends KVM_SET_LAPIC, KVM schedules a check between > the vCPU's IRR and ISR and the IOAPIC redirection table, in order > to re-establish the IOAPIC's dest_map (the list of CPUs servicing > the real-time clock interrupt with the corresponding vectors). > > However, __rtc_irq_eoi_tracking_restore_one was forgetting to > set dest_map->vectors. Because of this, the IOAPIC did not process > the real-time clock interrupt EOI, ioapic->rtc_status.pending_eoi > got stuck at a non-zero value, and further RTC interrupts were > reported to userspace as coalesced. > > Fixes: 9e4aabe2bb3454c83dac8139cf9974503ee044db > Fixes: 4d99ba898dd0c521ca6cdfdde55c9b58aea3cb3d > Cc: Joerg Roedel > Cc: David Gilbert > Cc: Radim Krčmář > Signed-off-by: Paolo Bonzini Good catch, thanks for fixing this.