From patchwork Mon Apr 22 16:49:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 162600 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2801129jan; Mon, 22 Apr 2019 09:51:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbkH3NQw7ZQkxEPVrCDWJAdiJ+GceUdFFj2HC2RCjYX8DVYeebEQbjkiVdmqZ1Xh41RT1G X-Received: by 2002:a25:504e:: with SMTP id e75mr16930178ybb.68.1555951864557; Mon, 22 Apr 2019 09:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555951864; cv=none; d=google.com; s=arc-20160816; b=IlhaBsIgDrtI8TMvuTKEmfth/r+qhncH/MRPfZAm/gOAY/tHkld8nmkbULe9c3x3iI ebWhvSB3vfSdE40dJT3QVafikiJfjbx+7wcIvXCKk5twpOJ4kQlkgGmtmD4rxTi02IfT eTJtq5zp2kj7CMbjlCi33HS7H7zPxoAgx4APpEzWdCWfW4XWlRlON56+rmNoBJCNCsPP Kqw6jb9duZqJAGzIRTEObvPwQy4k9HmgLeHbNIOaXhPsOUKBA1vCWpFUqv/IUb3ByQUs pBf9Yn8QLowNM3tC2nIIm6PVYN5W+AaMDAp07anJCVDRLMPYDLtHH6DmvOzHCoVq93Uu k6XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from; bh=FEkkaDDNrJGNXfeDzdRVAcaHkA1Z+mgHn0hHpMXphYY=; b=XQ9V5AXcfhB5eVm9rQ9Fjgi0zyLI8DTaJ/NvRXWNLgOiMdtXUK9uOV6SCT4EGftG1h D3X8dP6MSMV7jABp7Y1EQwr45VakjL15n6rOUaPk/pZqSNBvm0dOCAF+yxNSz0r0PIb/ /6CFmTzG/uO7lB2QAh1RnR4pRUDaeGXkbkLucGkibsb1shssg4ebXoVaMwQDjclRrqRg 10JmyxAOzCu3eReWxtVwj6EBR4pa5K/YCFmJPw9R2dayd+lBtzV04etNR9bldR/urDRW Xj3B14nV4ER2aPN7kZX1fP2290b2b+CXBtd9cZWzDU7qNFKBArm8MpOW7DK/UMyWtAkO 0RGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id w194si6367292ywa.209.2019.04.22.09.51.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Apr 2019 09:51:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hIc8y-0005H6-Uu; Mon, 22 Apr 2019 16:50:12 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hIc8x-0005EB-Cg for xen-devel@lists.xenproject.org; Mon, 22 Apr 2019 16:50:11 +0000 X-Inumbo-ID: b0be0597-651e-11e9-92d7-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id b0be0597-651e-11e9-92d7-bc764e045a96; Mon, 22 Apr 2019 16:50:10 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D4A7DEBD; Mon, 22 Apr 2019 09:50:09 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C51F43F557; Mon, 22 Apr 2019 09:50:08 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 22 Apr 2019 17:49:31 +0100 Message-Id: <20190422164937.21350-15-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190422164937.21350-1-julien.grall@arm.com> References: <20190422164937.21350-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH 14/20] xen/arm32: mm: Avoid cleaning the cache for secondary CPUs page-tables X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Oleksandr_Tyshchenko@epam.com, Julien Grall , sstabellini@kernel.org, Andrii_Anisov@epam.com MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The page-table walker is configured to use the same shareability and cacheability as the access performed when updating the page-tables. This means cleaning the cache for secondary CPUs runtime page-tables is unnecessary. Signed-off-by: Julien Grall Reviewed-by: Andrii Anisov --- xen/arch/arm/mm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index cda2847d00..6db7dda0da 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -769,9 +769,6 @@ int init_secondary_pagetables(int cpu) write_pte(&first[first_table_offset(DOMHEAP_VIRT_START+i*FIRST_SIZE)], pte); } - clean_dcache_va_range(first, PAGE_SIZE); - clean_dcache_va_range(domheap, DOMHEAP_SECOND_PAGES*PAGE_SIZE); - per_cpu(xen_pgtable, cpu) = first; per_cpu(xen_dommap, cpu) = domheap;