From nobody Mon Sep 7 05:40:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=fail (Bad Signature); dmarc=fail(p=none dis=none) header.from=korins.ky Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788436443044586.2304240780638; Thu, 3 Sep 2026 04:54:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2602-0003jw-UB; Thu, 03 Sep 2026 07:52:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x2601-0003iV-7j; Thu, 03 Sep 2026 07:52:57 -0400 Received: from mx2.catap.net ([2a01:4f9:3b:5410::2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x25zz-0002hG-6t; Thu, 03 Sep 2026 07:52:56 -0400 Received: by mx2.catap.net (OpenSMTPD) with ESMTPSA id db389ec9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Sep 2026 13:52:50 +0200 (CEST) Received: from localhost (matebook.home.arpa [local]) by matebook.home.arpa (OpenSMTPD) with ESMTPA id b4fb2c83; Thu, 3 Sep 2026 13:52:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=20240125rsa; cv=none; d=mx.catap.net; b=np1BU3p RTzWRwQK6Lth1u4upehvhHSAXUVQyUccdRYryJ+OtlJLXEvknXu+LegZaUeswbGa5A8jcW T8w7BhYbjWPLR8xJar70HiT8jHtUwTUHyvit2T01rtAJ1foHcEMSD4iP5pRHdDSl9WsFpz UnEvg7RDIdn16VyjmRo1TQLaz0hnhyzzOmePtHO6m1E9U+hOy51Zs83VYvobc6LeGMxH51 tebXivvgfDSXJOViMZ1y+zS2VEBe8nYIrUFp7Y4BXG2x4AlzdYsalsAmAG1Uc5uyJVn796 sOrFowK5fGiYjlQMcfoGNmGLyIg/zYs9Oj2M8ifHPC+ky24Fnn9DEUA== ARC-Message-Signature: i=1; a=rsa-sha256; s=20240125rsa; c=simple/simple; bh=0 OTWgZjx9Loia+02herFsXxqxRWHhR9TMYMBOb0kF5U=; h=references:in-reply-to: date:subject:cc:to:from:dkim-signature:dkim-signature; d=mx.catap.net; b=SDGKQReAx9VpW5Z9ibeGSedfnnGvvhujvD3Lp8IAhbbUn5LyBTcIpwOvUQSH4dSfuSfp AACjCgFCGyrN0gpNCgn3KDbtVkuMD9n7MtOZoH/b1GHX8grof7n//M6khv1pF8snT5H5tj 73ATViKqiR+wD6vlzE+YV2vXzDr6mRgtYooY5cMz6BsbJ0jxWxeFQWXeHFX/3gjTVgoUOj 7CpodNb8kQhTInF17xbuCdaHIOuTzU/F85ZgJth+z6OTPm1fzqpDZMPH95CglsLufltz5G JxyAPWeGU3bzXDWPy9jFcU5j0BMoMkTfSvj5zKfxhH3LOmmEIlK/7mNGADlLEHbg== ARC-Authentication-Results: i=1; mx.catap.net; dkim=pass header.s=20240125rsa header.d=korins.ky header.a=rsa-sha256 header.b=F8zXYT9A; dkim=pass header.s=20240125ed25519 header.d=korins.ky header.a=ed25519-sha256 header.b=5D2i2Tg6; arc=none; iprev=pass; spf=none smtp.helo=postmaster@matebook.home.arpa; spf=softfail smtp.mailfrom=kirill@korins.ky DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=20240125rsa; bh=0OTWgZjx 9Loia+02herFsXxqxRWHhR9TMYMBOb0kF5U=; h=references:in-reply-to:date: subject:cc:to:from; d=korins.ky; b=F8zXYT9AvGYfdGAhm/aOHp3/WvRsfc8+rxA sxti+4e47qKpjUmb7Wwdjqt2uL0TyhNGM+PIh99zRTHcH/zBqniA+3aW3kQuSg++LRrDDf HPxhvJ8scW93im3IIJJ5uv0mPPLo+Vj5+BAtPA1esNs76VE2BY0FIN5mzjeO2gJKgVMWhc QBRyocx0Qs6UbqT8mWa/Nb4J3V43zgYrPlYsvivq8kbRtz+0j3mrpD2lefxGE3kcScmgiY 3dPbJzVYkz8m6cJhl/QaBreEAbTz1oKKuPeZK834ccVku+FUVL6/q/eqKpo80u65nsX2xx gZrs/inVGpsrcKQvW2lPE+F6KBg== DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=20240125ed25519; bh=0OTWgZjx9Loia+02herFsXxqxRWHhR9TMYMBOb0kF5U=; h=references: in-reply-to:date:subject:cc:to:from; d=korins.ky; b=5D2i2Tg6ZXTw2vkJxk ynR2kogZWd/prusLQWOV+/v+mgsizinwr5J1cRK71g9i5z/GaX2cbQfL/ggZ7QRY2XDg== From: "Kirill A. Korinsky" To: Mark Cave-Ayland , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: "Kirill A. Korinsky" Subject: [PATCH 1/5] openpic: Preserve IRQs masked by CTPR Date: Thu, 3 Sep 2026 13:50:26 +0200 Message-ID: <20260903115229.95811-2-kirill@korins.ky> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260903115229.95811-1-kirill@korins.ky> References: <20260903115229.95811-1-kirill@korins.ky> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a01:4f9:3b:5410::2; envelope-from=kirill@korins.ky; helo=mx2.catap.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1788436446059158500 Content-Type: text/plain; charset="utf-8" OpenBSD exposes this by raising CTPR while handling interrupts. If an edge remains pending when EOI lowers the servicing priority, QEMU reasserts INT without checking CTPR; IACK then returns the spurious vector and consumes the masked edge before CTPR permits delivery. Signed-off-by: Kirill A. Korinsky --- hw/intc/openpic.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c index 99d2a1e65e..6f9a562163 100644 --- a/hw/intc/openpic.c +++ b/hw/intc/openpic.c @@ -1033,8 +1033,9 @@ static void openpic_cpu_write_internal(void *opaque, = hwaddr addr, n_IRQ =3D IRQ_get_next(opp, &dst->raised); if (n_IRQ !=3D -1) { src =3D &opp->src[n_IRQ]; - if (s_IRQ =3D=3D -1 || - IVPR_PRIORITY(src->ivpr) > dst->servicing.priority) { + if (IVPR_PRIORITY(src->ivpr) > dst->ctpr && + (s_IRQ =3D=3D -1 || + IVPR_PRIORITY(src->ivpr) > dst->servicing.priority)) { DPRINTF("Raise OpenPIC INT output cpu %d irq %d", idx, n_IRQ); qemu_irq_raise(opp->dst[idx].irqs[OPENPIC_OUTPUT_INT]); @@ -1070,12 +1071,13 @@ static uint32_t openpic_iack(OpenPICState *opp, IRQ= Dest *dst, int cpu) } =20 src =3D &opp->src[irq]; - if (!(src->ivpr & IVPR_ACTIVITY_MASK) || - !(IVPR_PRIORITY(src->ivpr) > dst->ctpr)) { + if (!(src->ivpr & IVPR_ACTIVITY_MASK)) { error_report("%s: bad raised IRQ %d ctpr %d ivpr 0x%08x", __func__, irq, dst->ctpr, src->ivpr); openpic_update_irq(opp, irq); retval =3D opp->spve; + } else if (IVPR_PRIORITY(src->ivpr) <=3D dst->ctpr) { + return opp->spve; } else { /* IRQ enter servicing state */ IRQ_setbit(&dst->servicing, irq); --=20 2.55.0 From nobody Mon Sep 7 05:40:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=fail (Bad Signature); dmarc=fail(p=none dis=none) header.from=korins.ky Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788436428953813.4616359141417; Thu, 3 Sep 2026 04:53:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2604-0003kf-1V; Thu, 03 Sep 2026 07:53:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x25zz-0003hw-SN; Thu, 03 Sep 2026 07:52:56 -0400 Received: from mx1.catap.net ([162.55.82.72]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x25zy-0002h2-4B; Thu, 03 Sep 2026 07:52:55 -0400 Received: by mx1.catap.net (OpenSMTPD) with ESMTPSA id facddbdd (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Sep 2026 13:52:50 +0200 (CEST) Received: from localhost (matebook.home.arpa [local]) by matebook.home.arpa (OpenSMTPD) with ESMTPA id ffec5fd8; Thu, 3 Sep 2026 13:52:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=20240125rsa; cv=none; d=mx.catap.net; b=PcsW2/r KJGro6qfT3w4RfpEaZeFaKvZhyozCRYxMDjWyytTqupz1Ep66PRC07IJaJAYNdHM+1jdUw nxlIT47n1sRCDukQU2/BIY9Zdb2vMuImaswgw3Zb1gKxqe+M9OHrY8xEQ17UBekIXBCXY8 RA/kBqVYn7OAlfgMmDDLXTFWVXFo3Cb/ZTV1XH4C+3Smhqur8sglxNcQ36KcW4vwZ68hxc fg+GrmfKLuaEvtdJ5fWc5dnfwKeNUK2YaX2CIanJyTIb6wuIafRLyzJgA6sEqY0uAk0vMU dfD9AmFTU5ghGFTp0G+6JtYC7pXVxsHSpmHwGTNhQEMAOYPgcCLo3WA== ARC-Message-Signature: i=1; a=rsa-sha256; s=20240125rsa; c=simple/simple; bh=L 38mssKJShTqPMLPvNfwMyO1HAru0zAlCLDv1fhZDAs=; h=references:in-reply-to: date:subject:cc:to:from:dkim-signature:dkim-signature; d=mx.catap.net; b=LeG3ZikxumWJigEHkgb61RzkGd5BDwn2JbRDW6ly4Aa2fHiPvCCXEsWbYmdmPKoHZt+p gzy+5Ifs3oaY6WnCitUrdpZkIv0+4SBAekBTIFIPFZStxI0LpR54Uky4WuJyNiyJ7W0n6M Eue2K6YjXEL793nEmZ7/8DjuTDpi7+9OgF/gUzrnddjZQtWulS4g5OASvu3FUVPD5h+PIk Vm4qz6le6yERo2u0ORxLiZFXd91rNuh4Uy2GcZ6SW1+RiVNF5xCKMhfU9JoMTA7nCTjUbs 2S7ou4kQQkjxK509ZUXrclThtCifglT7v+l62YcehCvwzz+/uOkgKI6uspxe8oUA== ARC-Authentication-Results: i=1; mx.catap.net; dkim=pass header.s=20240125rsa header.d=korins.ky header.a=rsa-sha256 header.b=JNl7wiu+; dkim=pass header.s=20240125ed25519 header.d=korins.ky header.a=ed25519-sha256 header.b=qZQBEu0z; arc=none; iprev=pass; spf=none smtp.helo=postmaster@matebook.home.arpa; spf=softfail smtp.mailfrom=kirill@korins.ky DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=20240125rsa; bh=L38mssKJ ShTqPMLPvNfwMyO1HAru0zAlCLDv1fhZDAs=; h=references:in-reply-to:date: subject:cc:to:from; d=korins.ky; b=JNl7wiu+UcKrs0S3Btf9saOKlGsGfLMY1uC WL03XZ1KBcsQqJXk/cz7Lsk37XA8WJtsCqy4+3cSrAL6QDMTBozhhT0puRCAVwmJRmXd5f f2N8ZsS/mWhOSvM6J1slgRvrQAbEaXlJhSU1N3NgaLj6fbKupXB2LyPTp/hPDpTLlDBjt9 RvpfLK4+ysNQ2U3olaioHf1qRsWQEBjiZRmCgJ0ybcM6bUe7nJM+s2rvWhIrGzPcIIE/vo LO5MSpHXfx2zmIIlwMT+DMX7Uir+85/wcvobxe1cgp2SV4i+ubbCUDrcw9Be3BQwIPHd0D R/vtnmv0gievPReviKGi5rS/KFw== DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=20240125ed25519; bh=L38mssKJShTqPMLPvNfwMyO1HAru0zAlCLDv1fhZDAs=; h=references: in-reply-to:date:subject:cc:to:from; d=korins.ky; b=qZQBEu0zJnUToy07Ec 4PPtxvhll9KVLSUF/m1SjdEZlHRKQ+9eeFU49gV/3QNeCXcFdaF9vsz4Jic9Ycya7WCA== From: "Kirill A. Korinsky" To: Mark Cave-Ayland , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: "Kirill A. Korinsky" Subject: [PATCH 2/5] ppc: Raise decrementer IRQ on zero write Date: Thu, 3 Sep 2026 13:50:27 +0200 Message-ID: <20260903115229.95811-3-kirill@korins.ky> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260903115229.95811-1-kirill@korins.ky> References: <20260903115229.95811-1-kirill@korins.ky> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=162.55.82.72; envelope-from=kirill@korins.ky; helo=mx1.catap.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1788436431749158500 Content-Type: text/plain; charset="utf-8" OpenBSD writes zero to an edge triggered decrementer, then enters idle expecting its interrupt. QEMU defers the already due edge to a timer at the current virtual time, leaving the guest stalled. Signed-off-by: Kirill A. Korinsky --- hw/ppc/ppc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index b123b4cc1c..d99e47d532 100644 --- a/hw/ppc/ppc.c +++ b/hw/ppc/ppc.c @@ -885,6 +885,7 @@ static void __cpu_ppc_store_decr(PowerPCCPU *cpu, int64= _t now, uint64_t *nextp, * an edge interrupt, so raise it here too. */ if (((flags & PPC_DECR_UNDERFLOW_LEVEL) && signed_value < 0) || + ((flags & PPC_DECR_UNDERFLOW_TRIGGERED) && value =3D=3D 0) || ((flags & PPC_DECR_UNDERFLOW_TRIGGERED) && signed_value < 0 && signed_decr >=3D 0)) { (*raise_excp)(cpu); --=20 2.55.0 From nobody Mon Sep 7 05:40:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=fail (Bad Signature); dmarc=fail(p=none dis=none) header.from=korins.ky Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788436454631154.21063496683087; Thu, 3 Sep 2026 04:54:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2606-0003p0-Ht; Thu, 03 Sep 2026 07:53:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x2601-0003ii-Lk; Thu, 03 Sep 2026 07:52:57 -0400 Received: from mx1.catap.net ([2a01:4f8:271:125e::2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x2600-0002hD-0Y; Thu, 03 Sep 2026 07:52:57 -0400 Received: by mx1.catap.net (OpenSMTPD) with ESMTPSA id 80a74f4f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Sep 2026 13:52:50 +0200 (CEST) Received: from localhost (matebook.home.arpa [local]) by matebook.home.arpa (OpenSMTPD) with ESMTPA id 63054464; Thu, 3 Sep 2026 13:52:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=20240125rsa; cv=none; d=mx.catap.net; b=mkxIAet Ae2rPfCniM5YpP4wcj1aTEzLB9fcaa+dqTjsFGXL3uObNsSu0mCk/ECSJELhJU4VuQ9OcV CCi1sbJtemLvC8JymKpyR7FQzAR151A013PXkkHyVD3bC3ZADkK1Hlsi32mT9QuMFThZnl pir0rLV53k5ElOrtZBGD8czthJNuehLNxa0KQrRxJxsI3cIRgNKjtApSo8cCRjbOs98NaM ctITy9AdgEbPT04+0fUVUhmKLwiLGWrvzi4f70h5xNxM0cipW4AVs9Qrjp1fnNCxvZpEOL P1go4+5LiXMGQUwMJNUOFrTwmNhT2GuuSAI6ZFEirhNI52P3qjhC/RA== ARC-Message-Signature: i=1; a=rsa-sha256; s=20240125rsa; c=simple/simple; bh=k oHFNGi4Fw3yPpaGm3FaF7mlvXRBicgrFjENxa3+hOw=; h=references:in-reply-to: date:subject:cc:to:from:dkim-signature:dkim-signature; d=mx.catap.net; b=MCwud1Dl3Y1Kstp4aYEZPa3ctrn/5E2Sr5RqzeZAcuvXgIMJWtEwy3VH9Nf96x6WakQw wn1cwEBIQfW0g0Fj0Y8IYs5Djuy1K87vUbnMjt8NATqY6QfM29FeOVSlZH69sFgkDQ2gaZ Qkvh4/lQdMkS62YenIP4uDjiA/Kb1S4BWE/JpW+Xecp2IhgABjUcQ/mIZvD1rmSnmDMRzP KjpFbEzL0idTyGSXMBXE7XchI9F5Y0VacpsOgaYlRCs5IDM1SurSDvphUC/wRo5ondu4ew 5kaByfYMnzoe0KIp8wreAo82UHmJQ8T3uxmJL87AUiwgeMD1J0YdTyy+Yaur2fPw== ARC-Authentication-Results: i=1; mx.catap.net; dkim=pass header.s=20240125rsa header.d=korins.ky header.a=rsa-sha256 header.b=NVbsQ3/e; dkim=pass header.s=20240125ed25519 header.d=korins.ky header.a=ed25519-sha256 header.b=QI+SDLrs; arc=none; iprev=pass; spf=none smtp.helo=postmaster@matebook.home.arpa; spf=softfail smtp.mailfrom=kirill@korins.ky DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=20240125rsa; bh=koHFNGi4 Fw3yPpaGm3FaF7mlvXRBicgrFjENxa3+hOw=; h=references:in-reply-to:date: subject:cc:to:from; d=korins.ky; b=NVbsQ3/eRgR2bURBDLS6Dd1qglKLM2dFOaS zQX5GG6crSY2+TiW6GFT0ANAfbxiKtXKy/r+dGUIJAiKA6HK9zZTheRSXPJ5z7QlbWhqUA iYYGegfoMk/uOJtHAxs1bn2iXK8kuHJABq6+6oceGF0afSt6BPrwsvgVUJUjFDpw2ODDgu N1sJGQyZejsr2oDmwPJ3w0r6u60OGWwYd0PBnCgR0n74QL2aEqRjKIvDH3Z0dMyPYcjvri 5szH81PqmKjgvysd/mp6gnvq0X8DGN0Za5KtQC8ArJ1oY16eloUe4jhMc7k2gm72Z549DT h+PKcTYsGtEkmcNY4b70S6TFC1A== DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=20240125ed25519; bh=koHFNGi4Fw3yPpaGm3FaF7mlvXRBicgrFjENxa3+hOw=; h=references: in-reply-to:date:subject:cc:to:from; d=korins.ky; b=QI+SDLrsxIH2zBJ4UA bB6Y0DxACiFGOyjuCMl2kpE7NUTAQyQk5/yVg6Zb1/hmzdIVC00+dLNYSILHs/PDRpBg== From: "Kirill A. Korinsky" To: Mark Cave-Ayland , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: "Kirill A. Korinsky" Subject: [PATCH 3/5] cuda: Include command in successful ADB replies Date: Thu, 3 Sep 2026 13:50:28 +0200 Message-ID: <20260903115229.95811-4-kirill@korins.ky> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260903115229.95811-1-kirill@korins.ky> References: <20260903115229.95811-1-kirill@korins.ky> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a01:4f8:271:125e::2; envelope-from=kirill@korins.ky; helo=mx1.catap.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1788436455825158500 Content-Type: text/plain; charset="utf-8" OpenBSD and Linux expect the ADB command between the CUDA status and reply data. QEMU omits it on success, so guests consume the first data byte as the command and lose it from the reply. Signed-off-by: Kirill A. Korinsky --- hw/misc/macio/cuda.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c index 312dde242b..ccb3e1d74b 100644 --- a/hw/misc/macio/cuda.c +++ b/hw/misc/macio/cuda.c @@ -431,11 +431,12 @@ static void cuda_receive_packet_from_host(CUDAState *= s, { uint8_t obuf[ADB_MAX_OUT_LEN + 3]; int olen; - olen =3D adb_request(&s->adb_bus, obuf + 2, data + 1, len - 1); + olen =3D adb_request(&s->adb_bus, obuf + 3, data + 1, len - 1); if (olen > 0) { obuf[0] =3D ADB_PACKET; obuf[1] =3D 0x00; - cuda_send_packet_to_host(s, obuf, olen + 2); + obuf[2] =3D data[1]; + cuda_send_packet_to_host(s, obuf, olen + 3); } else { /* error */ obuf[0] =3D ADB_PACKET; --=20 2.55.0 From nobody Mon Sep 7 05:40:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=fail (Bad Signature); dmarc=fail(p=none dis=none) header.from=korins.ky Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17884364105171012.1205362596759; Thu, 3 Sep 2026 04:53:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2604-0003l2-Rr; Thu, 03 Sep 2026 07:53:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x2602-0003jU-Lm; Thu, 03 Sep 2026 07:52:58 -0400 Received: from mx2.catap.net ([65.21.79.163]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x2601-0002h1-1D; Thu, 03 Sep 2026 07:52:58 -0400 Received: by mx2.catap.net (OpenSMTPD) with ESMTPSA id ef7efe5f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Sep 2026 13:52:50 +0200 (CEST) Received: from localhost (matebook.home.arpa [local]) by matebook.home.arpa (OpenSMTPD) with ESMTPA id ac6433a2; Thu, 3 Sep 2026 13:52:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=20240125rsa; cv=none; d=mx.catap.net; b=aKqfIPv 8iJzdFI3a75NoeR/ynDbmY4jBIJAEuy9biFf6iMjnADlyhJRvCJA00kMXFFKhX6/lL527Z hqfZ+wMgV6hwM+ov3414222WR01BnwrvZyAnAXO1kEaiKMKPDvEmGw8zz6O98ak2rvEywF mbuJwdAmVcNEaxDoRI9PzVKsy1fFvhP+wOe8GSLwqj1pftVIJYxagSPbUqK7mOST9fJCe4 klOwX5M5dOFYjvs2D12cRMsATL2FMlaVagOqq7oOLE7BVY1Zt8pLs0DIJpzSF4qKcvmZNS lag/awCb8RpBw8oGJ5gPl/Ol40jtvnSEMtXjWv2FNM8cwVz5qhgrCAQ== ARC-Message-Signature: i=1; a=rsa-sha256; s=20240125rsa; c=simple/simple; bh=O qTl22l5p6/CPHHVITgZQsvYvoHPLOjk9ekmkSr5Lw8=; h=references:in-reply-to: date:subject:cc:to:from:dkim-signature:dkim-signature; d=mx.catap.net; b=c6+6Wzgtpv28oM1hyQZoOPGyBIfT5WSBJr2v5mbXHw4OCCjqDvQVM2OPwBTil2oha7pZ OHecLkA1G7HSq4GOTVuSFuszSPW5zoRIM89o4iUHkGph0CdqRoUjWE+tL4pBELS0ZaV0tT wgdWCTdyFhDvYWa3kQdyJE5hFXunjTOcJylySdWlUV31255QAvSKx36jPXXFqbD73VXZvw oirxWJMQAtur8/m9L3r+il5IWx87ubT2/H568xMJsb6j7gCQaYgMeH0QGZoGUkE6YwW4Qp dtk9nBFdJZKJLIV/kATD4pjfTb4OwJwRu/mWF6vmg7pGGMu5qi6aUqkDjBdA0R1g== ARC-Authentication-Results: i=1; mx.catap.net; dkim=pass header.s=20240125rsa header.d=korins.ky header.a=rsa-sha256 header.b=VqiKPQPw; dkim=pass header.s=20240125ed25519 header.d=korins.ky header.a=ed25519-sha256 header.b=K9n70op4; arc=none; iprev=pass; spf=none smtp.helo=postmaster@matebook.home.arpa; spf=softfail smtp.mailfrom=kirill@korins.ky DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=20240125rsa; bh=OqTl22l5 p6/CPHHVITgZQsvYvoHPLOjk9ekmkSr5Lw8=; h=references:in-reply-to:date: subject:cc:to:from; d=korins.ky; b=VqiKPQPw+HWuORViuXT9LzJWG4ztr/2K1zy MIOzux4UGJLxJ2BgowMs8IsU1lZc3Wz/KsEW4/MSENSMC2I6yBTzw89GqPLvDh843bPH2V XttrsU7LPnIBcgXmwkXqw1GuYnoNorK0K8u36M+naiE2zKjL1z0ZcvlT6oXPKxjbOyy5zu GVlzmMhmMPLuzXlOwXSg39MyMflB3o7a9BkvYCHDycJrSZj/NgxHUlOnIRWqzL64wtcxls kQ7I8YQgehh2xGjSYyw3WfRew5klgII1f36D6JDs8ypJKPAubFJ0BjuqrVmRmHUEkvdphM CZOSqpd4jGJUfDrEzH6GBhkQ+3w== DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=20240125ed25519; bh=OqTl22l5p6/CPHHVITgZQsvYvoHPLOjk9ekmkSr5Lw8=; h=references: in-reply-to:date:subject:cc:to:from; d=korins.ky; b=K9n70op4XJjzRvXAXr YWbrsTuVl4Al7UvdfqVUEt8DJlpUTY815Gov3vlohsOz8NIjkzar1277UJMuQ276cmBw== From: "Kirill A. Korinsky" To: Mark Cave-Ayland , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: "Kirill A. Korinsky" Subject: [PATCH 4/5] cuda: Make shift register delay configurable Date: Thu, 3 Sep 2026 13:50:29 +0200 Message-ID: <20260903115229.95811-5-kirill@korins.ky> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260903115229.95811-1-kirill@korins.ky> References: <20260903115229.95811-1-kirill@korins.ky> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=65.21.79.163; envelope-from=kirill@korins.ky; helo=mx2.catap.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1788436414386158500 Content-Type: text/plain; charset="utf-8" The CUDA model assumes a 20 microsecond delay before each shift register interrupt. OpenBSD times out during device discovery with that timing, so retain the existing default but allow an override. Signed-off-by: Kirill A. Korinsky --- hw/misc/macio/cuda.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c index ccb3e1d74b..a62fdf23b9 100644 --- a/hw/misc/macio/cuda.c +++ b/hw/misc/macio/cuda.c @@ -535,7 +535,6 @@ static void cuda_realize(DeviceState *dev, Error **errp) s->tick_offset =3D (uint32_t)mktimegm(&tm) + RTC_OFFSET; =20 s->sr_delay_timer =3D timer_new_ns(QEMU_CLOCK_VIRTUAL, cuda_set_sr_int= , s); - s->sr_delay_ns =3D 20 * SCALE_US; =20 adb_register_autopoll_callback(adb_bus, cuda_adb_poll, s); } @@ -557,6 +556,8 @@ static void cuda_init(Object *obj) =20 static const Property cuda_properties[] =3D { DEFINE_PROP_UINT64("timebase-frequency", CUDAState, tb_frequency, 0), + DEFINE_PROP_UINT64("sr-delay-ns", CUDAState, sr_delay_ns, + 20 * SCALE_US), }; =20 static void cuda_class_init(ObjectClass *oc, const void *data) --=20 2.55.0 From nobody Mon Sep 7 05:40:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=fail (Bad Signature); dmarc=fail(p=none dis=none) header.from=korins.ky Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788436451597777.8424845490896; Thu, 3 Sep 2026 04:54:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2606-0003og-9R; Thu, 03 Sep 2026 07:53:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x2602-0003jS-L0; Thu, 03 Sep 2026 07:52:58 -0400 Received: from mx1.catap.net ([162.55.82.72]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x2600-0002h2-Jw; Thu, 03 Sep 2026 07:52:58 -0400 Received: by mx1.catap.net (OpenSMTPD) with ESMTPSA id 8b2a111f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Sep 2026 13:52:51 +0200 (CEST) Received: from localhost (matebook.home.arpa [local]) by matebook.home.arpa (OpenSMTPD) with ESMTPA id d476c644; Thu, 3 Sep 2026 13:52:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=20240125rsa; cv=none; d=mx.catap.net; b=hPN/5js WrBTMbENtYvNoCMZnz0wdrrRN3vqCJaHE1LHeQcQmMDFkZgluYNnBFN4V6ouoIVPWYRMCJ l+7jdKdLccNvpKpQrBKZH0TKiiHVzt7DvXd3FKazlDSiKLHTKpzplGMuACtR3OpkZJoLTB w0zpj7D1Sq/ArPdKWEJb/IAvuXRmFWbvKxMRYKGGdF1GXUqilObZfcRwdvQ+TQnayUvzSL VDJ8MfCMYqWQL+fVs2v5U4jY4BNTStZSTotkhnxfxgN7Xwmkh8h12JOuqtKnRKtKaJYoJR ZBdPuYj1uWfDI3nlmjA+4R7TWJt4iJQI3iLk26T4OPurz59wqwAbD6A== ARC-Message-Signature: i=1; a=rsa-sha256; s=20240125rsa; c=simple/simple; bh=q A437rlrS/eneymJ21yfTMArrIp3PE7bMGZ/YzrWPHc=; h=references:in-reply-to: date:subject:cc:to:from:dkim-signature:dkim-signature; d=mx.catap.net; b=qI4/ocwACmqHXU471sOVEfIAsxahGEipU6Q/CIH/hYPxlG90WYWXtv1/CrbFrHHqWyTv TkVGnUkkX1sMOmlFa5U4l2o9fodo1hBwoM/OwILaDBsBsoEvxhuQ1EH4EIouDnPQf7mIVR qCrnVYQ3AMFldstik2Fih6gDhyPo0612gHGfZ179hCFNjXW2azcsTRsW61Uj3q79NTRzhe BbMtdZP/iJYO20sU1rqzQ5Q7Z16T1lc0I4YFe2C2FbJI9z000amSGtowkR2k/InsmRN4R8 bs7MkhfU16PFDSTRGcGLiURth2SJXrpXTfC8TNVCpodzLcD9w+wXl6uBpgkUa3Vg== ARC-Authentication-Results: i=1; mx.catap.net; dkim=pass header.s=20240125rsa header.d=korins.ky header.a=rsa-sha256 header.b=UD8FK2GG; dkim=pass header.s=20240125ed25519 header.d=korins.ky header.a=ed25519-sha256 header.b=paU0zFUa; arc=none; iprev=pass; spf=none smtp.helo=postmaster@matebook.home.arpa; spf=softfail smtp.mailfrom=kirill@korins.ky DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=20240125rsa; bh=qA437rlr S/eneymJ21yfTMArrIp3PE7bMGZ/YzrWPHc=; h=references:in-reply-to:date: subject:cc:to:from; d=korins.ky; b=UD8FK2GGBom+PmUxay/GLkWax2ymEKpwXU7 ksCvy1Hmsip11M0DV35cjmWGIluVKdb1H55Zd/I2mC8EoSlPjeJwpO5qRX2iEeWeM/K7be AFUIoGpIaLF/v0cVUKVld/Pls7wweT14vDP1RJnaEdbdYIV3uapZh+V3KxXBErK1++4yTr i/PqjdkeWc0/zuu0Pjfolo2k5xV0Bsi4rDhQl48RiL57FID4VHmQTYJApJscLb6u3CqiJx uJgdbzZsKHPuv4vxCcaduIjjThPVPOl3cWalkXfsH7x2sM1FYeLC5BWMbhHx4wEuvwEk+f DmPzMApItDhw0DDLTBHmzCNzNLg== DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=20240125ed25519; bh=qA437rlrS/eneymJ21yfTMArrIp3PE7bMGZ/YzrWPHc=; h=references: in-reply-to:date:subject:cc:to:from; d=korins.ky; b=paU0zFUaVXXcf7BIUt BBHpCT2lrVvJ4O4X/bdXm9TN7yWS5GFSlqqMYplr/2kqIBH2WMKUe+Fxcq1VUoLIUFDg== From: "Kirill A. Korinsky" To: Mark Cave-Ayland , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: "Kirill A. Korinsky" Subject: [PATCH 5/5] tests/functional: Boot OpenBSD on mac99 Date: Thu, 3 Sep 2026 13:50:30 +0200 Message-ID: <20260903115229.95811-6-kirill@korins.ky> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260903115229.95811-1-kirill@korins.ky> References: <20260903115229.95811-1-kirill@korins.ky> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=162.55.82.72; envelope-from=kirill@korins.ky; helo=mx1.catap.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1788436453592158500 Content-Type: text/plain; charset="utf-8" OpenBSD device discovery exercises CTPR masking, zero decrementer writes, and CUDA reply timing and layout; regressions in any of these paths stall the guest before the installer starts. Signed-off-by: Kirill A. Korinsky --- tests/functional/ppc/meson.build | 2 ++ tests/functional/ppc/test_openbsd.py | 46 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100755 tests/functional/ppc/test_openbsd.py diff --git a/tests/functional/ppc/meson.build b/tests/functional/ppc/meson.= build index ae061fe5a6..1055cdaa17 100644 --- a/tests/functional/ppc/meson.build +++ b/tests/functional/ppc/meson.build @@ -2,6 +2,7 @@ =20 test_ppc_timeouts =3D { '40p' : 240, + 'openbsd' : 240, } =20 tests_ppc_system_quick =3D [ @@ -15,6 +16,7 @@ tests_ppc_system_thorough =3D [ 'bamboo', 'mac', 'mpc8544ds', + 'openbsd', 'ppe42', 'replay', 'sam460ex', diff --git a/tests/functional/ppc/test_openbsd.py b/tests/functional/ppc/te= st_openbsd.py new file mode 100755 index 0000000000..cf45930a7c --- /dev/null +++ b/tests/functional/ppc/test_openbsd.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python3 +# +# Test that OpenBSD boots on mac99 and reaches the installer. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import QemuSystemTest, Asset +from qemu_test import wait_for_console_pattern + + +class OpenBSDMac99(QemuSystemTest): + + ASSET_CD =3D Asset( + 'https://ftp.eu.openbsd.org/pub/OpenBSD/7.9/macppc/cd79.iso', + '227fef3d5089d56ce8376d8bfa28181ce5b19f0eceef0a6d82d58d8e52832b24') + + def test_openbsd_79_installer(self): + self.set_machine('mac99') + self.require_accelerator('tcg') + cdrom_path =3D self.ASSET_CD.fetch() + + self.vm.set_console() + self.vm.add_args('-M', 'via=3Dcuda,graphics=3Doff,usb=3Doff', + '-cpu', '7400', + '-accel', 'tcg,thread=3Dsingle', + '-smp', '1', + '-m', '2g', + '-nic', 'none', + '-device', 'VGA', + '-global', 'cuda.sr-delay-ns=3D0', + '-prom-env', 'input-device=3Dttya', + '-prom-env', 'output-device=3Dttya', + '-cdrom', cdrom_path, + '-boot', 'd', + '-no-reboot') + self.vm.launch() + + wait_for_console_pattern(self, 'OpenBSD 7.9 (RAMDISK)', 'panic:') + wait_for_console_pattern( + self, + '(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?', + 'panic:') + + +if __name__ =3D=3D '__main__': + QemuSystemTest.main() --=20 2.55.0