[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 30/44] x86/boot: convert dom0_construct_pv initrd param to struct boot_module
- To: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Tue, 8 Oct 2024 14:30:52 -0400
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=apertussolutions.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=apPzJ4F/+9MDmm63nNvLM8UTcZm7W8vUUcFUquf+DTg=; b=kSCnlKX40UWAVey5VY/iK+eEYaQBUxtZI2jAiACPyLyXdDhg1rRcng0KA/3/FV6ohbxFyEu7gaNzjn4dboda3TGwdWheu6ElANBd78yzpANxrbQxVkiRf6twbsm7YidQxhi5EgIBnkH6qeBgdVfKpedwYsmmCBpSGO7E3AvZBj4EgOQ5i9cXNhs5PU/wzN9cA0RQ02Y59622UOAcfNvGGvyiwLMFrOAiIFu5td8I6eWvfLQzLNVyQPkXUX7UjCoaJAjJ6PH/pYLLCx0fK4n5S15QxfBAWL5OXVqMSoW0DyPE2GVMtDWzNgm9qJf/7UxoW08T6smmd6SEjcQWmydYZQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MI87hFllK+d23o2f+RB8Eb6fUXcXXe9m5kCuWIh/h4gUTLJmjae79Lffy+3S6hZ3MF56zwoCmi4xUS26vXcNndqlpD8ywNsXCGrcX/FsOOUNr1FXjJH7RslZF+fmQS9DLyWqc1MKTWAGRP2bgzGelols5uSo9LY9Ea+wHogB5dW5zPviVTPcZ31d1zUtTUdFFs4Hj0B3lK5XIVVaO52LyaCzkYOBtFhVK6p6LX9e47yhVUcB2iykWDL3oUpYGPeQgqJvqWG1gCjKdtOgrkuXuj+Mj2L++IobY1MuraRy2gbG/5sxl3yAmQUAeGPD8YVWzLgHbS769UPbqq8mcW0Biw==
- Cc: <christopher.w.clark@xxxxxxxxx>, <stefano.stabellini@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Tue, 08 Oct 2024 19:32:00 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2024-10-06 17:49, Daniel P. Smith wrote:
This changes the type for the initrd parameter of dom0_construct_pv to be struct
boot_module. This conversion requires several adjustments throughout
dom0_construct_pv
to account for the type change. Removes the usage of early_mod field for
ramdisk module.
Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
diff --git a/xen/arch/x86/pv/dom0_build.c b/xen/arch/x86/pv/dom0_build.c
index 7b6afe64d799..16b8c1e40998 100644
--- a/xen/arch/x86/pv/dom0_build.c
+++ b/xen/arch/x86/pv/dom0_build.c
@@ -367,7 +367,8 @@ static int __init dom0_construct(struct domain *d,
unsigned long nr_pt_pages;
unsigned long alloc_spfn;
unsigned long alloc_epfn;
- unsigned long initrd_pfn = -1, initrd_mfn = 0;
+ unsigned long initrd_pfn = -1;
+ mfn_t initrd_mfn = { 0 };
= _mfn(0);
With that:
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
unsigned long count;
struct page_info *page = NULL;
unsigned int flush_flags = 0;
|