From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH -v2] Monitor command: pfa2hva, translate guest physical address to host virtual address Date: Sun, 07 Nov 2010 21:39:17 -0600 Message-ID: <4CD770E5.9000105@linux.vnet.ibm.com> References: <1288060789.2862.336.camel@yhuang-dev> <20101101160952.GE1429@amt.cnet> <4CCF0BAB.9000304@linux.vnet.ibm.com> <1288639205.2059.34.camel@yhuang-mobile> <4CCF136D.5080307@linux.vnet.ibm.com> <4CD58121.2040209@redhat.com> <1289179768.3532.3.camel@yhuang-dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Marcelo Tosatti , Anthony Liguori , "kvm@vger.kernel.org" , Andi Kleen , Dean Nelson , Luiz Capitulino To: Huang Ying Return-path: Received: from e3.ny.us.ibm.com ([32.97.182.143]:54464 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754089Ab0KHDjX (ORCPT ); Sun, 7 Nov 2010 22:39:23 -0500 Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by e3.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id oA83M7ZW015728 for ; Sun, 7 Nov 2010 22:22:07 -0500 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oA83dMZt292720 for ; Sun, 7 Nov 2010 22:39:22 -0500 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oA83dKpl024990 for ; Sun, 7 Nov 2010 22:39:22 -0500 In-Reply-To: <1289179768.3532.3.camel@yhuang-dev> Sender: kvm-owner@vger.kernel.org List-ID: On 11/07/2010 07:29 PM, Huang Ying wrote: > On Sun, 2010-11-07 at 00:24 +0800, Avi Kivity wrote: > >> On 11/01/2010 03:22 PM, Anthony Liguori wrote: >> >>> On 11/01/2010 02:20 PM, Huang Ying wrote: >>> >>>> Yes. As general interface, it may not work so well, but as test >>>> interface, it works quite well and useful. >>>> >>>> Do we have any mechanism to add a test only interface? >>>> >>> I'd like to see what Luiz/Markus think but definitely only a human >>> monitor interface and probably prefix the command with a 'x-' prefix >>> to indicate that it's not a supported interface. >>> >>> >> Automated testing will want to use qmp. >> > Yes. The main usage of the interface is automated testing. > That's precisely what the command should not be used for. You can't assume a gpa -> hva mapping is consistent in an external application. If you want to implement an interface for testing, you have to push more of the logic into QEMU to avoid the race. Regards, Anthony Liguori >>> The documentation should be very clear about the limitations of the >>> interface and the intended use-case. >>> >>> >> Perhaps a { execute: 'enable-version-specific-commands', arguments: >> ['pfa2hva'] } ? >> > Best Regards, > Huang Ying > > >