From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCHv2 4/5] KVM: emulator: move linearize() out of emulator code. Date: Mon, 25 Jun 2012 16:40:35 +0300 Message-ID: <4FE86A53.2060108@redhat.com> References: <1339502487-30049-1-git-send-email-gleb@redhat.com> <1339502487-30049-5-git-send-email-gleb@redhat.com> <4FE71225.2010504@redhat.com> <20120624132710.GW6533@redhat.com> <4FE7188A.2080500@redhat.com> <20120624142753.GX6533@redhat.com> <4FE86046.6090702@redhat.com> <20120625131253.GA16583@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, mtosatti@redhat.com To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35605 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755054Ab2FYNkk (ORCPT ); Mon, 25 Jun 2012 09:40:40 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5PDedw0005482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 25 Jun 2012 09:40:39 -0400 In-Reply-To: <20120625131253.GA16583@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06/25/2012 04:12 PM, Gleb Natapov wrote: >> Right. But I think we can have x86_linearize() that doesn't take a >> context parameter, only ops. >> > All ops take context parameter though. > context is meaningful for: - saving state between executions (decode/execute/execute) - passing state that is not provided via callbacks (regs/mode/flags) - returning results Only the second is relevant, and we're trying to get rid of that too. -- error compiling committee.c: too many arguments to function