Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752944AbcCGOQR (ORCPT ); Mon, 7 Mar 2016 09:16:17 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36081 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715AbcCGOQB (ORCPT ); Mon, 7 Mar 2016 09:16:01 -0500 From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Takuya Yoshikawa , Xiao Guangrong Subject: [PATCH v2 0/9] cleanup around kvm_sync_page, and a few micro-optimizations Date: Mon, 7 Mar 2016 15:15:46 +0100 Message-Id: <1457360155-9610-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1457360155-9610-1-git-send-email-pbonzini@redhat.com> References: <1457360155-9610-1-git-send-email-pbonzini@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 964 Lines: 26 Having committed the ubsan fixes, this are the cleanups that are left. Compared to v1, I have fixed the patch to coalesce page zapping after mmu_sync_children (as requested by Takuya and Guangrong), and I have rewritten is_last_gpte again in an even simpler way. Paolo Paolo Bonzini (9): KVM: MMU: introduce kvm_mmu_flush_or_zap KVM: MMU: move TLB flush out of __kvm_sync_page KVM: MMU: use kvm_sync_page in kvm_sync_pages KVM: MMU: cleanup __kvm_sync_page and its callers KVM: MMU: invert return value of mmu.sync_page and *kvm_sync_page* KVM: MMU: move zap/flush to kvm_mmu_get_page KVM: MMU: coalesce more page zapping in mmu_sync_children KVM: MMU: simplify is_last_gpte KVM: MMU: micro-optimize gpte_access arch/x86/include/asm/kvm_host.h | 8 +- arch/x86/kvm/mmu.c | 167 ++++++++++++++++++++-------------------- arch/x86/kvm/paging_tmpl.h | 11 ++- 3 files changed, 92 insertions(+), 94 deletions(-) -- 1.8.3.1