Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1424758ybk; Thu, 21 May 2020 06:38:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybOJrx2b5XBDrR1eRfP3YbsGINoNbOJ3HjPrwVlR0t2HfQ6J5kGCxOYlZYVzX8LNEntsY9 X-Received: by 2002:a17:906:1f87:: with SMTP id t7mr3725203ejr.50.1590068326123; Thu, 21 May 2020 06:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590068326; cv=none; d=google.com; s=arc-20160816; b=xSO9CDFpEMXWeY0OR2yeOGzU6kqL6TL2TdbXBXQCwMYWYfE+ojLxxqbV0MKsOj4+BZ ose7MfnabuZjadXo+QkkhHmOz1YOiP8weZor1b8Y9bOtVyGWyAa0PCqrPRoCWU60CRuj ZdYDmDA4x8odAcb/4RKxyHnBsL0WCxEmhDYDLyobEIfOLz0yQLgv5sgl4NcHohkgjn74 Xdx33hGjyhOYdDlFn8/azzvtnZB1dsnhIgcAZCTbUe4qNECmLUG2XZrRHzmqHtme7bUq 5a2hQrqcLq9q1fexp4xdoqAgUBExZuZulsFnMuAcaig1/0NMIqFCAYIqhfgSMPSUaMWB ZE0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=/siY53tjkun6MuLncCOGE+QWvInBPs5eGByYgtd/XlU=; b=VgQE6TpVcnd0+x9m1z5mn6rRNWYJ4RfW+gLIDOhJjuhJk1BkzP8qUHD3DOIKyM0RZ2 7BQC7fXV6SzHZSv/4ahcq9UmKD9xgX7WPAnXa2yuJdVT2X2W0ZP4AihLTg1RrlMT9FfX zpimySBMey3BUXpfyfJ5rN8WoWMSZcnIEtdHW2sZr9EyjvYu1xyJ+hYSilZhzfVqoqXw GeIDsQPUvKL/rPn+5W672PuiToO/X1la5R20mLKHlqbw4mkr56P8uUOtzEUQPocXcUWs k6mfWnV7HFk1phHaMBV6r8Doo/r6rve8CTmQmRetrJpJ/Rw9ppG4nKTBY3SZowsJyPwt 3PIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GWJo8TxP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si3368833ejh.129.2020.05.21.06.38.22; Thu, 21 May 2020 06:38:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GWJo8TxP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729459AbgEUNgp (ORCPT + 99 others); Thu, 21 May 2020 09:36:45 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:48776 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726856AbgEUNgp (ORCPT ); Thu, 21 May 2020 09:36:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590068204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/siY53tjkun6MuLncCOGE+QWvInBPs5eGByYgtd/XlU=; b=GWJo8TxPwtoFjvuDZZu5wCm9Jk37AghXOScgyaSqizOEy4pq01PeXf0MVW8cLfipL0oMSp eqc2zME6bzrvRWgfJrgyjaDNdXXwbq5doCtYIwkwYZ4TnUqaYm/E18HX4oK41nFXTYUxZP iBtwmsk/SdBBuMSejlS+V0aVtGhgL7M= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-117-SyuBraAaN1CmJVCIVzVmRQ-1; Thu, 21 May 2020 09:36:40 -0400 X-MC-Unique: SyuBraAaN1CmJVCIVzVmRQ-1 Received: by mail-wr1-f71.google.com with SMTP id z5so2912511wrt.17 for ; Thu, 21 May 2020 06:36:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/siY53tjkun6MuLncCOGE+QWvInBPs5eGByYgtd/XlU=; b=mUwJ7bI9YjDahaRs7p9+ssMXnOgo7Ug4gdPbPtfO3gq0uZQuPHvWkq7xp1upSy/fEi iyNmBucq3zNu7G/wB8juKVUPxPweD23WZbQS96z2IGwbK8qjpFaWnhj0dW28nWwFNMX6 mUntfyFEUt8n2eAhgQJj4LsxtnAP8vpB1WVvVa+Fl1VsoSjEtbwY1vWLx6HjKUujEXF5 pNbnPUX/TCToX5XRglealR/hZNme1N0JHFLR+5Al/zSyESBI1fkunT+B1VB0vQr8EGNF BYHN52AKUUa1bUjQUe4gCYBZW+COvFTubOt7XrvS+MyXH6QilowswzR//YYkv2HspmM8 ZMHA== X-Gm-Message-State: AOAM533fAuKWLxqIsILolW2tQyh/A4RR6Iud6MhgzOhzUZbVvHvKoE+R iqEhY6HbeQ1XZUBHgjbdis3Flc7khptDVlqS2kRlPQFQfMCeHRUnRIMUtKa1n/gsXysWpIugzH4 pvEzKbXzLRmLNA4oELgBI7chc X-Received: by 2002:a5d:560c:: with SMTP id l12mr8376244wrv.309.1590068198820; Thu, 21 May 2020 06:36:38 -0700 (PDT) X-Received: by 2002:a5d:560c:: with SMTP id l12mr8376228wrv.309.1590068198484; Thu, 21 May 2020 06:36:38 -0700 (PDT) Received: from [192.168.178.58] ([151.30.94.134]) by smtp.gmail.com with ESMTPSA id c19sm6723507wrb.89.2020.05.21.06.36.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 06:36:37 -0700 (PDT) Subject: Re: [PATCH v3] kvm/x86 : Remove redundant function implement To: Vitaly Kuznetsov , =?UTF-8?B?5b2t5rWpKFJpY2hhcmQp?= Cc: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" References: <87h7w9skmr.fsf@vitty.brq.redhat.com> From: Paolo Bonzini Message-ID: <629b1ca1-66a3-f616-71a9-3fda3b03aeb4@redhat.com> Date: Thu, 21 May 2020 15:36:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <87h7w9skmr.fsf@vitty.brq.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/05/20 11:27, Vitaly Kuznetsov wrote: > 彭浩(Richard) writes: > >> pic_in_kernel(),ioapic_in_kernel() and irqchip_kernel() have the >> same implementation. > 'pic_in_kernel()' name is misleading, one may think this is about lapic > and it's not. Also, ioapic_in_kernel() doesn't have that many users, can > we maybe converge on using irqchip_*() functions everywhere? > Richard's patch was my recommendation actually. PIC is not the LAPIC and not the IOAPIC; even though right now the implementation is the same for pic_in_kernel and ioapic_in_kernel and irqchip_kernel(), that's more or less an implementation detail. Paolo