From patchwork Tue Dec 12 19:01:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 121631 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4508214qgn; Tue, 12 Dec 2017 11:04:22 -0800 (PST) X-Google-Smtp-Source: ACJfBout/axrap+61O82HMv5TksY1DBoFZ8tTNjqcbFBwwpYV9VaYbkpeaG2KLtxleDekBEd42vh X-Received: by 10.36.33.144 with SMTP id e138mr1029546ita.40.1513105462411; Tue, 12 Dec 2017 11:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513105462; cv=none; d=google.com; s=arc-20160816; b=RJd1y3B1y3Ywj7GW2Leu64udvdLrN832FZ4Vzx1OgGlDP7eMJBSkfBw1kI73ENkvkf XuPyYGowQluIXCM9BlNrtUTAHkiqnQGOy/j09Cwn1JaGLDeR4spjTVvVC2eldrlpoOIv TnZIkxWH6TCaSbqCgTh9ku1EM0gq5quJ/H2tq/l/aVdufermE/b+jfGlcjlknkVw1tgk GnOs/NmEYyS/pQfcH0nLxs+N3cb7Vy4IkuTbB4e4h5Qkhp6pWdOR/o6/AJllKJpDKG15 rqJXJ5Wo1wJA4RFAr+aEWybXp4g3Wa1oMCn2QVZpyjpswSfJQzgW1uY3SRSugXTt/GMQ 4hXA== 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 :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=+tZya5PdKEbfxvfS5JrMQv+X+Z1mm3kft7Ufld9/axE=; b=ValiijnDA39IN1oGWTFilzFldag+WcD090VWvtMoaUALcQx/hX7CwDbvlnAciV1JNJ yY6V3gt3K2VGgRyxRRzh9fSN2oy0nAhTnUeWsGaE7WjcjBcr1MJuN/wx7AYsMMnCGKfE XdkcdIg2aMuAiE79bdwDSYPNoD+2KswYBFPQxzh8HpBbI+Jk9GbAWikxhOZvCvUDlOs5 kly8jrEWZiJYWbwD6hPZFlTfjtnQMLZppTC1KRGZA+Z5mU9pq54Og/JXQEF0c8Okf47v Cjuo99J1abWl2sGD0Nz+SXl5o765k1UkWQTXCDzZL4yndU71oDivypypIFiluo7lxONq nYlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VwwsRhll; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id v9si5062378iog.60.2017.12.12.11.04.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 11:04: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; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VwwsRhll; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOpos-0002P2-QP; Tue, 12 Dec 2017 19:02:22 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOpor-0002Oq-Ld for xen-devel@lists.xen.org; Tue, 12 Dec 2017 19:02:21 +0000 X-Inumbo-ID: e6f483dd-df6e-11e7-b4a6-bc764e045a96 Received: from mail-wr0-x230.google.com (unknown [2a00:1450:400c:c0c::230]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e6f483dd-df6e-11e7-b4a6-bc764e045a96; Tue, 12 Dec 2017 20:01:47 +0100 (CET) Received: by mail-wr0-x230.google.com with SMTP id x49so22182612wrb.13 for ; Tue, 12 Dec 2017 11:02:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=glUhUCLogLGU+cY0F2lR+F7vcsdsbi7HPbAOdu5AQRg=; b=VwwsRhllZNZ7YWUv2Q1DbYfVcJCHnz7xT25s6v6w4rhJuuiJMAyAbRoTMAtVIQNgpW qddK1qQ2m7LV82rNZYs3WKe0ksJ/ieg+jSYb98dk1tZCP2rRwSj39RsazRlGtd+d70uN GamYDi/YtgjsonulqzNKzxe820rygzj4k9KMw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=glUhUCLogLGU+cY0F2lR+F7vcsdsbi7HPbAOdu5AQRg=; b=fh6MJa4OH7mg3zpMndF389elFAjaRT+/APz0Mw+YgJdTWQc/5QBkE1UHaaHS6IVU9W ZugIUCkqBzE8w3ROrwNqr2WKaSDqsAzwrZf3vBJbWYuZsaiMqlxmAtXLXNkW7CLE8W/I yxewRmAXVzMy2TIS8xMhV7eXmmrVM0vU7Pmz5HbPAu9GbZwLFNwxpa6n/BVnaRi4ZJ/F h7gaegQkTxYGs1XZP556F72AaaN2SrttHEnntJM36Jx5sNGOPNj80hslkbrnaEyL5dHH n259DtMKJmrVQB32ltXJyOoWLIFU1QNCKe4VK18RkbU8vzmIBas1Ls9gWkk8YkajCLL5 pCwA== X-Gm-Message-State: AKGB3mIY2Qy9hVwLHPT10AlYdonf0Ju87EWGuLYAaU12O11ucf1fHL+E Xc3qt3gSIDU99n/15MujK/nqeeFQf+8= X-Received: by 10.223.142.143 with SMTP id q15mr5151676wrb.6.1513105338459; Tue, 12 Dec 2017 11:02:18 -0800 (PST) Received: from e108454-lin.cambridge.arm.com ([2001:41d0:1:6c23::1]) by smtp.gmail.com with ESMTPSA id n14sm207508wmh.37.2017.12.12.11.02.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 11:02:17 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 12 Dec 2017 19:01:56 +0000 Message-Id: <20171212190212.5535-1-julien.grall@linaro.org> X-Mailer: git-send-email 2.11.0 Cc: sstabellini@kernel.org, Julien Grall , andre.przywara@linaro.org Subject: [Xen-devel] [v2 00/16] xen/arm: Stage-2 handling cleanup X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, This patch series is a collection of cleanup around stage-2 handling. They are consolidating different pieces of the hypervisor. This will make easier to maintain and update stage-2 change in the future. For all the changes see in each patch. Cheers, Julien Grall (16): xen/arm: raw_copy_to_guest_helper: Rename flush_dcache to flags xen/arm: raw_copy_to_guest_helper: Rework the prototype and rename it xen/arm: Extend copy_to_guest to support copying from guest VA and use it xen/arm: Extend copy_to_guest to support zeroing guest VA and use it xen/arm: guest_copy: Extend the prototype to pass the vCPU xen/arm: Extend copy_to_guest to support copying from/to guest physical address xen/arm: Introduce copy_to_guest_phys_flush_dcache xen/arm: kernel: Rework kernel_zimage_load to use the generic copy helper xen/arm: domain_build: Rework initrd_load to use the generic copy helper xen/arm: domain_build: Use copy_to_guest_phys_flush_dcache in dtb_load xen/arm: p2m: Rename p2m_flush_tlb and p2m_flush_tlb_sync xen/arm: p2m: Introduce p2m_tlb_flush_sync, export it and use it xen/arm: p2m: Fold p2m_tlb_flush into p2m_force_tlb_flush_sync xen/arm: traps: Remove the field gva from mmio_info_t xen/arm: traps: Move the definition of mmio_info_t in try_handle_mmio xen/arm: traps: Merge do_trap_instr_abort_guest and do_trap_data_abort_guest xen/arch/arm/domain_build.c | 39 +++----- xen/arch/arm/guestcopy.c | 200 +++++++++++++++++-------------------- xen/arch/arm/kernel.c | 33 +++--- xen/arch/arm/kernel.h | 2 + xen/arch/arm/p2m.c | 53 +++++----- xen/arch/arm/traps.c | 161 +++++++++++------------------ xen/include/asm-arm/guest_access.h | 6 ++ xen/include/asm-arm/mmio.h | 1 - xen/include/asm-arm/p2m.h | 2 + 9 files changed, 209 insertions(+), 288 deletions(-)