From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751913AbdJ0CZv (ORCPT ); Thu, 26 Oct 2017 22:25:51 -0400 Received: from mga06.intel.com ([134.134.136.31]:14640 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbdJ0CZq (ORCPT ); Thu, 26 Oct 2017 22:25:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,303,1505804400"; d="scan'208";a="165568194" From: Haozhong Zhang To: kvm@vger.kernel.org, x86@kernel.org Cc: linux-kernel@vger.kernel.org, Paolo Bonzini , rkrcmar@redhat.com, Xiao Guangrong , Dan Williams , ivan.d.cuevas.escareno@intel.com, karthik.kumar@intel.com, Haozhong Zhang , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Mikulas Patocka , Tom Lendacky Subject: [PATCH 0/3] KVM: MMU: fix kvm_is_mmio_pfn() Date: Fri, 27 Oct 2017 10:25:21 +0800 Message-Id: <20171027022524.22589-1-haozhong.zhang@intel.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [I just copy the commit message from patch 3] By default, KVM treats a reserved page as for MMIO purpose, and maps it to guest with UC memory type. However, some reserved pages are not for MMIO, such as pages of DAX device (e.g., /dev/daxX.Y). Mapping them with UC memory type will harm the performance. In order to exclude those cases, we check the host cache mode in addition and only treat UC/UC- pages as MMIO. Haozhong Zhang (3): x86/mm: expose track_pfn_insert() KVM: add converters between pfn_t and kvm_pfn_t KVM: MMU: consider host cache type in MMIO pfn check arch/x86/kvm/mmu.c | 32 +++++++++++++++++++++++++++++--- arch/x86/mm/pat.c | 1 + include/linux/kvm_host.h | 3 +++ 3 files changed, 33 insertions(+), 3 deletions(-) -- 2.14.1