Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp360932pxv; Thu, 15 Jul 2021 06:06:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgI1VQLNZ4V8gs+BYKN9gtGtzQFnAqeBzOgneSV9sR6/E7hXsE7QVjYQpGk+hRichQJPwt X-Received: by 2002:a05:6402:30af:: with SMTP id df15mr6921010edb.19.1626354373534; Thu, 15 Jul 2021 06:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626354373; cv=none; d=google.com; s=arc-20160816; b=mBB+AnLevofHBKOaWdI5mcQhOmNijthvyealJ3OxbPwMiC208o9wq7l72mrbZy7onz Q15ggUg5Xg8YtQXAZR3uJzkNP7+i8bcRD9DCnansYbiWg3kGt+n2VmvQ5mJmp79pieJF esR0ru7OpSq+lzgYCLFos1NmdneiObt31lBHlUTfyfJ4xnYKbvFsUZ9wknIAIT/JsF62 ARv5VCkHbuqO/BFD6YxWWi5eWwNh9wvLvZxEAEatlzJi4WbmewL32zautqegeCb+fXMJ 6OMCfmf+BV1b0rsh+wzhyyldTfG0STZXqTd4v7N9s+Pb0mb7Y8auNEhzNLE4oIr4+3Vu JCGQ== 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=bJGICSHpYO0mCBny+k842bEvVqLK1SbOw3MzuL2d1yY=; b=JER9hC77BFuFIbmhpbxzmS8Aar1XkIk4hJUe1t9JiTJY19iSMx7ospGLnz8l1UX7o/ 5niInAtwHC/J7iFAysPummzwYY/GQWGJMNKL612VJMUg/vIftlNi4vShLlKNPIKFWYfN itR86mQPG4Q0gqYPdhkU4M6R3r6YFngHriOAVMkAkrAZHFtGhyW5XHohkJ2CVKDJafry WOBpTG848osw4EBo4w3Wen2Y6KPTNV4uCfYfLM7ZgWRw/cAP621vCAKtwbVDLwzixP6V Dre69KNhhbq8LFo61Uib5wQFGb0UxVvakaH6QuE8+MuMKuJRHFMxhgUGLs/VQ9D/ZiHJ Wn6Q== 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 b21si7158387edx.337.2021.07.15.06.05.50; Thu, 15 Jul 2021 06:06:13 -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 S232367AbhGONGy (ORCPT + 99 others); Thu, 15 Jul 2021 09:06:54 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:37684 "EHLO mail-wm1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbhGONGx (ORCPT ); Thu, 15 Jul 2021 09:06:53 -0400 Received: by mail-wm1-f43.google.com with SMTP id y21-20020a7bc1950000b02902161fccabf1so6017091wmi.2; Thu, 15 Jul 2021 06:03:58 -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=bJGICSHpYO0mCBny+k842bEvVqLK1SbOw3MzuL2d1yY=; b=BPHpcpQWaWUT4p/Sm9aN6vUD08D6/OrtldnhWXlrO0QEC9KCWB4SM11uwn39fHtyKf l4187YmtTnanmBBJtJyZ0tAmTQUAMTo9cpvQtQkmtOmh68MFTDlHlH4tuLArcqyiTyNY lfhxt/e2ETfdyv6nWXOJWgkMCjdw+xUb1U5nECUDRTfUA0RibB2YF35n89lY1qF1XW3v 9ZX7janmaMyAxL8IayfPEbBRTs1yglhTEf9AYHhb8dGe72ERfYDYjv0/brCqTWsgwI5i d1UmT15Zn9P2trQz8TZkjeV/sS9cLDrQC91nsBpJ+tBHGG+kY326MjPLGNQyH90o1ui0 Camw== X-Gm-Message-State: AOAM531J9PYDP9uvdkdUCkAoUSdRNSN19s1Yyp5vsvJIpsdwlHOzDLAJ Y/F+BBT4zRasFmy5K6nhOIU= X-Received: by 2002:a7b:c846:: with SMTP id c6mr4464137wml.92.1626354238212; Thu, 15 Jul 2021 06:03:58 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id b6sm8406146wmj.34.2021.07.15.06.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 06:03:57 -0700 (PDT) Date: Thu, 15 Jul 2021 13:03:56 +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 v2 0/3] Additional refactoring of Hyper-V arch specific code Message-ID: <20210715130356.qbmrfnbpqbdaim3j@liuwe-devbox-debian-v2> References: <1626287687-2045-1-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1626287687-2045-1-git-send-email-mikelley@microsoft.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 11:34:44AM -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. > > --- > Changes in v2: > * Fixed problem when building with CONFIG_HYPERV=n > (reported by kernel test robot ) > Thanks for the quick turnaround. I've pushed these three patches to hyperv-next. Wei. > > 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 | 20 ---- > drivers/hv/hv_common.c | 205 ++++++++++++++++++++++++++++++++++++++++ > include/asm-generic/mshyperv.h | 10 ++ > 5 files changed, 226 insertions(+), 114 deletions(-) > > -- > 1.8.3.1 >