Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3010294pxf; Sun, 14 Mar 2021 21:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLQBpLmPc8qimtt+aNR7s4wj4eQDPVvqwhHsANepsTB5fpELIxZuQ5mE+pbilOk5rZZkra X-Received: by 2002:aa7:cb0a:: with SMTP id s10mr27575642edt.36.1615782060791; Sun, 14 Mar 2021 21:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615782060; cv=none; d=google.com; s=arc-20160816; b=ZRj5cltuJdevDXtDZ03DYZEIEdlsytLM5xCQY6ole+rURao3tmqH6/w/jxuCfOuHdu HPt4wqrd5jEMK8hBPgkBBqccBSwj0dQZLkO/dyn9AyDxHFTraRPXkIgAdmdonVBhdUip VOdtBA3Y2EevqM6EFVd5+40hQyUTEGNYVAZrQbCarA5WgI0fACmbrIflMDOrkL298e9U 5ujQAM8Xkv1CVEsLIhBFga3lwA0PEysabWrHtW+xlpF2NsRuvQQo0jQZCM27scxYYobw DtiX0m7NLNfv64/5r6GwVrLNa+Dl/vROqBpmXuLuvVd157AWF/qeK7/aBd5xm1CLDRHb Gexg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aKj/5CA1P2uSnEV3uJxCfOdpLBFnK+/ZnKmjfmOEBg0=; b=FDud5TQP4BUu5IoUCivr4xKrjIYu0U5SK6GCCH4HnIVk1RGy7V2ElyMd7B3G9Ps9ms u19f58yKBn2u9RbUNAdscWvYzlc1lZUKUmOsTI2epesJY/nXahe/X6oSmB5BTavzpSew D8i1nwayjOFzfqmYUyooAOFWGHcbeppcV+DsQf2I1Atdb/2F2+J8QC5gqbBNEQk1dPIG WxiXQFLX9AZLRqoehPPWd2p/QjH39YDih0286pPol72QMzGtKedU+Hyp8JuT/J4WiH+T LR25Wyes/pMXAQEO4vl+xMv/qt9BCPi2fuKtNGxZW4Bx+et21awLNX27BHFzo74PJJ3s jxBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NEhcUoPR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si4815943edc.6.2021.03.14.21.20.38; Sun, 14 Mar 2021 21:21:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NEhcUoPR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbhCOETn (ORCPT + 99 others); Mon, 15 Mar 2021 00:19:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:27738 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbhCOETB (ORCPT ); Mon, 15 Mar 2021 00:19:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615781940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aKj/5CA1P2uSnEV3uJxCfOdpLBFnK+/ZnKmjfmOEBg0=; b=NEhcUoPRqopm807R5vKYJehGAJgVo1wxFbSwvwpxJiiUX9DuAK28ck/2taUxDjShGjs27+ F2rBBW+10kNtn/I7OzYnN68vcw91GJ29OvvVBZnrCM42p8GXOKuayIr+CfkulMd1gBAPQp pyWKZrUbY+53dYluhcUEnE9BWdc7DYY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-554-iehVtjabMYu8qajrojFgkA-1; Mon, 15 Mar 2021 00:18:58 -0400 X-MC-Unique: iehVtjabMYu8qajrojFgkA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7A8FB801817; Mon, 15 Mar 2021 04:18:57 +0000 (UTC) Received: from gshan.redhat.com (vpn2-54-175.bne.redhat.com [10.64.54.175]) by smtp.corp.redhat.com (Postfix) with ESMTP id 441C7437F; Mon, 15 Mar 2021 04:18:54 +0000 (UTC) From: Gavin Shan To: kvmarm@lists.cs.columbia.edu Cc: linux-kernel@vger.kernel.org, maz@kernel.org, will@kernel.org, alexandru.elisei@arm.com, shan.gavin@gmail.com Subject: [PATCH 0/4] KVM: arm64: Minor page fault handler improvement Date: Mon, 15 Mar 2021 12:18:40 +0800 Message-Id: <20210315041844.64915-1-gshan@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The series includes several minior improvements to stage-2 page fault handler: PATCH[1/2] are cleaning up the code. PATCH[3] fixes the address range check on adding new memory slot. PATCH[4] don't retrieve the memory slot again in the page fault handler to save a bit CPU cycles. Gavin Shan (4): KVM: arm64: Hide kvm_mmu_wp_memory_region() KVM: arm64: Use find_vma_intersection() KVM: arm64: Fix address check for memory slot KVM: arm64: Don't retrieve memory slot again in page fault handler arch/arm64/include/asm/kvm_host.h | 1 - arch/arm64/kvm/mmu.c | 19 +++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) -- 2.23.0