Received: from eggs.gnu.org ([2001:4830:134:3::10]:56692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpNQ2-0008GH-DO for qemu-devel@nongnu.org; Wed, 19 Jun 2013 14:47:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpNPy-0007fg-AR for qemu-devel@nongnu.org; Wed, 19 Jun 2013 14:47:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpNPy-0007fU-24 for qemu-devel@nongnu.org; Wed, 19 Jun 2013 14:47:42 -0400 From: Markus Armbruster References: <1371208516-7857-1-git-send-email-armbru@redhat.com> <1371208516-7857-16-git-send-email-armbru@redhat.com> <8761xgg5n5.fsf@codemonkey.ws> <87bo72oasd.fsf@blackfin.pond.sub.org> Date: Wed, 19 Jun 2013 20:47:15 +0200 In-Reply-To: <87bo72oasd.fsf@blackfin.pond.sub.org> (Markus Armbruster's message of "Wed, 19 Jun 2013 08:49:06 +0200") Message-ID: <874ncu545o.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 15/16] boot-order-test: Support fw_cfg in I/O space List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: jan.kiszka@siemens.com, qemu-devel@nongnu.org, Blue Swirl , alex.williamson@redhat.com, aviksil@linux.vnet.ibm.com, afaerber@suse.de Markus Armbruster writes: > Anthony Liguori writes: > >> Markus Armbruster writes: >> >>> Next commit needs it. >>> >>> Cc: Blue Swirl >>> Signed-off-by: Markus Armbruster >>> --- >>> tests/boot-order-test.c | 24 ++++++++++++++++-------- >>> 1 file changed, 16 insertions(+), 8 deletions(-) >>> >>> diff --git a/tests/boot-order-test.c b/tests/boot-order-test.c >>> index 7b1edc1..d1d99f8 100644 >>> --- a/tests/boot-order-test.c >>> +++ b/tests/boot-order-test.c >>> @@ -133,23 +133,31 @@ static void test_prep_boot_order(void) >>> test_boot_orders("prep", read_boot_order_prep, test_cases_prep); >>> } >>> >>> -static void read_fw_cfg(uint64_t cfg_addr, uint16_t cmd, >>> +static void read_fw_cfg(uint64_t cfg_addr, bool addr_is_io, uint16_t cmd, >>> void *buf, size_t len) >> >> I missed it earlier, but you can use libqos/fw_cfg.h for this. > > Missed on rebase, thanks for pointing it out. > > Two options: > > (1) You commit this minor code duplication now, and I promise to clean > it up in a follow-up series. > > (2) You tell me to rework this series so it uses libqos/fw_cfg.h from > the start. > > I'd prefer (1). (3) Commit PATCH 01-06/16 now (which passed your review), bounce the rest back to me. Still prefer (1), though :)