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=-8.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 35E0AC5519F for ; Mon, 16 Nov 2020 14:42:41 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 39BC4206E0 for ; Mon, 16 Nov 2020 14:42:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 39BC4206E0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CZWy53mmmzDqKP for ; Tue, 17 Nov 2020 01:42:37 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=adrian.ambrozewicz@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CZWwP2knQzDqJm for ; Tue, 17 Nov 2020 01:41:08 +1100 (AEDT) IronPort-SDR: xxl4vE5SLua/6Qaqj8r8ooOPWJFh1WGkN9iVmRDOMsvx4BxsYlyJC9uUiPSQFsBaxDpDvGHa7Z m18x/4NFxuZw== X-IronPort-AV: E=McAfee;i="6000,8403,9806"; a="169970905" X-IronPort-AV: E=Sophos;i="5.77,482,1596524400"; d="scan'208";a="169970905" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2020 06:41:05 -0800 IronPort-SDR: ZA/4xWmGNnKbWp4/RJqAYcK0uBQkt7ijqdDcR3gKP9wmW5MX2mJqk0Hwf8ncUdwZDGQc2d2jzi xargAlAnmeiQ== X-IronPort-AV: E=Sophos;i="5.77,482,1596524400"; d="scan'208";a="358483487" Received: from aambroze-mobl.ger.corp.intel.com (HELO [10.213.2.229]) ([10.213.2.229]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2020 06:41:04 -0800 To: "openbmc@lists.ozlabs.org" From: "Ambrozewicz, Adrian" Subject: QEMU - No 'PCI' bus found for device 'virtio-rng-pci' Message-ID: <08784c20-7770-f1d1-19d5-a4c6e1648b28@linux.intel.com> Date: Mon, 16 Nov 2020 15:41:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" Hello, In recent poky bump we've inherited introduction of new option related to RNG forwarding in poky/scripts/runqemu script. This unfortunately makes my AST2500 target unable to start with following error: qemu-system-arm: -device virtio-rng-pci,rng=rng0: No 'PCI' bus found for device 'virtio-rng-pci' The naive workaround is to revert this change like so: diff --git a/poky/scripts/runqemu b/poky/scripts/runqemu index e5e66f345..e62d869c2 100755 --- a/poky/scripts/runqemu +++ b/poky/scripts/runqemu @@ -1336,7 +1336,7 @@ class BaseConfig(object): if not os.access(qemu_bin, os.X_OK): raise OEPathError("No QEMU binary '%s' could be found" % qemu_bin) - self.qemu_opt = "%s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.get('QB_RNG'), self.get('ROOTFS_OPTIONS'), self.get('QB_OPT_APPEND')) + self.qemu_opt = "%s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.get('ROOTFS_OPTIONS'), self.get('QB_OPT_APPEND')) for ovmf in self.ovmf_bios: format = ovmf.rsplit('.', 1)[-1] According to https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg141309.html there is also a 'proper' way to disable that option by machine/config files. However, I am curious if there is a proper fix to enable that option on my target? Every optimization is always welcome. Regards, Adrian