From patchwork Tue Nov 6 19:14:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 150346 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4274051ljp; Tue, 6 Nov 2018 11:17:22 -0800 (PST) X-Google-Smtp-Source: AJdET5fO9tSpTJ+BRULi4oPA3HUNIyGd/Oyu+nsb5NFWRascBlgZ5FlgqlhUQrKyfhzfdc///uB4 X-Received: by 2002:a5b:7cf:: with SMTP id t15-v6mr2615637ybq.66.1541531842185; Tue, 06 Nov 2018 11:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541531842; cv=none; d=google.com; s=arc-20160816; b=0QGbVT5upBS+EvdnFfh5KpaWy6lWrxk6mbeBNK5uwXl+63rqWGY/P/v/KU7S67TuO+ SPenYsE9JHX6vJQzDaj2NhEN3cM0J5JVBEXFyjgroEV0NtULlnSqmpQXEc0QCbF+uiUi 4kjaMkJZ3uCzUwDrpylT0KxtbvZY6Igv/g6rtIzMJIHxzv5Mh/Ms7mxKtYlRzTaaMBJw Jp00nJV09MD+5vtfV56xiCANoofVlldPWzV5PCpAeW1A8hy6hKewN3JXAhGJnkM4JngR DunAoNoAUH0LdiLWE6Sc4PNHm1ZahQbJxfQiQe+z3zyOCpCXV/Lkj+RKVAFJAopQozDh MQNQ== 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=fX/GxB8X2wXhlTUpBjL/uieY3IWpr4Vo3gdzSW0/K5U=; b=gARUwbFFEf/YgYgtiRJE8sXJd0PDQwpnbE1nYG+p25ztec4GYzxlBrm7Kl+tcVyVCv PK7yUKPHkO22tLv+OqfVQXved6R1qyCf/eFVlCYsLd9uFsl7W3pSz/SNWIe71UlOpebM hc3P5/fAEYXgAuyII3GKgPXg0KPZZGnj/IqoTSBb+nh5kBN2h/s+/dAEPVFzudJzB0JH BFBR9oC7cU8wDL0EIZziwtQEQWTQYTyD9YCyA1TmRjlqU3bxwvQfYnpWCIq0baM+ML0m uI1ZguXRmEneTUPPMXlpwlLY3GyZKMe6moLHc1eZmti9IUn5RkKQ+OHZohew6JWaSPYK AtQA== 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 j11-v6si3066021ywa.465.2018.11.06.11.17.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Nov 2018 11:17:22 -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 1gK6ob-0003bJ-R3; Tue, 06 Nov 2018 19:15:05 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1gK6ob-0003bE-1T for xen-devel@lists.xenproject.org; Tue, 06 Nov 2018 19:15:05 +0000 X-Inumbo-ID: 439452f6-e1f8-11e8-9a16-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 439452f6-e1f8-11e8-9a16-bc764e045a96; Tue, 06 Nov 2018 19:15:03 +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 5FA66EBD; Tue, 6 Nov 2018 11:15:03 -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 B3ACA3F718; Tue, 6 Nov 2018 11:15:00 -0800 (PST) From: Julien Grall To: sstabellini@kernel.org, xen-devel@lists.xenproject.org Date: Tue, 6 Nov 2018 19:14:46 +0000 Message-Id: <20181106191454.22143-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 0/8] xen/arm: Add xentrace support 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: Jun Nakajima , Kevin Tian , Wei Liu , Suravee Suthikulpanit , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Paul Durrant , Jan Beulich , Boris Ostrovsky , Brian Woods MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, This patch series is a rework of the series sent by Benjamin Sanda in April 2016 [1]. It finally adds support for xentrace/xenanalyze on Arm. Cheers, [1] https://lists.xenproject.org/archives/html/xen-devel/2016-04/msg00464.html Benjamin Sanda (3): xen/page_alloc: Move get_pg_owner()/put_pg_owner() from x86 to common code xen/arm: Initialize trace buffer xenalyze: Build for Both ARM and x86 Platforms Julien Grall (5): xen/arm: p2m: Introduce p2m_get_page_from_gfn xen/arm: Rename p2m_map_foreign to p2m_map_foreign_rw xen/arm: Add support for read-only foreign mappings xen/arm: Allow a privileged domain to map foreign page from DOMID_XEN xen: Swich parameter in get_page_from_gfn to use typesafe gfn tools/xentrace/Makefile | 3 +- xen/arch/arm/guestcopy.c | 2 +- xen/arch/arm/mm.c | 16 ++++----- xen/arch/arm/p2m.c | 35 ++++++++++++++++++- xen/arch/arm/setup.c | 3 ++ xen/arch/x86/cpu/vpmu.c | 2 +- xen/arch/x86/domain.c | 12 +++---- xen/arch/x86/domctl.c | 6 ++-- xen/arch/x86/hvm/dm.c | 2 +- xen/arch/x86/hvm/domain.c | 2 +- xen/arch/x86/hvm/hvm.c | 9 ++--- xen/arch/x86/hvm/svm/svm.c | 8 ++--- xen/arch/x86/hvm/viridian/viridian.c | 24 ++++++------- xen/arch/x86/hvm/vmx/vmx.c | 4 +-- xen/arch/x86/hvm/vmx/vvmx.c | 12 +++---- xen/arch/x86/mm.c | 66 ++++++++---------------------------- xen/arch/x86/mm/p2m.c | 2 +- xen/arch/x86/mm/shadow/hvm.c | 6 ++-- xen/arch/x86/physdev.c | 3 +- xen/arch/x86/pv/descriptor-tables.c | 5 ++- xen/arch/x86/pv/emul-priv-op.c | 6 ++-- xen/arch/x86/pv/mm.c | 2 +- xen/arch/x86/traps.c | 11 +++--- xen/common/domain.c | 2 +- xen/common/event_fifo.c | 12 +++---- xen/common/memory.c | 4 +-- xen/common/page_alloc.c | 38 +++++++++++++++++++++ xen/common/tmem_xen.c | 2 +- xen/include/asm-arm/p2m.h | 57 ++++++++++++++++++------------- xen/include/asm-x86/p2m.h | 11 +++--- xen/include/xen/mm.h | 3 ++ 31 files changed, 212 insertions(+), 158 deletions(-)