Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,TRACKER_ID,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B90C2C433E7 for ; Thu, 8 Oct 2020 16:52:45 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0317321D7D for ; Thu, 8 Oct 2020 16:52:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0317321D7D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:57506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQZ9o-0003wh-2S for qemu-devel@archiver.kernel.org; Thu, 08 Oct 2020 12:52:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQZ8t-0003Rw-2R for qemu-devel@nongnu.org; Thu, 08 Oct 2020 12:51:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:57494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQZ8q-0003Mo-VA for qemu-devel@nongnu.org; Thu, 08 Oct 2020 12:51:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 86350AD7F; Thu, 8 Oct 2020 16:51:43 +0000 (UTC) Subject: Re: does make check now require TCG? Or is it a parallelism issue? From: Claudio Fontana To: Paolo Bonzini References: <11ef73ff-4178-b3e8-2e49-44ff014a13ed@suse.de> <569520f6-adf6-6212-9625-a184bf499e24@redhat.com> <16b01645-7a80-7f79-aba0-fd6c6c8ba6e8@suse.de> <62339951-606d-15d0-e2ad-bd46f3e6de87@redhat.com> <0b6397b1-019c-4b92-f00d-09214e276e46@suse.de> Message-ID: <8a53656a-89bb-f179-9e27-e491d83f544d@suse.de> Date: Thu, 8 Oct 2020 18:51:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <0b6397b1-019c-4b92-f00d-09214e276e46@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=195.135.220.15; envelope-from=cfontana@suse.de; helo=mx2.suse.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/07 23:49:25 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.214, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TRACKER_ID=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Bennee , qemu-devel Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 10/8/20 6:35 PM, Claudio Fontana wrote: > On 10/8/20 6:31 PM, Paolo Bonzini wrote: >> On 08/10/20 18:25, Claudio Fontana wrote: >>> On 10/8/20 5:34 PM, Claudio Fontana wrote: >>>> On 10/8/20 5:02 PM, Paolo Bonzini wrote: >>>>> On 08/10/20 16:48, Claudio Fontana wrote: >>>>>> on master, a build without tcg like: >>>>>> >>>>>> exec '../configure' '--disable-tcg' '--enable-kvm' '--enable-hax' "$@" >>>>>> >>>>>> make -j120 check >>>>>> Generating qemu-version.h with a meson_exe.py custom command >>>>>> make: *** No rule to make target 'qemu-system-aarch64', needed by 'check-block'. Stop. >>>>>> make: *** Waiting for unfinished jobs.... >>>>>> >>>>>> qemu-system-aarch64 is required for check-block now? >>>>> >>>>> No, it's not, it's an unnecessary dependency. This will fix it: >>>>> >>>>> diff --git a/tests/Makefile.include b/tests/Makefile.include >>>>> index 5aca98e60c..1ca70d88ce 100644 >>>>> --- a/tests/Makefile.include >>>>> +++ b/tests/Makefile.include >>>>> @@ -140,7 +140,7 @@ QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXE >>>>> check: check-block >>>>> check-block: $(SRC_PATH)/tests/check-block.sh qemu-img$(EXESUF) \ >>>>> qemu-io$(EXESUF) qemu-nbd$(EXESUF) $(QEMU_IOTESTS_HELPERS-y) \ >>>>> - $(patsubst %-softmmu,qemu-system-%,$(filter %-softmmu,$(TARGET_DIRS))) >>>>> + qemu-system-$(patsubst ppc64%,ppc64, $(shell uname -m)) >>>>> @$< >>>>> endif >>>>> >>>>> >>>>> >>>> >>>> thanks this works! >>>> >>>>>> If I run without -j: >>>>>> >>>>>> Running test qtest-i386: qmp-cmd-test >>>>>> Broken pipe >>>>>> ../tests/qtest/libqtest.c:175: kill_qemu() detected QEMU death from signal 6 (Aborted) (core dumped) >>>>>> ERROR qtest-i386: qmp-cmd-test - too few tests run (expected 53, got 45) >>>>>> make: *** [Makefile.mtest:1074: run-test-151] Error 1 >>>>> >>>>> This one is different and I've never seen it. >>>> >>>> This one seems an additional, non-tcg build only error, will update when I have more details. >>>> >>>>> >>>>> Paolo >>>>> >>>> >>>> Ciao, >>>> >>>> Claudio >>>> >>> >>> Seems to be some QMP calls to icount code from replay happening during the tests, which of course do not find any icount there.. >>> >>> (gdb) bt >>> #0 0x00007f2b4d115520 in raise () at /lib64/libc.so.6 >>> #1 0x00007f2b4d116b01 in abort () at /lib64/libc.so.6 >>> #2 0x000056295aaf5889 in icount_get_raw () at ../stubs/icount.c:20 >>> #3 0x000056295a7934a5 in replay_get_current_icount () at ../replay/replay.c:71 >>> #4 0x000056295a78719d in qmp_query_replay (errp=errp@entry=0x7ffe727a4538) at ../replay/replay-debugging.c:55 >>> #5 0x000056295aac0137 in qmp_marshal_query_replay (args=, ret=0x7ffe727a45a0, errp=0x7ffe727a4598) >>> at qapi/qapi-commands-replay.c:55 >>> #6 0x000056295aae88a3 in qmp_dispatch >>> (cmds=0x56295b3b5ce0 , request=request@entry=0x7f2b3c004db0, allow_oob=) at ../qapi/qmp-dispatch.c:155 >>> #7 0x000056295aa6ab7f in monitor_qmp_dispatch (mon=0x56295bee7f80, req=0x7f2b3c004db0) at ../monitor/qmp.c:145 >>> #8 0x000056295aa6b3ba in monitor_qmp_bh_dispatcher (data=) at ../monitor/qmp.c:234 >>> #9 0x000056295aaeb5b8 in aio_bh_poll (ctx=ctx@entry=0x56295bcd5130) at ../util/async.c:164 >>> #10 0x000056295aad76de in aio_dispatch (ctx=0x56295bcd5130) at ../util/aio-posix.c:380 >>> #11 0x000056295aaeb49e in aio_ctx_dispatch (source=, callback=, user_data=) >>> at ../util/async.c:306 >>> #12 0x00007f2b4e268f07 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0 >>> #13 0x000056295aac96fa in glib_pollfds_poll () at ../util/main-loop.c:221 >>> #14 0x000056295aac96fa in os_host_main_loop_wait (timeout=-1) at ../util/main-loop.c:244 >>> #15 0x000056295aac96fa in main_loop_wait (nonblocking=nonblocking@entry=0) at ../util/main-loop.c:520 >>> #16 0x000056295a99083d in qemu_main_loop () at ../softmmu/vl.c:1677 >>> #17 0x000056295a71b17e in main (argc=, argv=, envp=) at ../softmmu/main.c:50 >>> >> >> Ah, query-replay probably should return an error if !tcg_enabled(). >> >> Paolo >> > > aha, and we might even compile away (almost) the whole replay/ if not under tcg, and just put the necessary qmp stuff in stubs/ ... ? > > Ciao, > > C > Oh I see there has been quite a lot of new replay code grafted around the codebase. I guess the commit breaking the fun for me was e3b09ad2b6e9b23ebc7c2ba133e8a22e53dec301 commit e3b09ad2b6e9b23ebc7c2ba133e8a22e53dec301 Author: Pavel Dovgaluk Date: Sat Oct 3 20:13:20 2020 +0300 replay: introduce info hmp/qmp command This patch introduces 'info replay' monitor command and corresponding qmp request. These commands request the current record/replay mode, replay log file name, and the instruction count (number of recorded/replayed instructions). The instruction count can be used with the replay_seek/replay_break commands added in the next two patches. Signed-off-by: Pavel Dovgalyuk Acked-by: Dr. David Alan Gilbert Acked-by: Markus Armbruster Message-Id: <160174520026.12451.13112161947433306561.stgit@pasha-ThinkPad-X280> Signed-off-by: Paolo Bonzini