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 B561FC4332F for ; Mon, 20 Dec 2021 16:07:41 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.249853.430261 (Exim 4.92) (envelope-from ) id 1mzLC8-0005Q6-Df; Mon, 20 Dec 2021 16:07:24 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 249853.430261; Mon, 20 Dec 2021 16:07:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mzLC8-0005Pz-9J; Mon, 20 Dec 2021 16:07:24 +0000 Received: by outflank-mailman (input) for mailman id 249853; Mon, 20 Dec 2021 16:07:22 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mzLC6-00055x-LN for xen-devel@lists.xenproject.org; Mon, 20 Dec 2021 16:07:22 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id e85c9543-61ae-11ec-9e60-abaf8a552007; Mon, 20 Dec 2021 17:07:21 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id EA8421F388; Mon, 20 Dec 2021 16:07:18 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BD02A13D6B; Mon, 20 Dec 2021 16:07:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id bXrPLDaqwGEUTAAAMHmgww (envelope-from ); Mon, 20 Dec 2021 16:07:18 +0000 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: e85c9543-61ae-11ec-9e60-abaf8a552007 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1640016438; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=37GUwbt+l3ZVL4jQWufvayPNooM23G4fn2Y2pwcBTd8=; b=pLzh4Dw4DOnfMVbr2vm6cwzAB9IE033KwtlpQtMwAiHPpjGIAL9C6eSiYLHE1NiNhCz2nZ k9Fjs5T6aLd3cwRfDrvYZneMm4qbidd3Xsvi+DdtIvyQdodSh+4aMZeiIdd6n7PYWdVzc+ q0/izJaMAdQYN4JeLk10qnTZaNT9KY8= From: Juergen Gross To: minios-devel@lists.xenproject.org, xen-devel@lists.xenproject.org Cc: samuel.thibault@ens-lyon.org, wl@xen.org, Juergen Gross Subject: [PATCH v2 00/10] mini-os: add missing PVH features Date: Mon, 20 Dec 2021 17:07:06 +0100 Message-Id: <20211220160716.4159-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Mini-OS in PVH mode is missing some features, especially in the areas of ballooning and grant tables. With this series I am able to run Xenstore stubdom in PVH mode. Changes in V2: - multiple comments addressed Juergen Gross (10): mini-os: split e820 map handling into new source file mini-os: sort and sanitize e820 memory map mini-os: don't assume contiguous RAM when initializing in PVH mode mini-os: respect memory map when ballooning up mini-os: don't repeat definition available via header file mini-os: add memory map service functions mini-os: move x86 specific gnttab coding into arch/x86/gnttab.c mini-os: add proper pvh grant table handling mini-os: prepare grantmap entry interface for use by PVH mode mini-os: modify grant mappings to work in PVH mode Makefile | 1 + arch/arm/mm.c | 11 +- arch/x86/balloon.c | 4 +- arch/x86/gnttab.c | 109 +++++++++++++ arch/x86/mm.c | 121 +-------------- arch/x86/setup.c | 8 +- balloon.c | 33 ++-- e820.c | 376 +++++++++++++++++++++++++++++++++++++++++++++ gntmap.c | 125 +++++++++------ include/balloon.h | 5 +- include/e820.h | 11 ++ include/gntmap.h | 1 + mm.c | 7 +- 13 files changed, 615 insertions(+), 197 deletions(-) create mode 100644 arch/x86/gnttab.c create mode 100644 e820.c -- 2.26.2