From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwG84-0000cG-4H for qemu-devel@nongnu.org; Sun, 15 Jun 2014 15:30:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwG7x-0002MZ-Sf for qemu-devel@nongnu.org; Sun, 15 Jun 2014 15:30:12 -0400 Received: from ignoranthack.me ([199.102.79.106]:53922 helo=mail.ignoranthack.me) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwG7x-0002Ka-PG for qemu-devel@nongnu.org; Sun, 15 Jun 2014 15:30:05 -0400 From: Sean Bruno In-Reply-To: References: <1402246651-71099-1-git-send-email-sbruno@freebsd.org> <1402246651-71099-6-git-send-email-sbruno@freebsd.org> <1402846430.2347.4.camel@bruno> Content-Type: text/plain; charset="us-ascii" Date: Sun, 15 Jun 2014 12:30:03 -0700 Message-ID: <1402860603.2347.8.camel@bruno> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 05/10 v4] bsd-user: Implement new syscall print_sysarch and add strace support Reply-To: sbruno@freebsd.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On Sun, 2014-06-15 at 20:20 +0100, Peter Maydell wrote: > On 15 June 2014 16:33, Sean Bruno wrote: > > I think there's some confusion between the strace support for the new > > print_sysarch() and the existing syscall do_freebsd_sysarch(). > > Only because you've put parts of both in the same patch :-) > Oh, I didn't say *where* the confusion was. It is most definitely on my side. :-) > > If I follow the code, the existing do_freebsd_sysarch() syscall is a > > programtical way of figuring out what arch is running. Whereas > > print_sysarch() spams the arch into your strace output. > > The existing do_freebsd_sysarch() is a bunch of functions in > syscall.c, with TARGET_* ifdefs selecting which one you get. > This patch seems to be attempting to change that to having > the per-arch implementations in the per-arch files. That's a > good idea, but this patch is only doing half of the job -- you > need to remove the old implementations and wire up the new. > Really the changes to the implementation and to the strace > support should go in separate patches. > > > Bearing that in mind, I think that the changes here are indeed correct > > for this patchset. > > I still disagree here. Look at the TARGET_I386 implementation > of do_freebsd_sysarch() in the existing syscall.c, and at the > new function do_freebsd_arch_sysarch() you've added in this patch in > bsd-user/x86_64/target_arch_sysarch.h. They're basically > identical -- this should be a code-move change, but you've > only got the 'add new version', not the 'and remove the old'. > > I think if you remove all the do_freebsd_arch_sysarch() > functions from this patch you're left with just the strace > support (the strace related functions all have 'print' in > their names). > > thanks > -- PMM Ok, more staring required. sean