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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 27A15EE3695 for ; Thu, 12 Feb 2026 16:21:27 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1229473.1535422 (Exim 4.92) (envelope-from ) id 1vqZRQ-0006GG-TA; Thu, 12 Feb 2026 16:21:20 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1229473.1535422; Thu, 12 Feb 2026 16:21:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vqZRQ-0006G8-OE; Thu, 12 Feb 2026 16:21:20 +0000 Received: by outflank-mailman (input) for mailman id 1229473; Thu, 12 Feb 2026 16:21:18 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vqZRO-0006Fi-O2 for xen-devel@lists.xenproject.org; Thu, 12 Feb 2026 16:21:18 +0000 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [2a00:1450:4864:20::42f]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id db408425-082e-11f1-9ccf-f158ae23cfc8; Thu, 12 Feb 2026 17:21:16 +0100 (CET) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-4376acce52eso35131f8f.1 for ; Thu, 12 Feb 2026 08:21:16 -0800 (PST) Received: from fedora (user-109-243-67-101.play-internet.pl. [109.243.67.101]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43783e5c635sm13938426f8f.37.2026.02.12.08.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Feb 2026 08:21:15 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: db408425-082e-11f1-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770913276; x=1771518076; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=S+RDwcZ52Pc0XIKzkhWeYooteWh5Au4849rOoBLYTrs=; b=RSugHp3Ra4Vd+t/5xMcevkKQbme2DFy3/CweYTAyoMJm15CpzT1QyTOS39fbR+scch R1YyVMpBsW5zdfRy78zvyxb8ve3EZCegPJZxijCSkIsJn4syJdOfyhY1NtG61VqeXxRT ttabVgr1Q/N3HRwbBL5ZrTTi2pkXDrkh6S9uS1ZRGvPDLPJtUbwauK+Su8JlsRhUi8vz AnzEFzgBaVolHiKN9UL+ZKNZVhIDaHdSk+pGJeLC3QRGMq8RmmaZ8+6oLmi2kLd/GrsW zzC2XGU/WMOGz9xLAPK63s+zJtubSMw9//VYRcd2HGx4ZU/bwlhZ8U3NypcHh32aoE8D u+Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770913276; x=1771518076; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=S+RDwcZ52Pc0XIKzkhWeYooteWh5Au4849rOoBLYTrs=; b=ZSsPtdlQlrS34Ca0ogShYBPg62pywoFCxl2YzxFhKcrpkK2UF7/kFxuHqLIRi0sSLD MR3z1dtGrlg+4Qh69PYNuNtY4UV8DdsixuSxua3GW1cSqQYFHihgbSyFZ0IW1/S96YN0 MQfmbpmzLzLZvlAYTtRTHGeGhRZCDTJgR2pqLZ5Qvs3zQ5mZ2wPlOiQrswvCiax73JQU JZlQfZ01lpzossvmAyG85zK1TmyfI7flNH5L1QgSi1p+VxEtvxLrh1n6yKfHspn/FozT bJ7jM8C/Ih1teh1NqhDnou5TNIrvnNhUBsIb4t6n4Lk255Zh0lNGndjbjmsswNRXoXoV 9gQQ== X-Gm-Message-State: AOJu0Yx262THOM0W1EGHYdXJN9D8eacvJk/GVXiG85OQBvaIA4/6D76V C73AOExEyAjTfsNCyA46W9LcnuZ4fiS9AoB1vRsxAyZxVAAW16Y37uywYmW0qVdk X-Gm-Gg: AZuq6aIS52vL0GunvUByEUzEO6TFxVlKIkVSgQxjhzqEVe8s6HIO3J5etLtdURIdKcx Xfk0+JLJWR7w5kdy/mQb36nZaXIWPNDxvrK3ifx+tUV1yxZDKbqwBdIwsHVBnssAKmQc4Uksjya pbi7Wgdh3KrI+tFpoA2ws6MkWc43QRXo7MeiBeS/jFPF5eBRg5EhdjX4sNhgy8oBGMhcrgxby6T f3Rws7abhDte+uQ2wrAEk7siahwt/HXSk3D7oANwztAmPoRHL01wVN2hI2Gk7ylcWltjAOThwOQ JvutAWjXEHG+V3AWzXxcAVecffnNhvqZTiJk7fOrCPJbyg6A2N+l9BAqS58U4SYS1MpGkhGeHrn kpr3K6kIWKFbMlAE6BJS6yyOPtTgvS4DDlftfCIFT6EWVVwmfaV7PXcS9L6gaiHlousmu7GLIya L/XgsUfXMPB5Wh242Y1DGKvnDtbDGfe9OIdO/xMfdBtYpUOkCiogGw/vwK1laf8akKJg== X-Received: by 2002:a05:6000:220d:b0:430:fd84:3175 with SMTP id ffacd0b85a97d-4378f165d49mr5348442f8f.38.1770913275672; Thu, 12 Feb 2026 08:21:15 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Romain Caritey , Oleksii Kurochko , Alistair Francis , Connor Davis , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH v1 0/6] RISCV: enable DOMAIN_BUILD_HELPERS Date: Thu, 12 Feb 2026 17:21:01 +0100 Message-ID: X-Mailer: git-send-email 2.52.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Introduce necessary things to enable DOMAIN_BUILD_HELPERS config for RISC-V. Generally it is indepenent patch series from [1] and [2] but depends on which patches will go first it could be some merge conflicts. At the moment, patch series is rebased on top of [2]: staging -> [1] -> [2] -> current patch series. [1] https://lore.kernel.org/xen-devel/cover.1770650552.git.oleksii.kurochko@gmail.com/T/#t [2] https://lore.kernel.org/xen-devel/cover.1770739000.git.oleksii.kurochko@gmail.com/T/#t Oleksii Kurochko (6): xen/riscv: implement get_page_from_gfn() xen/riscv: implement copy_to_guest_phys() xen/riscv: add zImage kernel loading support xen: move declaration of fw_unreserved_regions() to common header xen: move domain_use_host_layout() to common header xen/riscv: enable DOMAIN_BUILD_HELPERS xen/arch/arm/include/asm/domain.h | 14 -- xen/arch/arm/include/asm/setup.h | 3 - xen/arch/riscv/Kconfig | 1 + xen/arch/riscv/Makefile | 2 + xen/arch/riscv/guestcopy.c | 112 ++++++++++++++++ xen/arch/riscv/include/asm/config.h | 13 ++ xen/arch/riscv/include/asm/guest_access.h | 7 + xen/arch/riscv/include/asm/p2m.h | 11 +- xen/arch/riscv/kernel.c | 156 ++++++++++++++++++++++ xen/arch/riscv/p2m.c | 34 +++++ xen/include/public/arch-riscv.h | 8 ++ xen/include/xen/bootinfo.h | 4 + xen/include/xen/domain.h | 16 +++ 13 files changed, 358 insertions(+), 23 deletions(-) create mode 100644 xen/arch/riscv/guestcopy.c create mode 100644 xen/arch/riscv/kernel.c -- 2.52.0