Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp229693pxv; Wed, 14 Jul 2021 02:39:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp1Fc+XVJwTDfhseptIQvF/VG6zsbMNT0nL4s8YIdloX/WW9eSpa5e8bltg8zAZ75gxky4 X-Received: by 2002:a17:906:9742:: with SMTP id o2mr11442795ejy.532.1626255588183; Wed, 14 Jul 2021 02:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626255588; cv=none; d=google.com; s=arc-20160816; b=gVjiIo+ohboA7X4+Mgk4+SlZ+VzQr5+6nY3E7/6pg3/l/oI3YcRf3+yR6SoXu16bfW ZQdFFaN1fRal95Ywj+YfqqvGtAAxfH3FPWqkTBQb0jmaEuDMVUnJGvmX3+wqvXmsSyX1 66MRbs+O7CpwO8cDGVUsK+pKSSmMqgYseh3EF8ZcqnzZR48R8swuFZAmBb3ZPcqk7mNn V2RwlcBod+wT75mAox708v7ZAd++IMiiaNXGU7SzvgS6SmrlOmuPfDDwZIIDPwF0iEHW 9dVnf2HJibMIIG4xIsMBC9urtHwtwgq1Q4c97Dy/g4QcGmziC2JqAQvWiVGZVjZRu3/l TGLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pdlAHlD2ZyPGKOx9n47bU66ewrFcmMaH8q4yPw3umtg=; b=yzNcHQbPQZvXU4dzuBBVpQ1muq2Ueo+lqaiEglFWEKXWxZNZUTyRl/1KdzjfqVLTO9 6Oxo8fiBXuWy47AepOxkkeY/6uOP5hZbXlUmfgjck1wOtr9E8eqirZ5nAI2BsGS62Bjc FjdPzZi/5vaoy+UKElCx4N+EhGqkdqO7RO9X3/yjbK4gT6zFwrepVWnIBwl8Etn2hBAq PyT0lPLN7To3y5Vn8o+fAFnWtcvXAlxrYaRKmoUy0VdwSIed1gOPJDjPGeUNR5if4wtw Q6X6oStq9hlpEgdGIEOkStWn90IgJiVKHLF4DFvZen68aSk3SKxiZ3br4BF+DFRgOJKn ejCg== 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 kl18si2033004ejc.160.2021.07.14.02.39.25; Wed, 14 Jul 2021 02:39:48 -0700 (PDT) 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 S238825AbhGNJkF (ORCPT + 99 others); Wed, 14 Jul 2021 05:40:05 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:41845 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238271AbhGNJkF (ORCPT ); Wed, 14 Jul 2021 05:40:05 -0400 Received: by mail-wr1-f53.google.com with SMTP id k4so2370527wrc.8; Wed, 14 Jul 2021 02:37:12 -0700 (PDT) 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=pdlAHlD2ZyPGKOx9n47bU66ewrFcmMaH8q4yPw3umtg=; b=uHezbfts0TlBr5xOzGSipo2npk8KZzJ6fyUk2TpF1vLxo4z4E5WoR96Jm0LiBZZtGk 508pK9J3niwFg0AC1Pn7178Ame6QYMRpxyk8ELfOFvzB0U2DS4aJJJTkgXN0MIUZw6Ku c3Q3KKGsiVS+vkImgcWqkdFZFCnzMvBOifhWY1DL9tvOG3eBHdvptMqCXYlvLIUsMNCa FlckGGyTNtEzdxUwkdkC2ytz7pmN9x0aJon1KN5dWNFSJPCtwO/jpbFGBTBrOYdokivj WcaXKRrwuA+y/T2fKBFz2aONwZ6RsD/pZTcHe32ZcGWYU+FsT+rFOXFScdPfLVWF3O4v Fcug== X-Gm-Message-State: AOAM530bbOS9L6ly0BDG4nEwAVxkoQFUi6ryFctTukGB4YGf2hdZ+nTu w/T5vGa43yCvVt0hFZUZ60w= X-Received: by 2002:a5d:5141:: with SMTP id u1mr11691349wrt.193.1626255431766; Wed, 14 Jul 2021 02:37:11 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id a9sm1858431wrv.37.2021.07.14.02.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 02:37:11 -0700 (PDT) Date: Wed, 14 Jul 2021 09:37:09 +0000 From: Wei Liu To: Michael Kelley Cc: sthemmin@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 0/3] Additional refactoring of Hyper-V arch specific code Message-ID: <20210714093709.v4ersuwmbvtqebat@liuwe-devbox-debian-v2> References: <1626060316-2398-1-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1626060316-2398-1-git-send-email-mikelley@microsoft.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 11, 2021 at 08:25:13PM -0700, Michael Kelley wrote: > This patch set moves additional Hyper-V code under arch/x86 into > arch-neutral hv_common.c where it can be shared by x86 and > and ARM64 implementations. The move reduces the overall lines > of code across both architectures, and removes code under > arch/ that isn't really architecture-specific. > > The code is moved into hv_common.c because it must be > built-in to the kernel image, and not be part of a module. > > No functional changes are intended. > Michael Kelley (3): > Drivers: hv: Make portions of Hyper-V init code be arch neutral > Drivers: hv: Add arch independent default functions for some Hyper-V > handlers > Drivers: hv: Move Hyper-V misc functionality to arch-neutral code > > arch/x86/hyperv/hv_init.c | 101 +++----------------- > arch/x86/include/asm/mshyperv.h | 4 - > arch/x86/kernel/cpu/mshyperv.c | 24 ----- > drivers/hv/hv_common.c | 198 ++++++++++++++++++++++++++++++++++++++++ > include/asm-generic/mshyperv.h | 10 ++ > 5 files changed, 219 insertions(+), 118 deletions(-) > Applied to hyperv-next. Thanks. > -- > 1.8.3.1 >