From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751514AbdEETZp (ORCPT ); Fri, 5 May 2017 15:25:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52210 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbdEETZn (ORCPT ); Fri, 5 May 2017 15:25:43 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 246316602 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=bsd@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 246316602 From: Bandan Das To: kvm@vger.kernel.org Cc: pbonzini@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] nVMX: Emulated Page Modification Logging for Nested Virtualization Date: Fri, 5 May 2017 15:25:12 -0400 Message-Id: <20170505192515.27833-1-bsd@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 05 May 2017 19:25:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: 2/3: Clear out all bits except bit 12 3/3: Slightly modify an existing comment, honor L0's PML setting when clearing it for L1 v1: http://www.spinics.net/lists/kvm/msg149247.html These patches implement PML on top of EPT A/D emulation (ae1e2d1082ae). When dirty bit is being set, we write the gpa to the buffer provided by L1. If the index overflows, we just change the exit reason before running L1. Bandan Das (3): kvm: x86: Add a hook for arch specific dirty logging emulation nVMX: Implement emulated Page Modification Logging nVMX: Advertise PML to L1 hypervisor arch/x86/include/asm/kvm_host.h | 2 + arch/x86/kvm/mmu.c | 15 +++++++ arch/x86/kvm/mmu.h | 1 + arch/x86/kvm/paging_tmpl.h | 4 ++ arch/x86/kvm/vmx.c | 97 ++++++++++++++++++++++++++++++++++++++--- 5 files changed, 112 insertions(+), 7 deletions(-) -- 2.9.3