From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Handling page faults in KVM Date: Mon, 28 Jun 2010 06:36:00 +0300 Message-ID: <4C2818A0.5080009@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Khaled Ibrahim Return-path: Received: from mx1.redhat.com ([209.132.183.28]:25551 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754602Ab0F1DgE (ORCPT ); Sun, 27 Jun 2010 23:36:04 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 06/25/2010 04:03 AM, Khaled Ibrahim wrote: > > Apparently, not all page faults on the guest result in a page fault in the host. I would like to intercept page faults on the guest that are not handled by the host. > I am not quite sure where (in the source code) can I monitor that? > Can any one give me code pointers to look at? > > You need to disable ept or not, and on Intel, load the kvm_intel module with bypass_guest_pf=0. With that, kvm will intercept all guest page faults. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.