From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9C7FC001DE for ; Thu, 3 Aug 2023 01:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=INF8acOkuzqsd6wqo8sRO0Fe384RNLvZ2rjt4fVEeqk=; b=cfxKTT+BUy+Mv8 Z0FHavr+2Wsjfn6AylnQgwdnYyBzsjJZM+W6L30zl5M77oP0/AdBgsZG41Cm9RoR2TsFBdbVu2d/x X+wD68l9nD2leofaWF35vuUxWeVRTIfRwy4TzAjwb1oCHhETZeSmqT52MhC1NVGipgjKlTE5we9+9 WvhD8IwrahdLHRkVAlzMrN7XEepHGwa0XA6XxG40Xve9CmcWzBJ8loX5jG9fXlsqIYbyxsSX25zqH 9tsqYYB6dwRcvhG7L+b4Pq7bhU/x+jwDwGGVFdQULQznJ1CkvLBFeg2OanSJlAc3aVs3LNmi1k9gK ypiojl9db2GDh9JaYugw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRN60-006MO9-2q; Thu, 03 Aug 2023 01:25:44 +0000 Received: from mail-pl1-f182.google.com ([209.85.214.182]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRN5y-006MN9-28 for linux-arm-kernel@lists.infradead.org; Thu, 03 Aug 2023 01:25:43 +0000 Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1bbf3da0ea9so3438235ad.2 for ; Wed, 02 Aug 2023 18:25:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691025941; x=1691630741; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zWBAuG3c06Da9ELH4rE5nxlRVcg2TZcFu5fJ+OOQAks=; b=chJNP+OLziPEyxPQPFZU5BzeKVkWpXxb3VwC15WSGTcIeiuQQppjJpYr9eADMFJOsz Kp+iHfL3jzN7xx9I4Chuncpv0KjProB+NMX2R5/ddLDuGBFP8+PwgcHy8za0IXalvKt3 mkSsbvEtvmmnUEiPs8ans46YhHHND0AbE+4LXbLwGoUAsH100MEak1nHQ0qeDbdsmycd ZdCDmg4brzPK6njnAzq6A2PhGY245xPHTbADLk6VBbabhDBPmML+cotDFxPwBjfUh0+o 5FnaUh1vYhIQ7xvfPUMXS/R2SjkJBikuBD+B/Ewgtmi9w5vAZ6RmT1ZGHgnISxXjABB2 4Jig== X-Gm-Message-State: ABy/qLY6IcalP5gwCfg9mFNadhll0Rm0jeeO0edquAI3wWd6bUNTDKd7 23WwatTrbaN3F+CjhxcV0fU= X-Google-Smtp-Source: APBJJlGg3g/NxUbke1+MzTLDtzvJmK3VM5Kg5CjoArXQVKLrRZlgMjpcmKC82Ectrxe/wO+cgZIZVg== X-Received: by 2002:a17:903:1cb:b0:1b8:2ba0:c9c0 with SMTP id e11-20020a17090301cb00b001b82ba0c9c0mr18130270plh.59.1691025941149; Wed, 02 Aug 2023 18:25:41 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id x16-20020a170902ec9000b001bc39aa63ebsm176829plg.121.2023.08.02.18.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 18:25:40 -0700 (PDT) Date: Thu, 3 Aug 2023 01:25:34 +0000 From: Wei Liu To: Nuno Das Neves Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, mikelley@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, haiyangz@microsoft.com, decui@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, will@kernel.org, catalin.marinas@arm.com Subject: Re: [PATCH 01/15] hyperv-tlfs: Change shared HV_REGISTER_* defines to HV_MSR_* Message-ID: References: <1690487690-2428-1-git-send-email-nunodasneves@linux.microsoft.com> <1690487690-2428-2-git-send-email-nunodasneves@linux.microsoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1690487690-2428-2-git-send-email-nunodasneves@linux.microsoft.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230802_182542_703750_ABE45D22 X-CRM114-Status: GOOD ( 14.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jul 27, 2023 at 12:54:36PM -0700, Nuno Das Neves wrote: > In x86 hyperv-tlfs, HV_REGISTER_ prefix is used to indicate MSRs > accessed via rdmsrl/wrmsrl. But in ARM64, HV_REGISTER_ instead indicates > VP registers accessed via get/set vp registers hypercall. > > This is due to HV_REGISTER_* names being used by hv_set/get_register, > with the arch-specific version delegating to the appropriate mechanism. > > The problem is, using prefix HV_REGISTER_ for MSRs will conflict with > VP registers when they are introduced for x86 in future. > > This patch solves the issue by: > > 1. Defining all the x86 MSRs with a consistent prefix: HV_X64_MSR_. > This is so HV_REGISTER_ can be reserved for VP registers. > > 2. Change the non-arch-specific alias used by hv_set/get_register to > HV_MSR_. This is also happens to be the same name HyperV uses for this > purpose. > > Signed-off-by: Nuno Das Neves Assuming the prior (private?) discussion with Michael led to this patch: Acked-by: Wei Liu _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel