From nobody Mon Feb 9 09:52:06 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=amzn.com ARC-Seal: i=1; a=rsa-sha256; t=1583412392; cv=none; d=zohomail.com; s=zohoarc; b=izU2qEDB6iMdUMkq0RGkMOXM/+XuS2sPCvrLy+dSaCsfKoHxLLl40xIQlHVR4XJiJHpD01WilfyB88H1WYTmOu1ciofh3Jg9sduMqGcEykY9XLfGOUkAZFm5ihp5CQd4o9oMn4DUskNlJRT8DtPsdM8Ntlf9tmQdnfW3Bx1zrt8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583412392; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=oGB5ONrtuhnNpWtsfAky64WVw7zLFBvY7wTuVnWmpDI=; b=drcGTwon92NJbMPzak+fFXZbCRBw3GwWVdL+iUHoTbpnusacI0kzMsbeL6itJ1j44AOEXPakQmxnSyu3DbmNYRZkVXsYNAHMd9q17Sxk6x7X9ek2UWwA10SAoSXp244JRcDgR/Ewh7Nc632iNJ7fINpUCHHGFkE/H98d+NHKh7I= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) 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 1583412392443705.2427941975058; Thu, 5 Mar 2020 04:46:32 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j9psw-0000AX-51; Thu, 05 Mar 2020 12:45:54 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j9psv-0000AI-Fb for xen-devel@lists.xenproject.org; Thu, 05 Mar 2020 12:45:53 +0000 Received: from smtp-fw-9101.amazon.com (unknown [207.171.184.25]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3d1927c6-5edf-11ea-b52f-bc764e2007e4; Thu, 05 Mar 2020 12:45:48 +0000 (UTC) Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 05 Mar 2020 12:45:47 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com (Postfix) with ESMTPS id 059D1A2568; Thu, 5 Mar 2020 12:45:44 +0000 (UTC) Received: from EX13D32EUB003.ant.amazon.com (10.43.166.165) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Thu, 5 Mar 2020 12:45:19 +0000 Received: from EX13MTAUWC001.ant.amazon.com (10.43.162.135) by EX13D32EUB003.ant.amazon.com (10.43.166.165) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 5 Mar 2020 12:45:18 +0000 Received: from u2f063a87eabd5f.cbg10.amazon.com (10.125.106.135) by mail-relay.amazon.com (10.43.162.232) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 5 Mar 2020 12:45:15 +0000 X-Inumbo-ID: 3d1927c6-5edf-11ea-b52f-bc764e2007e4 IronPort-SDR: 3b3n3eUG1D8tuzjbvuVJMCoHAjoZu7ezOEAKNJvUTK7gGek8yIXD5anwqyyAx4lNox2rFllQME ig2NcsrXJfZg== X-IronPort-AV: E=Sophos;i="5.70,518,1574121600"; d="scan'208";a="21060558" From: To: Date: Thu, 5 Mar 2020 12:45:00 +0000 Message-ID: <20200305124504.3564-3-pdurrant@amzn.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200305124504.3564-1-pdurrant@amzn.com> References: <20200305124504.3564-1-pdurrant@amzn.com> MIME-Version: 1.0 Precedence: Bulk Subject: [Xen-devel] [PATCH v3 2/6] x86 / p2m: remove page_list check in p2m_alloc_table X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Wei Liu , Andrew Cooper , Paul Durrant , George Dunlap , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Paul Durrant There does not seem to be any justification for refusing to create the domain's p2m table simply because it may have assigned pages. Particularly it prevents the prior allocation of PGC_extra pages. Signed-off-by: Paul Durrant --- Cc: Jan Beulich Cc: Andrew Cooper Cc: George Dunlap Cc: Wei Liu Cc: "Roger Pau Monn=C3=A9" v2: - New in v2 --- xen/arch/x86/mm/p2m.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index 3719deae77..9fd4b115be 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -695,14 +695,6 @@ int p2m_alloc_table(struct p2m_domain *p2m) =20 p2m_lock(p2m); =20 - if ( p2m_is_hostp2m(p2m) - && !page_list_empty(&d->page_list) ) - { - P2M_ERROR("dom %d already has memory allocated\n", d->domain_id); - p2m_unlock(p2m); - return -EINVAL; - } - if ( pagetable_get_pfn(p2m_get_pagetable(p2m)) !=3D 0 ) { P2M_ERROR("p2m already allocated for this domain\n"); --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel