From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNWOF-0002P3-CW for qemu-devel@nongnu.org; Tue, 11 Mar 2014 19:47:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNWO8-0003o5-3i for qemu-devel@nongnu.org; Tue, 11 Mar 2014 19:47:19 -0400 Message-ID: <531FA07B.1040103@suse.de> Date: Wed, 12 Mar 2014 00:47:07 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1394410549-13751-1-git-send-email-afaerber@suse.de> <1394410549-13751-10-git-send-email-afaerber@suse.de> <531D6F37.2050700@redhat.com> In-Reply-To: <531D6F37.2050700@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH qom-cpu v2 09/40] cpu: Turn cpu_handle_mmu_fault() into a CPUClass hook List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: Peter Maydell , Jia Liu , Anthony Green , Alexander Graf , Blue Swirl , Michael Walle , PowerPC , "Edgar E. Iglesias" , Guan Xuetao , Aurelien Jarno , Richard Henderson Am 10.03.2014 08:52, schrieb Paolo Bonzini: > Il 10/03/2014 01:15, Andreas F=C3=A4rber ha scritto: >> Note that while such functions may exist both for *-user and softmmu, >> only *-user uses the CPUState hook, while softmmu reuses the prototype >> for calling it directly. >=20 > I'm not sure I understand why you omit the hook for *-softmmu. It > doesn't hurt to have it, does it? Actually I wondered the same thing while preparing v2 :) and prepared an alternate version, but it did not really help cut down on complexity. The hook is needed for dispatching from common code to target code, and that part is user-only. Some targets but not all reuse the user function from softmmu code, others have two different implementations, some don't reuse at all. It's a mess. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg