From patchwork Thu Nov 23 18:31:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 119535 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp1172978edl; Thu, 23 Nov 2017 10:34:14 -0800 (PST) X-Google-Smtp-Source: AGs4zMYYlIJxEZWXpE9y4gGvuQwIS68oErRu/HH1p3Pl5Qltlnz5WKVEjOM6aZB47elNN2vcIMn8 X-Received: by 10.107.146.195 with SMTP id u186mr28404695iod.37.1511462054118; Thu, 23 Nov 2017 10:34:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511462054; cv=none; d=google.com; s=arc-20160816; b=XGG+HoB/WiPXJ/dtJjf989HzRb+NZ0Q1hJc0BRJUd11UN4NT6TX+nG+IMCI3npgBfG A9+a35QF8aqQ3GASsNkjr9ba8CKUils++4AKPlfSX8hiY6Y3JoU1y4Jv1nWP3r4g2y22 H6qhAXqlrI1eeiWmtMyjFhCk9r3X8q36jvmecsDqoPVfDvc8wtW0HdDq+mzw002iv/wx Zvzc4djqgvqG53liuHo0N6iEOJrISTEE++hk8vPc6gGa3oGDFVpaTg8RO/uek30BqLJ+ E91Wma26FCVZVr2p9bQ3Q3fxY/sJHp0MGch8GHVsGMdRWFpgv3qXB+a06WIMuhssyP3T 76fg== 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=yLDI5ARV3buEUsGRGh/67lrfEwU2UAXnv2Gz/k7DrXU=; b=dMUxFkwDV5X+XNXKpgLg8U/Wi9y9WTpzinWMFL6ZBpwHThtAOr72d/rDUcTSUwuO6p EkYC5VnKH0m2agTPIz5qqOzgjiJqDdyB/w8iny9prc07pnazfEJVnuRYVosIhGWzEAZm WY4g2fajkujrYhXC2qax75KYrYN7FdTDjec2e1iRykSZZQhUWJ4I+nR6EeZSaVmL0Ej2 dglufR7N9axwdDL4qrUZ0I+/c5B6pfVOeH3G20O9gb2gR9spKAcfx6PkS8m+jrleeWL5 fVdvq5uTdLc2OiHN1S7Vk+hNwb7+x40T4QmGvB62541kR8GsfJsZrLCxRx4ZYGFSzCrH jGbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kkRf/MKZ; 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 a84si6511491itb.88.2017.11.23.10.34.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 10:34:14 -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=kkRf/MKZ; 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 1eHwIM-00059M-2c; Thu, 23 Nov 2017 18:32:18 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHwIL-00059A-3E for xen-devel@lists.xen.org; Thu, 23 Nov 2017 18:32:17 +0000 Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id 2E/78-02778-034171A5; Thu, 23 Nov 2017 18:32:16 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEIsWRWlGSWpSXmKPExsXiVRukp6svIh5 lcGC+kcWSj4tZHBg9ju7+zRTAGMWamZeUX5HAmjH/Vy9zQSN/xba569gaGJt5uhg5OYQEJjJK PJgq1sXIxcEi0M4ssfPlfUYQR0LgHYvElFcv2UCqJATyJGYdv8vcxcgBZKdJbNmVARGukGhYd wQsLCSgJrHmTRRIq5BAH5PEvtfbGEHibAI6Eutm1IKUiwhIS1z7fJkRxGYWiJd4PPU62HRhAU eJnz9PMoHYLAKqEjOObGcGsXkFbCQ+/XjBArFKXmJX20XWCYz8CxgZVjGqF6cWlaUW6ZrpJRV lpmeU5CZm5ugaGpjq5aYWFyemp+YkJhXrJefnbmIEhg4DEOxgnNrgfIhRkoNJSZRX5pdYlBBf Un5KZUZicUZ8UWlOavEhRhkODiUJXl9h8SghwaLU9NSKtMwcYBDDpCU4eJREeLcLAaV5iwsSc 4sz0yFSpxjtOY5tuvyHiWPfnltA8tnM1w3MHNOutjYxC7Hk5eelSonzeoJMFQBpyyjNgxsKi7 pLjLJSwryMQGcK8RSkFuVmlqDKv2IU52BUEuZ9C7KcJzOvBG73K6CzmIDO+nlcGOSskkSElFQ D46Sn+66clT6Ud5ozg3Eex7fD+d/ZVwW+K+PrvfuAO0IyIWYut0h8/bd76m0P7E1+m9RK3vte bCDOcCLib/sP65mmq9Ys7kjZyXAoXvCdyuac7yrTLCK2uU81nHVnZcLWjvO5HPqnFrW1umpy9 3NskNtUUvtq97TSnGt7Tu55ojXTfIfPh92isUosxRmJhlrMRcWJAK+oFQO1AgAA X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-11.tower-206.messagelabs.com!1511461935!88763577!1 X-Originating-IP: [74.125.82.46] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 55721 invoked from network); 23 Nov 2017 18:32:15 -0000 Received: from mail-wm0-f46.google.com (HELO mail-wm0-f46.google.com) (74.125.82.46) by server-11.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 23 Nov 2017 18:32:15 -0000 Received: by mail-wm0-f46.google.com with SMTP id y82so17983095wmg.1 for ; Thu, 23 Nov 2017 10:32:15 -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=4mA/CTAc8mF3onTSjvvjnrfQoiJ/LVgoyfzcOUD0xYM=; b=kkRf/MKZdN2lJPzqmrt1LYfdZPyGptwmYSwrA0lr83LwmN7a72fJKnJvbwq64MZyOT r1cA/uhijScwJZ8rd1Cs28F/n1Bn05gcsi9uUaMB9vuzU2iO3rGgwBUkZ9QKIxRR0ufJ mpZNxQTLqUyRMwZ4jLkSx/WA212a1B/GLoUEs= 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=4mA/CTAc8mF3onTSjvvjnrfQoiJ/LVgoyfzcOUD0xYM=; b=hwKb1OejCFw6HUImJQR343jlTVXS+1xTmXPPr4KNXkkIGUCgKox/cadCN9xuXf42Xn 1BKQ9B11H2tuOQMratkHNH3gH3VIroscGuLTrMO0ZDPo9LkTMhRpnUhaH9zE9oe/4bX/ dfIOHXLCSm2XRTwqrg4XUJJ+3B577H4AKx7PQULb3awJxROngy3k6WjNAlBkfcd8ncpQ y3sQ3m9HgNidmHSQCviaJv9w4//BjKuucjvxDzpA/r/NyUMkZiInb4cc1I8qBpvMFw9c 7Qok/NsEyKe4TL84u5r1dMeTCm7hmMDEqD+3sinkB4mZWPEt4WcHZ1CYp1ZibtKSndf0 WVJg== X-Gm-Message-State: AJaThX4o7KOuu/j1Il3T9W4gyKoQwMV+YdlP2P647xBJMd013cg1+nTK o0qtO1H+4zay9TCnZ1n11mSobOO+R2o= X-Received: by 10.28.156.67 with SMTP id f64mr7427505wme.42.1511461935116; Thu, 23 Nov 2017 10:32:15 -0800 (PST) Received: from e108454-lin.cambridge.arm.com ([2001:41d0:1:6c23::1]) by smtp.gmail.com with ESMTPSA id n32sm41412950wrb.62.2017.11.23.10.32.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 10:32:13 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 23 Nov 2017 18:31:54 +0000 Message-Id: <20171123183210.12045-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] [PATCH for-next 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. 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 | 182 +++++++++++++++---------------------- 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, 191 insertions(+), 288 deletions(-)