Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp871730pxu; Wed, 2 Dec 2020 05:43:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnRphuKhaa9MjhSoA/VgN09bLIBpM4ERr+/DIf2vJX4Yodb083ONoMVZCFhNPfnyV/Kx9F X-Received: by 2002:a50:ac86:: with SMTP id x6mr2638053edc.197.1606916585130; Wed, 02 Dec 2020 05:43:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606916585; cv=none; d=google.com; s=arc-20160816; b=FMevzGsoGtVEqNhO7P6UQCAwHnrAXkF4Pgpwo1Ro+Dc03vJAKwDH8uAw2TrV3xVlDZ 5a+xTxk3g9aQ3PqZc0dlnnJ9fL+A527Wr7EFguEquwvi7+prTmlSLJ06zhftXjhMgp1v TBUfiUQyiZwkP5B1cSPqWkJq5sPbSeLvWeAGYEz7u0r/b5GExsFJL//+ZTvoLg5qZ/DN mjVI6DWFyWQamuX4sTX1ENaybK6X0+bAwHfXINcXk5tLgivGJ7MFGe4XxKByBkWu0rjQ Z+tT4VuxxYuj5pHrUqYNNO+fE1sXhuxnY2E89JhhqfkLtqpnKtZ2PQ7jk9cQKOfy5URU 9SKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FJ6xsLQx9dY05IPFoonCh3sF/1Zc711Of2UZIMZEMno=; b=0wpND6ztpg3GXq9obGEkx5YpvyeBxJVs7K8CmVzuvBx8e8tDlb5miq6eca95kKMmLj kyuvyPZJR14Q9i2azH2x1asJKvaDGS5B/fKIXACtJ32XZFhew9DiNXzyg3K2joBSg0k0 nQtRWuAQ0hDcPxRbBapjwii31tYI+DLzBc8ef3h3B35bqclAoPPDxJkiFuSRT27gx9Ki CgTXPJ6PuIy78RD1zV/PJcYlHTpLoUQh/kRlCut9HoX2tbtUNQHTqIdHQRd4Ru6gX+lL CKyGtSuf8bCP5AxqIQzHn7xId0JBTm3PrXXGeD8wxlPbp8EyWSnbUExMqujR7+VSMl4j toFQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si839189eji.697.2020.12.02.05.42.41; Wed, 02 Dec 2020 05:43:05 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730140AbgLBNkA (ORCPT + 99 others); Wed, 2 Dec 2020 08:40:00 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51354 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgLBNj7 (ORCPT ); Wed, 2 Dec 2020 08:39:59 -0500 Received: by mail-wm1-f66.google.com with SMTP id v14so7314157wml.1; Wed, 02 Dec 2020 05:39:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FJ6xsLQx9dY05IPFoonCh3sF/1Zc711Of2UZIMZEMno=; b=NMtOa7vjYq9yFrbFk5RXqW+gXSDUYKu4Ng0XQY0KEFpmj4VNCTN7jP/wxvsyg12wME jAV+LmXjldUrqCYX12nBa6gaiOGFdMYhYs0wgyjEkMgk3Y6KEGbygo4E9sTHL5WkJFvB 1ZXva6czIgbjLRWWbyJgLg26Fe0OLUGqaESsT7rI2M47klrlZw0JCEuMZVRuo4jLZ55J AfhLe/vYxSxM7Yb2MwgrZFBMvlI36ngM5I6JsHbkgdi9u5+muGW5BCKicAPmIHNuM8Rm 34pDFsdujFnNhCqiKOzVAn9xMG24+av22RuJk2ABbf0uxgk5cgMI+AvLLQHUbRfVk1KC 1QUA== X-Gm-Message-State: AOAM530BzlxZCefH/WjsVJGQ9AFoigDQU9s06wocp8fwRGALdN3W32jE bRKhAP4KYp7fZVEwPDSrWss= X-Received: by 2002:a7b:c055:: with SMTP id u21mr3189754wmc.130.1606916351950; Wed, 02 Dec 2020 05:39:11 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id s4sm2143519wru.56.2020.12.02.05.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 05:39:11 -0800 (PST) Date: Wed, 2 Dec 2020 13:39:10 +0000 From: Wei Liu To: David Woodhouse Cc: Wei Liu , Linux on Hyper-V List , virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , Rob Herring , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Lorenzo Pieralisi , Bjorn Helgaas , Arnd Bergmann , "open list:PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS" , "open list:GENERIC INCLUDE/ASM HEADER FILES" Subject: Re: [PATCH v3 12/17] asm-generic/hyperv: update hv_interrupt_entry Message-ID: <20201202133910.6pihxjpu4qq5ljy5@liuwe-devbox-debian-v2> References: <20201124170744.112180-1-wei.liu@kernel.org> <20201124170744.112180-13-wei.liu@kernel.org> <012811843c94694f595e11bebfd9d4075f81f7f2.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <012811843c94694f595e11bebfd9d4075f81f7f2.camel@infradead.org> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 24, 2020 at 06:05:27PM +0000, David Woodhouse wrote: > On Tue, 2020-11-24 at 17:07 +0000, Wei Liu wrote: > > We will soon use the same structure to handle IO-APIC interrupts as > > well. Introduce an enum to identify the source and a data structure for > > IO-APIC RTE. > > > > While at it, update pci-hyperv.c to use the enum. > > > > No functional change. > > > > Signed-off-by: Wei Liu > > Acked-by: Rob Herring > > The I/OAPIC is just a device for generating MSIs. > > Can you check if this renders your patch obsolete: > > https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/apic&id=5d5a97133887b2dfd8e2ad0347c3a02cc7aaa0cb David, thanks for your comment. This patch merely copies the definitions from Microsoft Hypervisor. The data structure is the exact one that is returned from the hypervisor. The hypervisor doesn't return a pair of (addr,data). It translates (addr,data) to IO-APIC RTE for the caller -- like what ioapic_setup_msg_from_msi does in your patch. I don't think your patch makes this patch obsolete. Wei.