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 70014CD4850 for ; Fri, 22 Sep 2023 18:53:35 +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=QjUPSwaDTjXF9X0u/dI0PG5ey8GDIaylLcwyDUHJzQg=; b=Wmcp/CbhqOF9Ty 91gZ0lsSsz0e0W24IiS5fXy2B9d6+OYKQVRT8MkwKiQDP3LeF/HGk7DcX5rQSZdoFT16rMAca0w4S 3a71g7t5ucHqmn+v5QNZYdXaTqin1IPlUdgSczczdZ24P1ub1ByJkqFijMQNeD69C5gEqHd5/8bUy SVt+PhMq5lzf3L3mS6YToJXgS9LLhfWMHDLTeexmyJDzkA2L9MJT8+X0q+EbPo1IDmB0Si8E8nedC z0K3rN8OZRGLGIPioFPovwahoKe9How1NeMi1aGQqGVuxD6ID2ykAkYaDrh9WLOtcN6yypxgEc8G8 9PdtsNLZ0B3jWaP3B3dA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjlH5-009fSP-33; Fri, 22 Sep 2023 18:53:11 +0000 Received: from mail-pf1-f175.google.com ([209.85.210.175]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjlH2-009fRN-2V for linux-arm-kernel@lists.infradead.org; Fri, 22 Sep 2023 18:53:10 +0000 Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-690f7bf73ddso2267581b3a.2 for ; Fri, 22 Sep 2023 11:53:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695408786; x=1696013586; 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=/wLBzChvWAaHXw0NzmtTui405IC0LIuO1ZABr92XOq4=; b=g7H5GYqLZGmwHOSZx0NyaqsxvRdHbulfz5s4Zejxe0QBklNIuDKMs/awHW2AVUdNrn DhKANlihKRSpG0CfifSn9/1pVGT+uTYy/KpbHihF+mkhImcFIvrieAHh3z5/jskozhst wqNu7we2hCD6OvJy3v1dNv4h8AgKPNPZpgjL76duGzhY/jYpYUp4yfM4yCmopEF7DTjK 4M96KWBMc4ypDMRuIloQjOtC1oejH37Ets7BOtOw+nA3BWhVh2pgEr2TEuWvvjx064PK OVYmsCM3BwF7im8bWxjbq+/rRAdjZzzTQZT+ZfgoFtcC2uBwjiyHCU2SnUcr+Z/kyL/D xrnw== X-Gm-Message-State: AOJu0YzftYEDyNbxd9Dry8d84gtQ+nevXCVRAxirCxNKnJO4jWZTxetS j8lc+S+bxyZ6J38QqKW+MSY= X-Google-Smtp-Source: AGHT+IEjoBVa60+ZQKSjWQpIoCIesiRffPKHRCzi43aByoaWcHWH1XO1QyyoWxdGTOA8xff1FjOW5A== X-Received: by 2002:a05:6a20:3d21:b0:13d:a903:88e6 with SMTP id y33-20020a056a203d2100b0013da90388e6mr418305pzi.48.1695408786554; Fri, 22 Sep 2023 11:53:06 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id h19-20020a633853000000b0057c3b21c01dsm2276180pgn.49.2023.09.22.11.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 11:53:05 -0700 (PDT) Date: Fri, 22 Sep 2023 18:52:22 +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, patches@lists.linux.dev, mikelley@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, gregkh@linuxfoundation.org, haiyangz@microsoft.com, decui@microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.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 v3 01/15] hyperv-tlfs: Change shared HV_REGISTER_* defines to HV_MSR_* Message-ID: References: <1695407915-12216-1-git-send-email-nunodasneves@linux.microsoft.com> <1695407915-12216-2-git-send-email-nunodasneves@linux.microsoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1695407915-12216-2-git-send-email-nunodasneves@linux.microsoft.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230922_115308_816895_FB30E27C X-CRM114-Status: GOOD ( 14.24 ) 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 Fri, Sep 22, 2023 at 11:38:21AM -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. HyperV -> Hyper-V. I can fix this up when I apply this patch. > > Signed-off-by: Nuno Das Neves Reviewed-by: Wei Liu _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel