[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFCv2 05/38] x86/hyperlaunch: move dom0 cpuid policy behind capability check
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 May 2025 09:17:11 -0400
- 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=1747315077; h=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=iHVvaVi4MhX0h9Mwr6nanEd/O/4lHAF3yTF25jOYNb8=; b=H6r7318QdVqAqxRxFqjkpFAIdUWuax8OzHSzrS57PHJzBKNMlmd3gPX+4fg2k6SW/+bYVWU3ZcHUDCnn3v1ozsLwe/Tjl03orptP1KU+y15cjKBZMF3F5x4tlZVFBNXhjoQUS/Fj39u/LW6vFM2yIeWjSMRQPOF4pbWi/let9r4=
- Arc-seal: i=1; a=rsa-sha256; t=1747315077; cv=none; d=zohomail.com; s=zohoarc; b=VN/R52rVkWfwpPWfVt6XrX9JArsO+VWgXu6R734zNdSNBU0QSw6eBnDnEAzQNTh9wfq3xeVnJq4Bv+zll41AAMvlicUcajSUtOWHgRSOnR1eStBT6IJX9A6EChO3IPK6SjK2uVhWOMpJjLSL1i6/GErchJ9D0jtrdZmOPJKHNgE=
- Cc: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, jason.andryuk@xxxxxxx, stefano.stabellini@xxxxxxx, agarciav@xxxxxxx, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 15 May 2025 13:18:48 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
To incrementally convert create_dom0() into being a generalized domain
construction function, move the dom0 specific cpuid policy behind the control
domain capability.
Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
---
xen/arch/x86/setup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index 409630089d29..298e27848dda 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -1059,7 +1059,8 @@ static struct domain *__init create_dom0(struct boot_info
*bi)
bd->d = d;
- init_dom0_cpuid_policy(d);
+ if ( has_dom0_caps(bd) )
+ init_dom0_cpuid_policy(bd->d);
if ( domain_vcpu0_create(bd) == NULL )
panic("Error creating %pdv0\n", d);
--
2.30.2
|