Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp263570pxu; Wed, 25 Nov 2020 02:29:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzO6i7gAWJPMD9kRCG+MJ2Ozm9sS70yJRPuinqeEtYt6LpdQNBIMTOaUWLNKK0S44+Q6Qvx X-Received: by 2002:aa7:dc48:: with SMTP id g8mr2768890edu.181.1606300170774; Wed, 25 Nov 2020 02:29:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606300170; cv=none; d=google.com; s=arc-20160816; b=ynhO3aZ0B2+cxHWbB9jI6I5ZQDV6qGi2n7513e3Brrj4OXo21PTg/hH3Kj20IhoJ1Z A/ejrRBeEAWmnWlqRnLxqZImg5tO/80bz3Lc39FXenlrMzUafTIdazGfvzd8/0rDV6ZF eVo0e4lt6xnFPOflgcKj4a/IhjYJ1a5y3Hl4BijIXzM/Z+xSOcvR1nB4GHFvE/yRystr +zh3I6wzMRqaW03CAUG5xo4LVEd89vVQMKv09NdvV9e47fsTE6wT4Y3oU3NlRi5x2SCI Snn8VPm0+PLIv9H9u4pX0Voh7P1e/MPFouX6yrXU93RgLg9scK9j5hq4nnoNNloYUMQv SBrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=l8KWwZXjo+ebfysMFihw4Nq0NqQCdpcD4ow0OUA1KW4=; b=UUOXRmrgSJJ4bCMSt2xMY8oMcbWOmAc9cveQwomtSsCkth9HtWwEzRm7vGiXOk0TAJ kukPRTrb/BneoD2Z8qIwQimY2u4oCWJMa2J1EBIcUhgrmXLfa880EAiaJfH24IRlppww peM2VVh5rQKd+5+2Bo3rq57oSRkkCdKtS95IrKQwlmuFhKRGnMpmTf3BMjabi73yoexB 3ftStpHXcmfG/1kkrCR1bdPVgFiTGR5yijgqHLMjKJELH1r3qCru4PP1Li2lJGYxzOMQ mAN5QX3DtVxbcy7YXKUZU1Z6fdYvt+S5osJvYz0XuywHn6IBxKOh//UhIlDLyQwTsPkg ygaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DpGjTGcb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si927726edx.188.2020.11.25.02.29.07; Wed, 25 Nov 2020 02:29:30 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=DpGjTGcb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728604AbgKYKZY (ORCPT + 99 others); Wed, 25 Nov 2020 05:25:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728560AbgKYKZX (ORCPT ); Wed, 25 Nov 2020 05:25:23 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC366C0613D4; Wed, 25 Nov 2020 02:25:23 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id 81so2087474pgf.0; Wed, 25 Nov 2020 02:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l8KWwZXjo+ebfysMFihw4Nq0NqQCdpcD4ow0OUA1KW4=; b=DpGjTGcbKs/0CQJBWrroVcD6FjXCf2LxZJTLiE/33p3a1xJtylQsUi/ijQKyYoSMyR CX48GAFaeIUTvp+IJUMMCyiryasym19bIX8w4Q2pkkTLCAA3ej2YLz/PVdHZ4t8TSLSL fXTxX4V0rnqDe0fqEDn9+2oCcCIkk0ZlhGSgxLgCO+vVWAVke8yRmsLAWgY1ZqYaTTGL jV9lOIoj7DBROZZU2My468qUuPfJkCmtHS9yAv+CzuWVtlV66JLUDEnBwclu+63sRldb 7k7yvllj1Ie7NAtGZScSoP3eomQOAOj6h9y9LRrLe3d2BU9l5UQAxLyTHjO72m2UFE+H YYfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l8KWwZXjo+ebfysMFihw4Nq0NqQCdpcD4ow0OUA1KW4=; b=K+ICHjZ3liWXIwCxFfQPaaTUG2x1Pi78+1hU8iHi8O0c205GzKnkEfcrwODkQ8PcFg DqzywWxA6ISNwFbf2PlQ3jsqa6npPbpn7PloCVF6736KbT6oF0eVo1vlBfMZRCuIeU/W PMrtmjTHwsxjH9NZx2rGc8RM26ZGI6IHrvEWAhUOpc6KfgwqOj1B6kg56ydYqroqF6/4 UtnOwXkZYq6Cwv2lki0wHcPxterCqkdiLv6OsF+OCllvB7fRtM6wMC6bH5dNW9kCyHTh dRmbK36QMwTqRUpQGrO4tDiu28e/iu+eStgAIb47JCrLvuS7UK0kjjJF2hFeAcb1abmd 1Hxg== X-Gm-Message-State: AOAM533fu45svd9LS/NERui6rdf4D1fdj82Fx+R/dzu1fP5IT3oRyZiF v3iOd8mbmWMGD2zBpzkLmw4pIlIf/936OmMFOQg= X-Received: by 2002:a17:90a:d90a:: with SMTP id c10mr3350899pjv.129.1606299923331; Wed, 25 Nov 2020 02:25:23 -0800 (PST) MIME-Version: 1.0 References: <20201124170744.112180-1-wei.liu@kernel.org> <20201124170744.112180-17-wei.liu@kernel.org> In-Reply-To: <20201124170744.112180-17-wei.liu@kernel.org> From: Andy Shevchenko Date: Wed, 25 Nov 2020 12:26:12 +0200 Message-ID: Subject: Re: [PATCH v3 16/17] x86/ioapic: export a few functions and data structures via io_apic.h To: Wei Liu Cc: Linux on Hyper-V List , virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Joerg Roedel , Bjorn Helgaas , Andy Shevchenko , Jon Derrick , YueHaibing , "Gustavo A. R. Silva" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2020 at 1:46 AM Wei Liu wrote: > > We are about to implement an irqchip for IO-APIC when Linux runs as root > on Microsoft Hypervisor. At the same time we would like to reuse > existing code as much as possible. > > Move mp_chip_data to io_apic.h and make a few helper functions > non-static. > +struct mp_chip_data { > + struct list_head irq_2_pin; > + struct IO_APIC_route_entry entry; > + int trigger; > + int polarity; > + u32 count; > + bool isa_irq; > +}; Since I see only this patch I am puzzled why you need to have this in the header? Maybe a couple of words in the commit message to elaborate? -- With Best Regards, Andy Shevchenko