Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp946611pxu; Wed, 2 Dec 2020 07:20:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwU/qCqgt3c2oE7QHMx4kg/dBnVLhIt1KS4odOXd6pLI6gEiQKazMWMMe64MDw2XIlQi3Sy X-Received: by 2002:a17:906:6414:: with SMTP id d20mr300493ejm.82.1606922422126; Wed, 02 Dec 2020 07:20:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606922422; cv=none; d=google.com; s=arc-20160816; b=sePxt4vJMAo76Pc/E6nqYyWql+6CLZ/pzvVIc5sNE3yL2nv5AvK/EUvw7l3NWteaKV AjekzGIB1sPkkcUDsM5JofX8fyV3bloq19n6KMOf9AvSFVxpmhsEhBHaogneCwtf1wac OVtTxcEqRTO+EeGMzpI9qvTyaueq/e6oM69xl2A/RqO5VpjOBNw5SQlT46K1Kyr0V2rR sG5bl6EFvtkBiVsBnG++TjCX2XIwEEh3f9S0OolBgTXC/4VBy+P5sOqppn2TwFtzXWVt ywg9agn1O7r0txHrq+ft9Rc+vqOXes5ZZdlZF+OkeIixzEmOqjrvyCxe9xrq4fGqeMX3 Ffcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=EOPrsoLXM9xjTNY8Z73r9rb8yc+SDgzoroZRyaexFSI=; b=Y1oJ29bDjXA1FROsM7siMNdQfPZzXgBL/IMCOjn9wUklAGimlv/ejLgOGRUg6JDwUz 67XoplnslLojEUAC73/tEeCINMElxjP0PM+uZwF/Gccb6EHqA6aS3eFwgOPBbGt/jb2W KVM44mMxacCmAeRNNBXWZutYT5XolmesyBeojpcGOdT0ICq6BFlhxbnWxnTkqb8+fvay WKnXQkhiwhQgvIpDDUzNJFjuurdA90brdegBCpa51Z/vpHCK+/2zzxmrbeGrGLBhdcp6 v74jZnUAQN8+olp6Fm/7Mf1a6UUzPs3fse6H0TWruiafyIbmszhTaoOimlmOo/snJePw 6+4A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 q7si98609edr.253.2020.12.02.07.19.58; Wed, 02 Dec 2020 07:20:22 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbgLBPR5 (ORCPT + 99 others); Wed, 2 Dec 2020 10:17:57 -0500 Received: from mga14.intel.com ([192.55.52.115]:17872 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbgLBPR5 (ORCPT ); Wed, 2 Dec 2020 10:17:57 -0500 IronPort-SDR: 6ga+xZjdBOBHsuJQtaOfcu6YVPSB43Sv8CacLLYJNoe82tgo8No1HFy8BoLBmHSMoGpB0vYGio YsLiHOOihIIQ== X-IronPort-AV: E=McAfee;i="6000,8403,9823"; a="172248150" X-IronPort-AV: E=Sophos;i="5.78,387,1599548400"; d="scan'208";a="172248150" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2020 07:17:16 -0800 IronPort-SDR: lQjhoa4rlFFBhKMBX7uKfJeK3w1ffejEELjEVz36IdY+vd5HEezdP9lCjZSbo80pcNKKTWu79z lWZYmP6Kw1Rg== X-IronPort-AV: E=Sophos;i="5.78,387,1599548400"; d="scan'208";a="550096338" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2020 07:17:01 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kkTtK-00BXLU-L0; Wed, 02 Dec 2020 17:18:02 +0200 Date: Wed, 2 Dec 2020 17:18:02 +0200 From: Andy Shevchenko 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 , Jon Derrick , YueHaibing , "Gustavo A. R. Silva" Subject: Re: [PATCH v3 16/17] x86/ioapic: export a few functions and data structures via io_apic.h Message-ID: <20201202151802.GI4077@smile.fi.intel.com> References: <20201124170744.112180-1-wei.liu@kernel.org> <20201124170744.112180-17-wei.liu@kernel.org> <20201202141107.covsx4ugipuyl6he@liuwe-devbox-debian-v2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201202141107.covsx4ugipuyl6he@liuwe-devbox-debian-v2> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 02, 2020 at 02:11:07PM +0000, Wei Liu wrote: > On Wed, Nov 25, 2020 at 12:26:12PM +0200, Andy Shevchenko wrote: > > 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? > > Andy, does the following answer your question? > > "The chip_data stashed in IO-APIC's irq chip is mp_chip_data. The > implementation of Microsoft Hypevisor's IO-APIC irqdomain would like to > manipulate that data structure, so move it to io_apic.h as well." At least it sheds some light, thanks. > If that's good enough, I can add it to the commit message. It's good for a starter, but I think you have to wait for what Thomas and other related people can say. -- With Best Regards, Andy Shevchenko