[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 14/15] x86/hyperlaunch: add max vcpu parsing of hyperlaunch device tree
- To: Jason Andryuk <jason.andryuk@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Dec 2024 13:05:47 -0500
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@xxxxxxxxxxxxxxxxxxxx; dmarc=pass header.from=<dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1733940351; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=12ImO80Zzt0+1Mm+hbsb8wgw1RlNEeGO9yRNMtB0DDg=; b=NjkN3EsY2psVZIammRihAEFuFNhpPgN0lJkrA72OveXkvGNF0jVY3vv0sTcOWW2ZQIcvtXTU0UopdL2+Pt4IL0oWY3hjDegdeQuYvUBd7C9jTbhKkxVVnoNGLERxEJ1/0VB49uYa21fZidsV1feZr7QSUbv8oDujMZB1gpgNvLo=
- Arc-seal: i=1; a=rsa-sha256; t=1733940351; cv=none; d=zohomail.com; s=zohoarc; b=IRzFixlOPDEwGnV06tDo7D/IvhDjwyCUe0KNjVdQDv/js8VexEQzL3iHa6y7VQZndweIggV+hB2kgZVg91tyEAYc1jV1vfs+zn3Q6WgUwpZtpCnCSpxg513P2BJflxf7f5CksFUG0PM/b+zfs0a1lOzROL2hs3/ag6bP2z93BUk=
- 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: Wed, 11 Dec 2024 18:06:03 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 11/25/24 19:05, Jason Andryuk wrote:
On 2024-11-23 13:20, Daniel P. Smith wrote:
Introduce the `cpus` property, named as such for dom0less
compatibility, that
represents the maximum number of vpcus to allocate for a domain. In
the device
tree, it will be encoded as a u32 value.
Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
---
diff --git a/xen/arch/x86/domain_builder/fdt.c b/xen/arch/x86/
domain_builder/fdt.c
index b8ace5c18c6a..d24e265f2378 100644
--- a/xen/arch/x86/domain_builder/fdt.c
+++ b/xen/arch/x86/domain_builder/fdt.c
@@ -197,6 +197,18 @@ static int __init process_domain_node(
bd->max_pages = PFN_DOWN(kb * SZ_1K);
printk(" max memory: %ld\n", bd->max_pages << PAGE_SHIFT);
}
+ if ( match_fdt_property(fdt, prop, "cpus" ) )
I think I forgot to mention it on earlier ones, but I think all these
match_fdt_property() should be chained together with "else if".
Ack.
With that
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
Thanks!
v/r,
dps
|