From patchwork Fri Dec 21 16:26:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 154404 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1117737ljp; Fri, 21 Dec 2018 08:28:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/WgJpnNGNesssPZUr3Rnd3mtE9Nd2dnmPTP5LasLmuZHk7k83fOYeIxtJiwjrLEpvly4OWH X-Received: by 2002:a81:320e:: with SMTP id y14mr3182813ywy.49.1545409738840; Fri, 21 Dec 2018 08:28:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545409738; cv=none; d=google.com; s=arc-20160816; b=i2uyHGUZsfwj6abciryRjqfxre3IewaT3yGUvpHYMqP6fL4+cGgpkQYwvw1gahV/xc /rlP9oznCDmoX0TM0R4J4svVjY3SCAal+Kq+pU+xLkrJB3ZWunTjvnMJTeItYlmkPIZm 7Ofwhx9hWvmCZDE+nduTgXRPRoe2j2P7bS3syTfOBREULCupQi0PFwFPinRZEq1vAN9e IIOuEJps1NwP2YJi5wRB4qSwtgQGMMfOsHjIdcy2kTdCz0lmIBXXbLTeGkg5esiyMwWI dbtfP9UqDzB/2ZuBBBhxGRMo1IkUiDFUqOehn1Vv21ZXFNh8RKVP38vewde+JCvHZHiv atcw== 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=cbla8GZcIqHRDx7fRNX5dssmcLUVWJ+fo2OC0d+WJoU=; b=A36oGh45uIPYU/nkfhqq4Rz/t68F3iSaIJ7p7daUIFRz1jY9TIA9L+D+cQaMtMTgbw 3MIXQe0dkZcQKpV+8qLfthcGuaEWXbFLuT5o0gNv92rmi/0Jn2M11etxyIzaVcg26GB4 ofpPTNpYcYdi+seO1aE9CqUhCusQevIAzgz57d318Y/92cb6J45XHIHH/APpxX7f6Dkb b2f8Phnanc6620ei9VoJ60ZwfKBk+9LIAPIC0AXve2Nvv9v9xw9m8UiKwwRNk37JYNIu sOLwGKfIq9/pl9fVUyQn0QLhQ0WQh7tFhkcMY4rCMirHDjTdYy6RzIOexmNhoDdUI/ar 7O7A== 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 y10si204467ybh.271.2018.12.21.08.28.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 08:28:58 -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 1gaNde-00067O-Oa; Fri, 21 Dec 2018 16:27:02 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1gaNdd-00067I-Ee for xen-devel@lists.xenproject.org; Fri, 21 Dec 2018 16:27:01 +0000 X-Inumbo-ID: 3dfb5e2c-053d-11e9-8ea6-7399951f0823 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 3dfb5e2c-053d-11e9-8ea6-7399951f0823; Fri, 21 Dec 2018 16:27:00 +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 074AEEBD; Fri, 21 Dec 2018 08:27:00 -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 3B1BD3F5C0; Fri, 21 Dec 2018 08:26:59 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Fri, 21 Dec 2018 16:26:42 +0000 Message-Id: <20181221162650.11515-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH for-4.12 v3 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: Julien Grall , sstabellini@kernel.org 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 *** BLURB HERE *** Benjamin Sanda (2): xen/arm: Initialize trace buffer xenalyze: Build for Both ARM and x86 Platforms Julien Grall (6): 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: Make get_page_from_gfn working with DOMID_XEN xen/arm: Allow a privileged domain to map foreign page from DOMID_XEN xen: Switch 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 | 19 ++++++------ xen/arch/arm/p2m.c | 36 ++++++++++++++++++++++- 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/time.c | 8 ++--- xen/arch/x86/hvm/viridian/viridian.c | 16 +++++----- xen/arch/x86/hvm/vmx/vmx.c | 4 +-- xen/arch/x86/hvm/vmx/vvmx.c | 12 ++++---- xen/arch/x86/mm.c | 24 ++++++++------- 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 | 4 +-- 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/tmem_xen.c | 2 +- xen/include/asm-arm/p2m.h | 57 +++++++++++++++++++++--------------- xen/include/asm-x86/p2m.h | 11 ++++--- 30 files changed, 174 insertions(+), 116 deletions(-)