Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4400189ybl; Mon, 3 Feb 2020 18:17:04 -0800 (PST) X-Google-Smtp-Source: APXvYqzxZntJGG/nGkHbU1Q3DKCEvI/WdScaQVVdav5jqBgKf8R30Xbh/zRRRF6tGpJI/R5wkbDK X-Received: by 2002:a05:6830:1e2d:: with SMTP id t13mr20875017otr.128.1580782624513; Mon, 03 Feb 2020 18:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580782624; cv=none; d=google.com; s=arc-20160816; b=oM8HphjxUEw32YVQ8SDpir0G3/2K+hJjLb0Oc8yUrJpgz1YlgOV2shd9khfcpIe+XU ttyFq//Utz3cnT2ANc/hgVZrV1W688GhNWKnq0G0ENCNv9QlAn7dnchvZEQwy/7oui/I l11nJJCZOvtzO4THmEVToeJ/nsKtb0HiYxogZh4SyVFYvqfINF91GaozbrnNvHDrSlUz x9I5WHxJO021rjhoyvSEmvKivTYCtSif5CZmP+shZm3ukoklZtn/xaUkB3An/qiJfatz a4rAlJzOg7kIPH5R2y/lNopRgEyuQ7/gvL0a4+sIgwga3lL/qBgCVZpOdfeeep5Tm1ep kJsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VZmEGXacXxicuuPoJQtVnZbvxG0RFnbvOKhiEeP6vow=; b=Ag4Fzysl/F+W0NE+zAJlRo9K7Xmdfhotr5s8VJcANEy41tFg8U8YL4RyygDeD+8twz Yp0t16LLQAgX7S3pCkrSHKRWJGrbavWTjLrHuHD02P9NMDV00YvkfSc9pMbeWtZNN7Py AK1Zov/NQOKEpO8JcSGbrUmiyfcPhRCp+Li45Orif0PpAl0DTwlYLckzSFtPgx4jn2fu A1R5k7GDJ6kK2gNmWbvKEVkqCMM/oBI28IqiYkG1gZiQt23hCneZiFldrqf9zVR6sjuD H7nGm8OwGustVhtwiddNITX24oXm0hHF0XXQPPuNnu75/frWJgbnACwalCwOz0Sr8KWA e44w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KVi4gby9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id o15si10866702otp.314.2020.02.03.18.16.20; Mon, 03 Feb 2020 18:17:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KVi4gby9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727015AbgBDCNd (ORCPT + 99 others); Mon, 3 Feb 2020 21:13:33 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40236 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbgBDCNc (ORCPT ); Mon, 3 Feb 2020 21:13:32 -0500 Received: by mail-qk1-f193.google.com with SMTP id b7so1222041qkl.7; Mon, 03 Feb 2020 18:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VZmEGXacXxicuuPoJQtVnZbvxG0RFnbvOKhiEeP6vow=; b=KVi4gby9PprqxfGEEC+4ouLgLiwpLisNZBv8dGQhj8U16REXKcxfbNCTW84pL3Pfrk dYOKdGaqVn6s+Nl0twegaWDeGN69OZYAAxMiiqMmKKZ8s1PaQV7eNZ410S6X3lBkVcVP 19oTCOs1bPLpPVGVtGUDsInHS4wqJJSgC3eSWnE/HkIC08rCCLG0QuXnNZ5sxPEdi/TC of3F1/BTRLd2zVbWEiVeZtyBE5nRJxoMJrz3/1y/Qxw0n+A/zv4k7sSJ2P6kV7aIazXZ VU/DUSZp7vYFUMhuhhbDVKoqNwSGkXoSMJIu4hhJbZ/R+y5fH+0IqbY8hbsLr16c1vKx oxyg== 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; bh=VZmEGXacXxicuuPoJQtVnZbvxG0RFnbvOKhiEeP6vow=; b=duc9MaercplkGV5iLDMOUB2farcqklsTc2pHaewFwySk/BPVWaosyP7Jc3H7VHzbZq eVUAEFNB/6fHOcl1C7gtVFoQODvjTZf9jDvWWl/9wnpBpu4Awl0evO0JwVPNkeMfoB2k g+qQXE3MCWWul1JxfY+y1GPmQdmk0kOTMx4rMldoqyJCJWijNinLK3f7xVNOSj5nloZl QjC4DYdlD1LeOZGF7Q4LlhnIM1/bmyEq3+6hJgyNp3KSTrDZNiRjbYsdQBP9w21MIYqB 78vNLmWwepMDFCTjnU8vcEtY3EZXZAKEfhkzE+mClUy1H1dd+OIZYiV3KSpjpXIVi8o2 3Vyw== X-Gm-Message-State: APjAAAU3v3GsXsLymNM6sCN0uxZNPDnha7s/J9/wPKICDvDCBvanAsjK tzHKuJ9nGTTxnRp7fbzhaeg= X-Received: by 2002:a05:620a:ce5:: with SMTP id c5mr25694582qkj.49.1580782411625; Mon, 03 Feb 2020 18:13:31 -0800 (PST) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id f26sm10743199qtv.77.2020.02.03.18.13.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Feb 2020 18:13:31 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id EFBE722129; Mon, 3 Feb 2020 21:13:28 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 03 Feb 2020 21:13:29 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgeekgdegfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucfkphephedvrd duheehrdduuddurdejudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegsohhquhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqd eiledvgeehtdeigedqudejjeekheehhedvqdgsohhquhhnrdhfvghngheppehgmhgrihhl rdgtohhmsehfihigmhgvrdhnrghmvg X-ME-Proxy: Received: from localhost (unknown [52.155.111.71]) by mail.messagingengine.com (Postfix) with ESMTPA id E95B130602DB; Mon, 3 Feb 2020 21:13:23 -0500 (EST) Date: Tue, 4 Feb 2020 10:13:22 +0800 From: Boqun Feng To: Thomas Gleixner Cc: linux-pci@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Michael Kelley , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Lorenzo Pieralisi , Andrew Murray , Bjorn Helgaas Subject: Re: [PATCH v2 3/3] PCI: hv: Introduce hv_msi_entry Message-ID: <20200204021322.GH83200@debian-boqun.qqnc3lrjykvubdpftowmye0fmh.lx.internal.cloudapp.net> References: <20200203050313.69247-1-boqun.feng@gmail.com> <20200203050313.69247-4-boqun.feng@gmail.com> <87d0av20nj.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d0av20nj.fsf@nanos.tec.linutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 03, 2020 at 03:41:52PM +0100, Thomas Gleixner wrote: > Boqun Feng writes: > > /* > > diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h > > index 6b79515abb82..3bdaa3b6e68f 100644 > > --- a/arch/x86/include/asm/mshyperv.h > > +++ b/arch/x86/include/asm/mshyperv.h > > @@ -240,6 +240,11 @@ bool hv_vcpu_is_preempted(int vcpu); > > static inline void hv_apic_init(void) {} > > #endif > > > > +#define hv_set_msi_address_from_desc(msi_entry, msi_desc) \ > > +do { \ > > + (msi_entry)->address = (msi_desc)->msg.address_lo; \ > > +} while (0) > > Any reason why this needs to be a macro? inlines are preferrred. They Making it an inline function will require #include in mshyperv.h, which I was trying to avoid. But now it seems pointless. I will make it an inline in next version. Regards, Boqun > are typesafe and readable. > > Thanks, > > tglx