From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B010422C6C0; Fri, 6 Dec 2024 22:22:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733523739; cv=none; b=UjNZIZnJ9wUmW8sDNQoWoRMrTJvUsuk9e/BMprEikd7uaAqqwAW/sMQn09YPWgfSIqTsV2HEN/8EBgKUr5hZuzOFBxMdX9TwS26qgt6RHCNLTu4aSHPXoTgp6TMm5p0rILNjAFXYGb/nfpKuC/sCBzf96FPVjZ4roFHzR0CIVP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733523739; c=relaxed/simple; bh=y3T/ZExCsSbWQsd4ybXZbB2mzKRbXZ5yYWRziY1x6LA=; h=From:To:Cc:Subject:Date:Message-Id; b=scU86iq8grfKjqYDvV5/T7vr3UxKGyGzIdFb8UJ4iC17Fs0LSeC2mJu2DfEUL5HwHQKWboJRIjiV92xRXsNDjlEgnTZ/IA9BCjK/dO8SjQ4D+dLMiLQkqrP702/UUYBwohCWZyvJx7pCFjUl3kaVUcKRUsJm6ocGobd+yq++/w0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=H/npKA8R; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="H/npKA8R" Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 1F73B20ACD7B; Fri, 6 Dec 2024 14:22:17 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1F73B20ACD7B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1733523737; bh=1xuq5MaOVXzbbaRlB1GdkyoZlSh1Oy8sKqF7zlVU32A=; h=From:To:Cc:Subject:Date:From; b=H/npKA8Rnh47xTBuMa+7BCp4sE2qXydsl8gaqrpBn92P5i6aocUMlsuCaYEs5RQvd 3CmReQkLH6fWI9+iBIa/YVtntG1IwD2BAz/ZtUPwWjKUioRxJoL/apEkGWz8oGQJd6 rDWOJcfhoixugN4fgn+ehTaiVqjg7X/ZGzyQDMu8= From: Nuno Das Neves To: linux-hyperv@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, mhklinux@outlook.com, decui@microsoft.com, catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, arnd@arndb.de, jinankjain@linux.microsoft.com, muminulrussell@gmail.com, skinsburskii@linux.microsoft.com, mukeshrathor@microsoft.com Subject: [PATCH 0/2] hyperv: Move some features to common code Date: Fri, 6 Dec 2024 14:21:45 -0800 Message-Id: <1733523707-15954-1-git-send-email-nunodasneves@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: There are several bits of Hyper-V-related code that today live in arch/x86 but are not really specific to x86_64 and will work on arm64 too. Some of these will be needed in the upcoming mshv driver code (for Linux as root partition on Hyper-V). So this is a good time to move them to hv_common.c. Signed-off-by: Nuno Das Neves Nuno Das Neves (2): hyperv: Move hv_current_partition_id to arch-generic code hyperv: Move create_vp and deposit_pages hvcalls to hv_common.c arch/arm64/hyperv/mshyperv.c | 3 + arch/x86/hyperv/hv_init.c | 25 +---- arch/x86/hyperv/hv_proc.c | 144 --------------------------- arch/x86/include/asm/mshyperv.h | 4 - drivers/hv/hv_common.c | 168 ++++++++++++++++++++++++++++++++ include/asm-generic/mshyperv.h | 4 + 6 files changed, 176 insertions(+), 172 deletions(-) -- 2.34.1