From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752654AbcBHQPw (ORCPT ); Mon, 8 Feb 2016 11:15:52 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33621 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbcBHQPt (ORCPT ); Mon, 8 Feb 2016 11:15:49 -0500 From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: rkrcmar@redhat.com Subject: [PATCH 0/3] KVM: x86: consolidate "has lapic" checks Date: Mon, 8 Feb 2016 17:15:43 +0100 Message-Id: <1454948146-35353-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This cleans up "has in-kernel LAPIC" checks in various ways, especially avoiding checking things twice and providing a single way to do the test. Paolo Paolo Bonzini (3): KVM: APIC: remove unnecessary double checks on APIC existence KVM: x86: consolidate "has lapic" checks into irq.c KVM: x86: consolidate different ways to test for in-kernel LAPIC arch/x86/kvm/irq.c | 9 ++++++--- arch/x86/kvm/irq.h | 8 -------- arch/x86/kvm/lapic.c | 41 ++++++++++++----------------------------- arch/x86/kvm/lapic.h | 8 ++++---- arch/x86/kvm/pmu.c | 2 +- arch/x86/kvm/x86.c | 17 +++++++++-------- 6 files changed, 32 insertions(+), 53 deletions(-) -- 1.8.3.1