From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757565AbcLPPLB (ORCPT ); Fri, 16 Dec 2016 10:11:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55156 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757703AbcLPPKu (ORCPT ); Fri, 16 Dec 2016 10:10:50 -0500 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Paolo Bonzini Subject: [PATCH v2 0/6] KVM: x86: minor irqchip improvements (API change) Date: Fri, 16 Dec 2016 16:10:00 +0100 Message-Id: <20161216151006.11776-1-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 16 Dec 2016 15:10:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: Uses enum kvm_irqchip_mode to encode state and renames irqchip_kvm to irqchip_kernel, which might be easily confused with irqchip_in_kernel. v1: https://www.spinics.net/lists/kernel/msg2391115.html > There are two API changes: > 1) [1/6] forbids KVM_CREATE_IRQCHIP after KVM_CAP_SPLIT_IRQCHIP > 2) [5/6] makes KVM_SET_GSI_ROUTING reject pic and ioapic routes in split > irqchip mode, because they make no sense and are currently "working" only > because of a hacky NULL check. > > [1-4/6] are needed for [5/6]; [6/6] is just a cherry. Radim Krčmář (6): KVM: x86: don't allow kernel irqchip with split irqchip KVM: x86: decouple irqchip_in_kernel() and pic_irqchip() KVM: x86: make pic setup code look like ioapic setup KVM: x86: refactor pic setup in kvm_set_routing_entry KVM: x86: prevent setup of invalid routes KVM: x86: simplify conditions with split/kernel irqchip arch/x86/include/asm/kvm_host.h | 8 +++++++- arch/x86/kvm/i8259.c | 16 +++++++++++----- arch/x86/kvm/irq.h | 19 ++++++++++--------- arch/x86/kvm/irq_comm.c | 29 ++++++++++------------------- arch/x86/kvm/x86.c | 41 +++++++++++++++++++++-------------------- 5 files changed, 59 insertions(+), 54 deletions(-) -- 2.11.0