From mboxrd@z Thu Jan 1 00:00:00 1970 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=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 45457C12002 for ; Thu, 15 Jul 2021 02:00:20 +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 83F44613C0 for ; Thu, 15 Jul 2021 02:00:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 83F44613C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:43808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3qff-0006Wu-UR for qemu-devel@archiver.kernel.org; Wed, 14 Jul 2021 22:00:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3qey-0005qN-M3 for qemu-devel@nongnu.org; Wed, 14 Jul 2021 21:59:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:21887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3qev-00018Q-34 for qemu-devel@nongnu.org; Wed, 14 Jul 2021 21:59:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626314367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OtDrvGCeXqca3ZpnK1p3MYcXgUibsU+Utier6X+r6RA=; b=OiJpkVFwQtG0LJ5zGBY8Bkc65DQz3GkM9zRAwUqwNEsieH8k1sY9z+/fwTOq2b2olkcOos muO8CpBv1s/AUrwL4UCsaOuveqTOWxRW3tbgMkfSTbNFKRkdyJcMp8HF9fvpht9QMr7Ijc wu3XEuF+dFqo25NlPh8T5XndjgCPZRo= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-433-uJimbiabO-WlPnUxK2kKTA-1; Wed, 14 Jul 2021 21:59:25 -0400 X-MC-Unique: uJimbiabO-WlPnUxK2kKTA-1 Received: by mail-ej1-f70.google.com with SMTP id p20-20020a1709064994b02903cd421d7803so1500446eju.22 for ; Wed, 14 Jul 2021 18:59:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=OtDrvGCeXqca3ZpnK1p3MYcXgUibsU+Utier6X+r6RA=; b=EIdg445IF1LHJd2jNMyOC5tqZ97iSNFSS8ubSw1dWLTRzKfI8JbOyKgKl9oZGARWvl yuL+x/9Bg39chOk7rFUBnfgSzZMckyOa8iDDKJF4qS80p0iGwENxlTVvUPe9Fpfh+bW8 5XigF74P6L2Gk3Ux1uScXyLj0Hk6OM1vQQ4MQVi3G8lrSBALfvgyn9Z5pDLji2jbBSi+ gIP0m4+dwfo41oge99CVWpULznsEcP+ejaDOsIlHqaoOWgsOq57M9YAe542vzG94qRVm fpdwYG1GDGWSc+B6Uezbz66qbY/vgW2aWSmtQPV9BO5WrFkX5972PcqOzEJbLiBnah/G VcJQ== X-Gm-Message-State: AOAM530lvkk+5LAwkVpoING2CTORaRaO2JYI0Eqqpqaqu6NKoGY55bCr 8TZDcA7ENRtbkz0B3SFRItH9AWCzYELsT1Ii1cJTGYMKK1SvyN8sFyEeAUx3ReFSKuIgSRa6175 80h9PVL6Zmh9KHLN9eOhH2gdQSKRxy5k= X-Received: by 2002:a50:ed89:: with SMTP id h9mr2258069edr.106.1626314364693; Wed, 14 Jul 2021 18:59:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlYKw/1RFJwbqWgY5adfcqvJRWOJi2wR8hNtr8UBDElM12w6ZaSzfNEifcJfl6Bx1W1D6a9236JouYh4bkAXU= X-Received: by 2002:a50:ed89:: with SMTP id h9mr2258037edr.106.1626314364516; Wed, 14 Jul 2021 18:59:24 -0700 (PDT) MIME-Version: 1.0 From: Cleber Rosa Date: Wed, 14 Jul 2021 21:59:13 -0400 Message-ID: Subject: tests/acceptance/multiprocess.py test failure To: qemu-devel , David Hildenbrand , Paolo Bonzini , Elena Ufimtseva , John G Johnson , Jagannathan Raman , Willian Rampazzo Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=crosa@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=216.205.24.124; envelope-from=crosa@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.699, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi everyone, The tests/acceptance/multiprocess.py:Multiprocess.test_multiprocess_x86_64 is currently failing (as of a9649a719a44894b81f38dc1c5c1888ee684acef). Unfortunately CI was unable to catch this issue earlier, because tests that require KVM are not yet running (but this should change soon). The relevant part of the test logs is: VM launch command: './qemu-system-x86_64 -display none -vga none -chardev socket,id=3Dmon,path=3D/var/tmp/avo_qemu_sock_5g22rvrp/qemu-427815= -monitor.sock -mon chardev=3Dmon,mode=3Dcontrol -chardev socket,id=3Dconsole,path=3D/var/tmp/avo_qemu_sock_5g22rvrp/qemu-427815-cons= ole.sock,server=3Don,wait=3Doff -serial chardev:console -machine pc -accel kvm -cpu host -object memory-backend-memfd,id=3Dsysmem-file,size=3D2G --numa node,memdev=3Dsysmem-file -m 2048 -kernel /home/cleber/avocado/data/cache/by_location/b4c64f15a75b083966d39d9246dd8db= 177736bb4/vmlinuz -initrd /home/cleber/avocado/data/cache/by_location/b4c64f15a75b083966d39d9= 246dd8db177736bb4/initrd.img -append printk.time=3D0 console=3DttyS0 rdinit=3D/bin/bash -device x-pci-proxy-dev,id=3Dlsi1,fd=3D16' >>> {'execute': 'qmp_capabilities'} The test remains stuck here for as long as the test is allowed to run. Because there's currently no timeout in the test, it can remain stuck forever. But, with a timeout, we end up getting: Error launching VM Command: './qemu-system-x86_64 -display none -vga none -chardev socket,id=3Dmon,path=3D/var/tmp/avo_qemu_sock_5g22rvrp/qemu-427815-monitor.= sock -mon chardev=3Dmon,mode=3Dcontrol -chardev socket,id=3Dconsole,path=3D/var/tmp/avo_qemu_sock_5g22rvrp/qemu-427815-cons= ole.sock,server=3Don,wait=3Doff -serial chardev:console -machine pc -accel kvm -cpu host -object memory-backend-memfd,id=3Dsysmem-file,size=3D2G --numa node,memdev=3Dsysmem-file -m 2048 -kernel /home/cleber/avocado/data/cache/by_location/b4c64f15a75b083966d39d9246dd8db= 177736bb4/vmlinuz -initrd /home/cleber/avocado/data/cache/by_location/b4c64f15a75b083966d39d9= 246dd8db177736bb4/initrd.img -append printk.time=3D0 console=3DttyS0 rdinit=3D/bin/bash -device x-pci-proxy-dev,id=3Dlsi1,fd=3D16' Output: "qemu-system-x86_64: ../../src/qemu/softmmu/physmem.c:2055: qemu_ram_alloc_from_fd: Assertion `(ram_flags & ~(RAM_SHARED | RAM_PMEM | RAM_NORESERVE)) =3D=3D 0' failed.\n" I've bisected it to: --- d5015b80134047013eeec10000df5ce2014ee114 is the first bad commit commit d5015b80134047013eeec10000df5ce2014ee114 Author: David Hildenbrand Date: Mon May 10 13:43:17 2021 +0200 softmmu/memory: Pass ram_flags to qemu_ram_alloc_from_fd() Let's pass in ram flags just like we do with qemu_ram_alloc_from_file()= , to clean up and prepare for more flags. Simplify the documentation of passed ram flags: Looking at our documentation of RAM_SHARED and RAM_PMEM is sufficient, no need to be repetitive. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Xu Acked-by: Eduardo Habkost for memory backend and machine core Signed-off-by: David Hildenbrand Message-Id: <20210510114328.21835-5-david@redhat.com> Signed-off-by: Paolo Bonzini backends/hostmem-memfd.c | 7 ++++--- hw/misc/ivshmem.c | 5 ++--- include/exec/memory.h | 9 +++------ include/exec/ram_addr.h | 6 +----- softmmu/memory.c | 7 +++---- 5 files changed, 13 insertions(+), 21 deletions(-) --- To reproduce it: 1. configure --target-list=3Dx86_64-softmmu 2. meson compile 3. make check-venv 4. ./tests/venv/bin/avocado --show=3Dtest run --job-timeout=3D20s tests/acceptance/multiprocess.py:Multiprocess.test_multiprocess_x86_64 It'd be helpful to know if anyone else is experiencing the same failure. Thanks, - Cleber.