From nobody Thu May 2 02:09:38 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1610982014; cv=none; d=zohomail.com; s=zohoarc; b=TTcRrW4FOiR8rpkzyFfbH40vW2OXlAKPhyprs0eqWcoD2WI+2oLNrkfVVT3+0JlC6RwBqMmo3nwe6w7Us+m285wDFMlAPDfeDmrIx7td94j/ZNn/MgPLQCKN5BtBuc80ON/GQZxQxoWUC0O/jvCvQQphxJs4GRPB2gqqPUVI3wc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610982014; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=SjkpoyzswI+3+3ZncA2dTfNO6OpxJXLo9U+gJ6cPnqE=; b=dzUBHGdteAuQZOeqmiV5jqgfoBGIGXn0WiVHW3imi2YeqgTzxna1opVg6a38pdms83/aks20zZgiJIbrnIvLK3//YCbDYZMX0JDWkuD4VAt4qNTF6K6tEsYPKbeaKU5tb9rC8bnL57Opz+iny4WBQLq9t/wBxUOLW2Ov24V0fB0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 161098201456499.69408481051107; Mon, 18 Jan 2021 07:00:14 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.69706.124906 (Exim 4.92) (envelope-from ) id 1l1W0F-0007L7-UO; Mon, 18 Jan 2021 14:59:35 +0000 Received: by outflank-mailman (output) from mailman id 69706.124906; Mon, 18 Jan 2021 14:59:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l1W0F-0007L0-Qx; Mon, 18 Jan 2021 14:59:35 +0000 Received: by outflank-mailman (input) for mailman id 69706; Mon, 18 Jan 2021 14:59:34 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l1W0E-0007Kv-Qn for xen-devel@lists.xenproject.org; Mon, 18 Jan 2021 14:59:34 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id b6a7a595-b76a-4268-ad05-3419f5e645a7; Mon, 18 Jan 2021 14:59:33 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: b6a7a595-b76a-4268-ad05-3419f5e645a7 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1610981973; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DeRK4mBrNfVpnuKeDUEsIDFq+1coMtOmU4D/ymOXMU4=; b=VLOYqAfmQVBXm5vLBLuEJ6ZxaY58OqjPVhknMj59SiTdX2SOI0JVF2pS u72BlKuKB5wAbYHlKWVuTPBh4eglrFtSP5+6XSgMrCv9IV67AlUGE9eZm 1HynF4/i2hSEvm6kGUflZi4zy2bnpMJ2DdmU83KUrP6+hFsx7M4Rkt178 g=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: FUoNeuo5u4/e58W7VVNEe6/0SOyvPWbQ2tNMU+qhm85C28PXGTTHDymrywit2My/CH6yx+Vkxr gWj9sq3twb1egpn+apJbTGIRHSFqW6npzcm+6uUP6e6Q+mPPudpnfHLGQIr54jHoDNCKhYACHS NszgWSxYiJ0O3UdrEuBzYWIGmExKWInO6gJ5FnMjZvSSnpO6gDmG1RVCQQzcHASiDdybhI13uV P3gOb8dFO4qbHz8kMkENSAS+xrG5PEf/XGX1cmPksGF5jNC0xkBhnKZ7mAq9j4TndAhRGALRrU 2kc= X-SBRS: 5.1 X-MesageID: 35307402 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.79,356,1602561600"; d="scan'208";a="35307402" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu , Stefano Stabellini , Julien Grall , Volodymyr Babchuk Subject: [PATCH] xen/domain: Reposition config copying in domain_create() Date: Mon, 18 Jan 2021 14:59:15 +0000 Message-ID: <20210118145915.15822-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) This is cleanup for two pending series which will copy more data than just flags from config. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Wei Liu CC: Stefano Stabellini CC: Julien Grall CC: Volodymyr Babchuk The series in question are my fault-ttl series, and Michal's Processor Trace series. --- xen/common/domain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/common/domain.c b/xen/common/domain.c index d151be3f36..164c9d14e9 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -421,14 +421,15 @@ struct domain *domain_create(domid_t domid, if ( (d =3D alloc_domain_struct()) =3D=3D NULL ) return ERR_PTR(-ENOMEM); =20 - d->options =3D config ? config->flags : 0; - /* Sort out our idea of is_system_domain(). */ d->domain_id =3D domid; =20 /* Debug sanity. */ ASSERT(is_system_domain(d) ? config =3D=3D NULL : config !=3D NULL); =20 + if ( config ) + d->options =3D config->flags; + /* Sort out our idea of is_control_domain(). */ d->is_privileged =3D is_priv; =20 --=20 2.11.0