From patchwork Tue Dec 4 20:26:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 152861 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp8503541ljp; Tue, 4 Dec 2018 12:29:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uj96r8q9uyrw9mDhPQ8Ee8C1gf3AEj6hhJSBRHxWi8BiMGCf0mL5KNjgjAUQoATnjAR94N X-Received: by 2002:a81:a9ca:: with SMTP id g193mr21784772ywh.52.1543955377211; Tue, 04 Dec 2018 12:29:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543955377; cv=none; d=google.com; s=arc-20160816; b=PhX++Em+DRCLS+/dZ+6epBGaDqRc+E9Um5VqTuNbR5ULlyB6lMN6JZ8Sf66Nh4cZ9s zq9u/9G9au++gGRfdscqxhIazSoWd98oqKBDlZ9YNOFS59PxO68tQrWrZuO8nuaqhnwt MhnmcQq1TZPVTTdaQlUdkmsfrn7YbQmVsb6KDbBO3w/H0CDMPrwEkYTHp4bVW//Lcxai bXIxE5AZ89gE8kLVUnDo/Temc+srwHom1+/g7adbUe54Zgz9fDhIiMSAJDrr5a7HUYD2 zD1Shca1T64XcwvqwDHydDeP5+dwNFtYMeNNIGN/mlugvN+9oJP2WZtqnh2Gl77HLQri jWRw== 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:message-id:date:to:from; bh=+J2fPBrOSgtlxM8CnqG5nyNzwsLrsuNCktp9MXQnank=; b=rlLn2+vdgyrds7n5UkEgaMCsJCeAQLZ5JRk4q8iOqGDhm9ENPJ+EahqvRqHzl2JRR7 wWTGABe6ekLKdBGBMTXrkJQBmbpZAbupd6U8u2WcMuP2yFS/T2SRRggKADlmJYYKtejM 13bXzrWrOLQI40L+IrZvz0QGw0NSyOT1JQnkne0h0QfyqOua8tCQ+few3uv6MXyDpxEx p85CgV23tPASwhbNF7+Kd450IFzcySxavI2RyLzOiuzmhUBXe5hKvzrAsgseFmhv8Ume dt1PNikaOQ2/tnZuTMtRI7JDhaHcJAaRoYTByiKrRv7ZlU0w2oTIAmmJt4GJDc7geBaR i84A== 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 s3si10788221yws.41.2018.12.04.12.29.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Dec 2018 12:29:37 -0800 (PST) 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 1gUHHs-00085d-Vp; Tue, 04 Dec 2018 20:27:20 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1gUHHr-00085T-Gx for xen-devel@lists.xenproject.org; Tue, 04 Dec 2018 20:27:19 +0000 X-Inumbo-ID: fe99a27e-f802-11e8-9a16-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id fe99a27e-f802-11e8-9a16-bc764e045a96; Tue, 04 Dec 2018 20:27:18 +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 A058D80D; Tue, 4 Dec 2018 12:27:17 -0800 (PST) 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 688ED3F614; Tue, 4 Dec 2018 12:27:15 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 4 Dec 2018 20:26:34 +0000 Message-Id: <20181204202651.8836-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH for-4.12 v2 00/17] xen/arm: Implement Set/Way operations 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: sstabellini@kernel.org, Wei Liu , Razvan Cojocaru , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Tamas K Lengyel , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, This is version 2 of the series to implement set/way. For more details see patch #16. A branch with the code is available at: https://xenbits.xen.org/git-http/people/julieng/xen-unstable.git branch cacheflush/v2 Cheers, Julien Grall (17): xen/arm: Introduce helpers to clear/flags flags in HCR_EL2 xen/arm: traps: Move the implementation of GUEST_BUG_ON in traps.h xen/arm: p2m: Clean-up headers included and order them alphabetically xen/arm: p2m: Introduce p2m_is_valid and use it xen/arm: p2m: Handle translation fault in get_page_from_gva xen/arm: p2m: Introduce a function to resolve translation fault xen/arm: vcpreg: Add wrappers to handle co-proc access trapped by HCR_EL2.TVM xen/arm: vsysreg: Add wrapper to handle sysreg access trapped by HCR_EL2.TVM xen/arm: Rework p2m_cache_flush to take a range [begin, end) xen/arm: p2m: Allow to flush cache on any RAM region xen/arm: p2m: Extend p2m_get_entry to return the value of bit[0] (valid bit) xen/arm: traps: Rework leave_hypervisor_tail xen/arm: p2m: Rework p2m_cache_flush_range xen/arm: domctl: Use typesafe gfn in XEN_DOMCTL_cacheflush xen/arm: p2m: Add support for preemption in p2m_cache_flush_range xen/arm: Implement Set/Way operations xen/arm: Track page accessed between batch of Set/Way operations xen/arch/arm/arm64/vsysreg.c | 75 +++++++ xen/arch/arm/domain.c | 14 ++ xen/arch/arm/domctl.c | 14 +- xen/arch/arm/mem_access.c | 6 +- xen/arch/arm/p2m.c | 478 +++++++++++++++++++++++++++++++++++----- xen/arch/arm/traps.c | 123 ++++++----- xen/arch/arm/vcpreg.c | 171 ++++++++++++++ xen/arch/x86/domain.c | 4 + xen/common/domain.c | 5 +- xen/include/asm-arm/cpregs.h | 1 + xen/include/asm-arm/domain.h | 8 + xen/include/asm-arm/p2m.h | 36 ++- xen/include/asm-arm/processor.h | 18 ++ xen/include/asm-arm/traps.h | 24 ++ xen/include/xen/domain.h | 2 + 15 files changed, 856 insertions(+), 123 deletions(-)