From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM Page Fault Question Date: Thu, 22 Apr 2010 09:52:49 +0300 Message-ID: <4BCFF241.4080206@redhat.com> References: <4B9726A7.7000800@csail.mit.edu> <4B976AA8.9030904@redhat.com> <4B9833EE.1070705@csail.mit.edu> <4B989035.4050109@redhat.com> <4B9916DE.30209@csail.mit.edu> <4B9B5225.2050604@redhat.com> <4BA2BC2A.8090803@csail.mit.edu> <4BA33833.8060703@redhat.com> <4BB57596.6090109@csail.mit.edu> <4BB59117.2040903@redhat.com> <4BB614BC.9080608@csail.mit.edu> <4BB8C566.70807@redhat.com> <4BCFDE1C.7080209@csail.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Marek Olszewski Return-path: Received: from mx1.redhat.com ([209.132.183.28]:8413 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751679Ab0DVGwy (ORCPT ); Thu, 22 Apr 2010 02:52:54 -0400 In-Reply-To: <4BCFDE1C.7080209@csail.mit.edu> Sender: kvm-owner@vger.kernel.org List-ID: On 04/22/2010 08:26 AM, Marek Olszewski wrote: > Under VMX without EPT, I do not seeing any VM Exits due to task > switches. Is there a way to enable these? I'm looking to intercept > the guest whenever it does a iret. See EXIT_REASON_TASK_SWITCH. However, that won't fire on any iret, only irets that generate task switches. You can ask for exits on irets by setting CPU_BASED_VIRTUAL_NMI_PENDING and GUEST_INTR_STATE_NMI, and looking for EXIT_REASON_NMI_WINDOW. -- error compiling committee.c: too many arguments to function