[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MINI-OS PATCH 10/19] e820: use special type for software reserved memory


  • To: Juergen Gross <jgross@xxxxxxxx>, <minios-devel@xxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Tue, 8 Jul 2025 17:31:38 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+VTuvi/1iVG24eOeiUxjBhbanE8EmZdneHeCPHZ28Nc=; b=K/pgwV+zFP8u+19YuUUqnuBVdqt4BmRQmp+1OgmduwteKIw8dUo7bPu5rQkInSsb6BpjG3UJsnivwqn83p916Lcp3YR52WddaZJ/DHS+tXn0rtKiW3M6J2Lw87xkUeursgAyTWp3QiQ/CiuuRbQrQEwNk+qnwzF+6oVTdWyv5/6ZuqqeNIvfVycZPK6HhzG4bl/+qFk77ziA7SH5zJd0rHdJrUPkgZIGzU4cNY8LlA3vaupDtNnwie5Q2lmLj1aCo45IGjxjItLRqp/jknl53qNgfIrGUI5d1Zg3JtzvFVf4iJZ4nOpioqfbCPJWhtbuxc0FKmCK/To8MBkLvK7w7A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eJFIjPJfNRRYnlqeIBv6Fy5RrgMGxtYTmlHnM9dD8aBW8OaZ+NgchMFBKCfe26rrncS78o5CYIeozNz1Xq5t/AhOpF/rIcXLhCfe+uXWlc6McEMgnSaM+YqSyrBHIpWXBsv3HhitDdklUDk9O0dpLrH6oMLG9v3r8Yx1a/RMFCAHehkPCVxWu/o2p01GlmIj9zoz/KwN1n98OCepIPkh2guxCUZk7+XewLXl3bJYNB8/5IAksAobmfUjgR8d8q1HHeYIwBhuybqoJvu+bamDaazEPNftf9RcqiJcHFILmbezCcyxsxvterfmXuPxFEPfk6HncsIInTczwN5vChDHWg==
  • Cc: <samuel.thibault@xxxxxxxxxxxx>
  • Delivery-date: Tue, 08 Jul 2025 21:48:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-07-02 04:12, Juergen Gross wrote:
For memory areas used to map foreign domain memory Mini-OS is using
the type E820_RESERVED in the memory map today. This is causing
problems with kexec, as the new kernel should not see those areas in
the memory map. Unfortunately the sequence of actions for calculating
the size of the memory map and the removal of those reserved areas
can't easily be adjusted to do the removal first, so another way must
be used to avoid passing those reserved areas to the new kernel.

Instead of using the type E820_RESERVED, which might be used for other
pages as well, just use a new type. Areas with that new type can
easily be filtered out when building the memory map for the new
kernel.

Introduce the type E820_TYPE_SOFT_RESERVED with the same value as the
Linux kernel is using for the same purpose.

Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.