From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.173754.1673890929234590131 for ; Mon, 16 Jan 2023 09:42:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U/gCAE80; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: osteffen@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673890928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zpMY4RnWneL3Gtv4G+LLVHWDZgoZz59mYnw8KmGAutk=; b=U/gCAE80ICh6yiXE78UbZb9KXR1eOt/OMJbxsh8fMGAD5b23HqaQqzse787JkxlqCXFf/r A3U7EDjNlhkFkQavX+FBee+4+VaLtG9DbFVOjYTfRU5vM9A0Iudi+mS6h5zCsi66nlweAo UGlDzoXcWyxV3r3Cce6kERIcCs/5DH8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-542-a253UhtmMaadtIkRTw4Zxw-1; Mon, 16 Jan 2023 12:42:02 -0500 X-MC-Unique: a253UhtmMaadtIkRTw4Zxw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ABAFB2A59556; Mon, 16 Jan 2023 17:42:01 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.39.192.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id B99C5C15BA0; Mon, 16 Jan 2023 17:41:58 +0000 (UTC) From: "Oliver Steffen" To: devel@edk2.groups.io Cc: Andrew Fish , Ard Biesheuvel , Bob Feng , Dandan Bi , Gerd Hoffmann , Jian J Wang , Jiewen Yao , Jordan Justen , Leif Lindholm , Liming Gao , Michael D Kinney , Michael Kubacki , Ray Ni , Sami Mujawar , Sean Brogan , Yuwei Chen , Pawel Polawski , chris.fernald@outlook.com, Oliver Steffen Subject: [PATCH v11 17/17] OfmvPkg: CI: Qemu tests: set CPU to Broadwell Date: Mon, 16 Jan 2023 18:40:44 +0100 Message-Id: <20230116174044.3346383-18-osteffen@redhat.com> In-Reply-To: <20230116174044.3346383-1-osteffen@redhat.com> References: <20230116174044.3346383-1-osteffen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Work around a bug in Ovmf that causes Ovmf to crash on startup when running in recent versions of Qemu. Setting the cpu model to something older, for example "Broadwell" works around the issue. Signed-off-by: Oliver Steffen --- OvmfPkg/PlatformCI/PlatformBuildLib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/OvmfPkg/PlatformCI/PlatformBuildLib.py b/OvmfPkg/PlatformCI/PlatformBuildLib.py index bfef9849c749..93f7d7aa13d6 100644 --- a/OvmfPkg/PlatformCI/PlatformBuildLib.py +++ b/OvmfPkg/PlatformCI/PlatformBuildLib.py @@ -194,6 +194,7 @@ class PlatformBuilder( UefiBuilder, BuildSettingsManager): cmd = "qemu-system-x86_64" args = "-debugcon stdio" # write messages to stdio args += " -global isa-debugcon.iobase=0x402" # debug messages out thru virtual io port + args += " -cpu Broadwell" # workaround Qvmf bug args += " -net none" # turn off network args += f" -drive file=fat:rw:{VirtualDrive},format=raw,media=disk" # Mount disk with startup.nsh -- 2.39.0