Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4405405ybl; Mon, 3 Feb 2020 18:23:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwJJlu2cRZiI0I4c6ztw1BgmKsUyZPOmIThNv3PnTaRdFRfW2Dh8LZit3tyIJ+tBJ+7Tkii X-Received: by 2002:a9d:1284:: with SMTP id g4mr19744827otg.207.1580783013876; Mon, 03 Feb 2020 18:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580783013; cv=none; d=google.com; s=arc-20160816; b=0jHfXoqpsEASzmy/Gp9rztyHgJcveGjdWW6h3ZpvjXPFBG+5qneHDci5pzV/ZJHehP SqQv/5QY3AoZT1LVOQPsrZVERRH/R2rb3zLu6mkXVD4tnA5QeV2lRjqpDE+TUQ5gNfZI chO2DAbSQupCQ4O3uOAdU4zkx2+0pQaNx64UfEEUSOEQThTq0KCV7ignQ1a56/nFVGhl P68Dt5o+HAFQkL+rUDV8GOQkJdc3lV3F423nBXvXEBZlZ0IdlkrKTPmHW0aKaaZMvSgO LYnqw5d4mesfMX7vmcIb1i/X+5mWVq9Ir10zJy9qiHERfSe4wd2gR2wawp1ZlzNHqh2S gvGQ== 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=+7bNDkzYQObh2nR2oGbuE4Dpd0rtrc7Ng0f3Nsbx0is=; b=wbT321RTiBmQPwxxxNa6tsFnVpFMA6U/VxSfRNAoifUpQS6eV5PzzeD1FsBUDDe4KK Kj7Kxm7ejYJZD18FXXItv/AvpVRtX1LRx6H45HiKd1vttzhPLP/uc595Z4mkH2DTF6Qa lsF/TqW/DYQpQYXSDZHwTaKrCakLIAxIUdKhoqr2zOdfCLUKlssANbF41fHFGUeltHwM zrGSxBwvIbaaUbO/Mx1vJ1uSiRplF8iZtQNPXGivo+nd6xrL14y4lNDt4hj3LwOYX3Bh ITvMoAPWI8+cUOLBxLp3CMPFrmiO72f7t6I53i81oTQb3wIehDRoPoB3fNWXVP9z2MDx 8hTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="m5yVxar/"; 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 p14si11670351ota.71.2020.02.03.18.23.21; Mon, 03 Feb 2020 18:23:33 -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="m5yVxar/"; 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 S1727004AbgBDCW3 (ORCPT + 99 others); Mon, 3 Feb 2020 21:22:29 -0500 Received: from mail-qv1-f66.google.com ([209.85.219.66]:40477 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbgBDCW3 (ORCPT ); Mon, 3 Feb 2020 21:22:29 -0500 Received: by mail-qv1-f66.google.com with SMTP id dp13so7856689qvb.7; Mon, 03 Feb 2020 18:22:28 -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=+7bNDkzYQObh2nR2oGbuE4Dpd0rtrc7Ng0f3Nsbx0is=; b=m5yVxar/U8syjDQWSw87By9g8yzUYQf7wttomeou+XraVPd7q6Unrpdz2RlocmovZ5 GYkArBneH9e1IFHBW1qKfqDyvotGHGbmOKl8xpHnr0kwVHNcXUM+NfEYkVIHjBOe/jpA lvgXe39I0B6MW1MRpvSwFKnX2W/gZxF55LS/362DdvVw6FHBbnD8G3Xu1HUKgww5eCYQ vqZis0NnSNY36O97WGO9Kemk4Oo11iGkz6o4w/hMxfpEJ+PE61okSoFPwckx1i756vhW FKN5HD3/G5itpv4x2bbKjGKUCQKMMQulHQW7HGu5JcPCMa5hGp4A03ii346QQKUxMKeq QWQg== 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=+7bNDkzYQObh2nR2oGbuE4Dpd0rtrc7Ng0f3Nsbx0is=; b=qUmVcNZtwTDa6Li5YL3TtU8JmExoSjFSUiDMq065TBxO/NRhtamF5QtcMA+ha1e48T KeqaLc8mG6Z/kH3g+qwdnI7a0wNNYMS7Yz1VY9amVCTgoYR0YsEe2BaT+TvH90ZqCdQJ 8IjJjCqN6Y390cGQB+bFSMTnKO1S85epSvjR2hXDy5dQgss1z6pH+1u9x5f5Su2RZZR5 /sNSRbGrMu5xuy0+kn6vVX6iWUK5+qMZkmR4qxRUpZkiWwGApXzSlaf4eLdxUD/nWisc p07TYHdXn1Jw+dKK6+W5u+Hn9qJqHYC/KKeWnVGjTlL+DdTRa9+nIrYXSPqcttli6oMP DZOA== X-Gm-Message-State: APjAAAWUiDtPzLmSrJi47LS/yhNjafXp/Ir3qC7oXFtdl4OF5QpHkF+7 WC9gSaa3U7+WXVR9hl1xe2I= X-Received: by 2002:a05:6214:162c:: with SMTP id e12mr25020577qvw.3.1580782947998; Mon, 03 Feb 2020 18:22:27 -0800 (PST) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id w24sm10923234qts.3.2020.02.03.18.22.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Feb 2020 18:22:27 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 91C6321D26; Mon, 3 Feb 2020 21:22:26 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 03 Feb 2020 21:22:26 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgeekgdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucffohhmrghinh epihhnfhhrrgguvggrugdrohhrghenucfkphephedvrdduheehrdduuddurdejudenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsohhquhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeiledvgeehtdeigedqudejjeek heehhedvqdgsohhquhhnrdhfvghngheppehgmhgrihhlrdgtohhmsehfihigmhgvrdhnrg hmvg X-ME-Proxy: Received: from localhost (unknown [52.155.111.71]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A34F30605C8; Mon, 3 Feb 2020 21:22:24 -0500 (EST) Date: Tue, 4 Feb 2020 10:22:22 +0800 From: Boqun Feng To: Andrew Murray Cc: linux-pci@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sasha Levin , Lorenzo Pieralisi , Stephen Hemminger , Haiyang Zhang , x86@kernel.org, Michael Kelley , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Bjorn Helgaas , Andrew Murray , Thomas Gleixner , "K. Y. Srinivasan" Subject: Re: [PATCH v2 1/3] PCI: hv: Move hypercall related definitions into tlfs header Message-ID: <20200204022222.GI83200@debian-boqun.qqnc3lrjykvubdpftowmye0fmh.lx.internal.cloudapp.net> References: <20200203050313.69247-1-boqun.feng@gmail.com> <20200203050313.69247-2-boqun.feng@gmail.com> <20200203092525.GC20189@big-machine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200203092525.GC20189@big-machine> 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 09:25:25AM +0000, Andrew Murray wrote: > On Mon, Feb 03, 2020 at 01:03:11PM +0800, Boqun Feng wrote: > > Currently HVCALL_RETARGET_INTERRUPT and HV_PARTITION_ID_SELF are defined > > in pci-hyperv.c. However, similar to other hypercall related definitions > > , it makes more sense to put them in the tlfs header file. > > Nit: please keep the comma attached to the previous word - even if that > means you need to move the word with it to the next line to maintain line > limits. > > > > > Besides, these definitions are arch-dependent, so for the support of > > virtual PCI on non-x86 archs in the future, move them into arch-specific > > tlfs header file. > > > > Signed-off-by: Boqun Feng (Microsoft) > > --- > > arch/x86/include/asm/hyperv-tlfs.h | 3 +++ > > drivers/pci/controller/pci-hyperv.c | 6 ------ > > 2 files changed, 3 insertions(+), 6 deletions(-) > > > > diff --git a/arch/x86/include/asm/hyperv-tlfs.h b/arch/x86/include/asm/hyperv-tlfs.h > > index 5f10f7f2098d..739bd89226a5 100644 > > --- a/arch/x86/include/asm/hyperv-tlfs.h > > +++ b/arch/x86/include/asm/hyperv-tlfs.h > > @@ -376,6 +376,7 @@ struct hv_tsc_emulation_status { > > #define HVCALL_SEND_IPI_EX 0x0015 > > #define HVCALL_POST_MESSAGE 0x005c > > #define HVCALL_SIGNAL_EVENT 0x005d > > +#define HVCALL_RETARGET_INTERRUPT 0x007e > > #define HVCALL_FLUSH_GUEST_PHYSICAL_ADDRESS_SPACE 0x00af > > #define HVCALL_FLUSH_GUEST_PHYSICAL_ADDRESS_LIST 0x00b0 > > > > @@ -405,6 +406,8 @@ enum HV_GENERIC_SET_FORMAT { > > HV_GENERIC_SET_ALL, > > }; > > > > +#define HV_PARTITION_ID_SELF ((u64)-1) > > + > > #define HV_HYPERCALL_RESULT_MASK GENMASK_ULL(15, 0) > > #define HV_HYPERCALL_FAST_BIT BIT(16) > > #define HV_HYPERCALL_VARHEAD_OFFSET 17 > > diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c > > index 9977abff92fc..aacfcc90d929 100644 > > --- a/drivers/pci/controller/pci-hyperv.c > > +++ b/drivers/pci/controller/pci-hyperv.c > > @@ -406,12 +406,6 @@ struct pci_eject_response { > > > > static int pci_ring_size = (4 * PAGE_SIZE); > > > > -/* > > - * Definitions or interrupt steering hypercall. > > - */ > > -#define HV_PARTITION_ID_SELF ((u64)-1) > > -#define HVCALL_RETARGET_INTERRUPT 0x7e > > - > > Reviewed-by: Andrew Murray > Thanks! I will fix the comma thing and add your Reviewed-by in next version. Regards, Boqun > > struct hv_interrupt_entry { > > u32 source; /* 1 for MSI(-X) */ > > u32 reserved1; > > -- > > 2.24.1 > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel