From patchwork Mon Nov 16 14:41:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ambrozewicz, Adrian" X-Patchwork-Id: 1400958 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CZWxc4VNRz9s1l for ; Tue, 17 Nov 2020 01:42:12 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CZWxc2Gp2zDqLK for ; Tue, 17 Nov 2020 01:42:12 +1100 (AEDT) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org 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-Language: en-US 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+incoming=patchwork.ozlabs.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: 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 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,