From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752798AbbHMNqR (ORCPT ); Thu, 13 Aug 2015 09:46:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54627 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbbHMNqP (ORCPT ); Thu, 13 Aug 2015 09:46:15 -0400 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: linux-kernel@vger.kernel.org Cc: kvm@vger.kernel.org, Paolo Bonzini , Steve Rutherford , stable@vger.kernel.org Subject: [PATCH 0/2] KVM: x86: fix edge EOI and IOAPIC reconfig race Date: Thu, 13 Aug 2015 15:46:08 +0200 Message-Id: <1439473570-13763-1-git-send-email-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [1/2] changes sync_pir_to_irr interface to avoid a definitely superfluous KVM_REQ_EVENT in [2/2]. It's possible that we don't need KVM_REQ_EVENT, but a slight slowdown in execution is worth the time needed for a proof. (A quick test showed that KVM_REQ_EVENT is always already set if sync_pir_to_irr does something.) [2/2] is applicable to userspace split IOAPIC as well, but I hope that we want it to work like normal IOAPIC (no ACK for edge irq), so I haven't fixed it. Radim Krčmář (2): KVM: x86: return bool from x86_ops.sync_pir_to_irr KVM: x86: fix edge EOI and IOAPIC reconfig race arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/ioapic.c | 7 ++++++- arch/x86/kvm/svm.c | 4 ++-- arch/x86/kvm/vmx.c | 12 +++++++----- 4 files changed, 16 insertions(+), 9 deletions(-) -- 2.5.0