From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1F53C43461 for ; Thu, 15 Apr 2021 14:05:42 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A8CA361153 for ; Thu, 15 Apr 2021 14:05:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8CA361153 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Nj8rcNMyxswsYYcqXVUfPG5gpxqtBtmKKlPqNJIOsF0=; b=ojWBXq1ARZewCBqYScquSxRr8t DAmPeR6kXzn2bFcGmucvZx/Z4wz5eI2snVUhEHU5cQ67CU9ftHuwkfvVNbSQFztr9RO0W+QIXllvg QtR4ggc51YNmfoA11DzP8ZZJOFqQ73OMhg/InQy3QLHT1Woqtdcdz4zDhFACppW6wrSXHhzdatbLN QVVcBmjpcPww132HE44WCQK6ELP5qSCYu+sGXkUc9jiVIvayzJ6ZXEqdHHOplB+YWUR0HYciBxifR BoS4DRiingRGEpP94wT/Cyq5ahCmnaGh/ztfJd3COlm/cIY/dXrXtT0Tr48la8rggda4OuRjdSfYk 1UVsr4kQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lX2b6-00GN13-NY; Thu, 15 Apr 2021 14:03:56 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX2b4-00GN0N-D2 for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 14:03:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=4vgidJ6zOZfPQ4n8eCAxoznl8JFqJJMPVu4xMWNLOrc=; b=UDBjoNI5De7G7HKGW0gIf15Oi1 nSdNd1PM69ZSRO05tnk2WtEjMPYr2Nhtc0Yctu5/WBkfdvTODo8AE7QDdXuE/ykHqcyZrU+SypQSm m5vnhdUqhK18F74b29CJEciCv3+GmbFmRhLU0GmU8nRhTI0uOIHuNVfLpuFj0fUaA5Elna7OuZ49f ruJUu4oMXTcCvNS7cY8da+ZBzcea40jYenNVW2hI19JTPJkPojoapULt6ufF9GVSvUct5AdknvGDu SgDZGtg3CCpI0sP7n4y8mAIAPOmhVUAYoiol8ZuRqifcvpa3f1jDdL50ig2JOc/wpaxFKyMSa3qwm JF5puZ1g==; Received: from szxga06-in.huawei.com ([45.249.212.32]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX2b1-008dKF-FA for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 14:03:53 +0000 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FLgxp6xd9zkjjr; Thu, 15 Apr 2021 22:01:50 +0800 (CST) Received: from DESKTOP-5IS4806.china.huawei.com (10.174.187.224) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Thu, 15 Apr 2021 22:03:33 +0800 From: Keqian Zhu To: , , , , Marc Zyngier CC: Subject: [PATCH v4 0/2] kvm/arm64: Try stage2 block mapping for host device MMIO Date: Thu, 15 Apr 2021 22:03:26 +0800 Message-ID: <20210415140328.24200-1-zhukeqian1@huawei.com> X-Mailer: git-send-email 2.8.4.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.187.224] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210415_070351_693677_62521C8A X-CRM114-Status: UNSURE ( 6.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, We have two pathes to build stage2 mapping for MMIO regions. Create time's path and stage2 fault path. Patch#1 removes the creation time's mapping of MMIO regions Patch#2 tries stage2 block mapping for host device MMIO at fault path Changelog: v4: - use get_vma_page_shift() handle all cases. (Marc) - get rid of force_pte for device mapping. (Marc) v3: - Do not need to check memslot boundary in device_rough_page_shift(). (Marc) Thanks, Keqian Keqian Zhu (2): kvm/arm64: Remove the creation time's mapping of MMIO regions kvm/arm64: Try stage2 block mapping for host device MMIO arch/arm64/kvm/mmu.c | 99 ++++++++++++++++++++++++-------------------- 1 file changed, 54 insertions(+), 45 deletions(-) -- 2.19.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel