From nobody Fri May 3 16:13:14 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; 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=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1609883948; cv=none; d=zohomail.com; s=zohoarc; b=lJ3hPFDB7Cpty+fiHIdgCFh85SUInD68LCLV3hFh/0Ji9/WUCAV/JphlSgLu7/9rN6rGuUl/5OBCL+59pqa/Ycn02xbaV2137ppDI49P4PQklnJumsHUbyT+jddMWIk5MIJHCPV+J7cRktfurH+SyaHdIkvan10FLeX2gH8fuLQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609883948; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=eAhHEbBB3JhV6VG/n3NmGhe9rJBhamIq0P8VBWa+I5Y=; b=Omhp8bdyP3KJbb1nraHdD+/CwkaYKYdprKVbSqfehIHWiU4QiGdL96Nx6o4hs4iY8v/3XmI+yOxHO2ac+oBfEVaJ+rnpj6FZcZNzkRGm1EMFAaFfNiVvDkMd+kZz7PMSGtv/u2PkQlhOSLq7uYhnD4vqoUM1auH4x6kmdvWP2BI= ARC-Authentication-Results: i=1; mx.zohomail.com; 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=fail header.from= (p=none 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 1609883948368645.3536829717086; Tue, 5 Jan 2021 13:59:08 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.62200.109988 (Exim 4.92) (envelope-from ) id 1kwuLk-0005RP-Go; Tue, 05 Jan 2021 21:58:44 +0000 Received: by outflank-mailman (output) from mailman id 62200.109988; Tue, 05 Jan 2021 21:58:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kwuLk-0005RI-Db; Tue, 05 Jan 2021 21:58:44 +0000 Received: by outflank-mailman (input) for mailman id 62200; Tue, 05 Jan 2021 21:58:43 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kwuLj-0005RD-ED for xen-devel@lists.xenproject.org; Tue, 05 Jan 2021 21:58:43 +0000 Received: from mga17.intel.com (unknown [192.55.52.151]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 7a87c966-cade-45a5-aac9-5b2b749e8781; Tue, 05 Jan 2021 21:58:40 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 13:58:39 -0800 Received: from rcsacra-mobl2.amr.corp.intel.com (HELO ubuntu.localdomain) ([10.212.99.154]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 13:58:38 -0800 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: 7a87c966-cade-45a5-aac9-5b2b749e8781 IronPort-SDR: 88jrulC637oeIS4Q2FX1tZScfvhKRA9SWpFdJ9Izi7mr6NzKctxlvFMta4QCfXj2KtdLBLZ102 LbUoxT4eiMrg== X-IronPort-AV: E=McAfee;i="6000,8403,9855"; a="156969088" X-IronPort-AV: E=Sophos;i="5.78,478,1599548400"; d="scan'208";a="156969088" IronPort-SDR: PrttMIuNSGm+P72OiBWro9um9lhK4mp2TRApsI+PVSrNxEePg+3P4pRr54ZAVPBBY42KgMNg+q sotnKY+EKArw== X-IronPort-AV: E=Sophos;i="5.78,478,1599548400"; d="scan'208";a="462456825" From: Tamas K Lengyel To: xen-devel@lists.xenproject.org Cc: Tamas K Lengyel , Tamas K Lengyel , Jan Beulich , Andrew Cooper , George Dunlap , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu Subject: [PATCH v2] x86/mem_sharing: copy cpuid and msrs during vm forking Date: Tue, 5 Jan 2021 13:58:23 -0800 Message-Id: <5ceda1696c935730c2b2925e2454a7502c6560f0.1609883742.git.tamas.lengyel@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Tamas K Lengyel --- xen/arch/x86/mm/mem_sharing.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/mm/mem_sharing.c b/xen/arch/x86/mm/mem_sharing.c index c428fd16ce..fc7b2a4102 100644 --- a/xen/arch/x86/mm/mem_sharing.c +++ b/xen/arch/x86/mm/mem_sharing.c @@ -1764,6 +1764,8 @@ static int fork(struct domain *cd, struct domain *d) =20 domain_pause(d); cd->max_pages =3D d->max_pages; + *cd->arch.cpuid =3D *d->arch.cpuid; + *cd->arch.msrs =3D *d->arch.msrs; cd->parent =3D d; } =20 --=20 2.25.1