From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Add ability to drop pages through testdev Date: Wed, 29 Dec 2010 12:05:35 +0200 Message-ID: <4D1B07EF.2080505@redhat.com> References: <20101222151849.GF2231@redhat.com> <4D1B0478.5010304@redhat.com> <20101229095552.GC32688@redhat.com> <4D1B0647.40001@redhat.com> <20101229100304.GD32688@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: mtosatti@redhat.com, kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:13929 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750875Ab0L2KFi (ORCPT ); Wed, 29 Dec 2010 05:05:38 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oBTA5cgL009903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 29 Dec 2010 05:05:38 -0500 In-Reply-To: <20101229100304.GD32688@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 12/29/2010 12:03 PM, Gleb Natapov wrote: > > >> Icky. This is much better done through the api tests. Applied it > > >> so as not to spoil all the effort. > > >> > > >How would you do that there? > > > > Set up all the state using the KVM_SET_REGS family, pointing to the > > instruction you want to test, and KVM_RUN that. You can even queue > > exceptions and interrupts for complicated cases. > > > I mean how do you drop a page from shadow/ept tables? Wouldn't you have > to do the same trick there? > Yes, but you just call munmap(), you don't have to go through testdev. -- error compiling committee.c: too many arguments to function