Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20F40C79F9E for ; Mon, 7 Sep 2026 10:31:33 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x3Wcp-0004F9-9y; Mon, 07 Sep 2026 06:30:57 -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 1x3Wcd-0004Dm-IX for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x3Wcb-0003Sr-Pi for qemu-devel@nongnu.org; Mon, 07 Sep 2026 06:30:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788777041; 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=Pw8oM7XvTZ8UrOcsyDmNklaQrGBxEBQh+OPjYQaTMXA=; b=hVTJ7u2wRi80ajWJl9KA0C23clJTp16gJ3SxSqpgJ5OTlLjiDb9B/6dWRaLt4oePep3Xn9 MLhtkKvXI87OWy46eJHAMw4qoy9E3cdIEC6T75o87FlwnjYQQDSV971AWOePG88v1QOSkX jwBuPfKAnW1Mko4wqqpse5rDNOfzkSQ= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-684-uQQO6oekMqeBYKibD37WwQ-1; Mon, 07 Sep 2026 06:30:37 -0400 X-MC-Unique: uQQO6oekMqeBYKibD37WwQ-1 X-Mimecast-MFC-AGG-ID: uQQO6oekMqeBYKibD37WwQ_1788777035 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3325518009DF; Mon, 7 Sep 2026 10:30:35 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B5531427; Mon, 7 Sep 2026 10:30:33 +0000 (UTC) From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 07 Sep 2026 14:30:19 +0400 Subject: [PATCH v2 01/10] tests/ahci-test: replace HMP usage with QMP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260907-nohmp-v2-1-6d952d972c21@redhat.com> References: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> In-Reply-To: <20260907-nohmp-v2-0-6d952d972c21@redhat.com> To: qemu-devel@nongnu.org Cc: John Snow , "Denis V. Lunev" , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-arm@nongnu.org, Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Glenn Miles , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=1418; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=tLrFlT/tcpYg1fK592+t5TVWs+WZQ4KtzWrEIWmaBQ8=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqnpJCeOOGlpiWzHT6XhP38kCqcYRpei6N5aehu Wk3FtoaKb+JAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCap6SQgAKCRDa6OEJdZac 5T0cEACZHkKeWpCCGLtbYX3EFUiZDCPwh6YgUZsH/SFIsOX+i23i3a3cdbFZeBBl8iqn9SwyFc8 IqoNpOrV2HWAQf90BrflD5WPI6S5X7ZsqaJtL+QjJ5VXG9M03MxtqzDxc3mWZYJCA5i8wrLy8Pc Ys8RxFfAslDz9ppnmPIBbjypeGx6/mF7dSldkmYXPRaWRBbok+vIB3ggmv4ow8FvxXUO5PYp/KE caklFOSzzszfALtvQRC/ZlFR9CQti4z5maNnjhzCQe3PT343IRiAKsN2da3zNzMzHuNdlaGsl5z GYnemgjxnhFfWA3eHc/fas/gtpUU6rcAXA1/S129Y3K6ZTG2AegUIP+bUf/oaw/hkdpk29vKSbw GztFcj7cLOrge/o0WCk2HuIQLfveDq/Thwc8xBhNyw33aCKxkA21ADFhtfh38rV1TKudGLGFM3l mUZYSzuxOYRNmK5q5gpjLgLjDWcrcpBBroQ/+gBbjmxe1Ri9wRRoWJhVPcylMvkLmhDizKOA7B9 hO0vZpchIAZEQ9UTnASwSN2Vh6+bpP36H2O7qaON1pUy3aFFw6bwMj3v8j5ALIeFc+Z+QUrFWU7 tM2ZcwrfI08ZYWHa1rPipi94C4AmSyBKWCcK94plTscrk4evgX9MMuvUHLwxF2lp8A4wYR1w5g2 NDO+oMtYnOD4HMg== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com 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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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.29 Precedence: list List-Id: qemu development 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-bounces+qemu-devel=archiver.kernel.org@nongnu.org Use qemu-io command instead. Reviewed-by: Daniel P. Berrangé Signed-off-by: Marc-André Lureau --- tests/qtest/ahci-test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/qtest/ahci-test.c b/tests/qtest/ahci-test.c index 3406ca884fb4..eb8d23999738 100644 --- a/tests/qtest/ahci-test.c +++ b/tests/qtest/ahci-test.c @@ -1900,8 +1900,7 @@ static void test_write_engine_stop_in_flight(void) ahci_io(ahci, port, CMD_WRITE_DMA, rx, AHCI_SECTOR_SIZE, 1); /* Suspend the backend write so the first sector stays in flight. */ - g_free(qtest_hmp(ahci->parent->qts, - "qemu-io drive0 \"break write_aio wr\"")); + qtest_qemu_io(ahci->parent->qts, "drive0", "break write_aio wr"); cmd = ahci_command_create(CMD_WRITE_PIO); ahci_command_adjust(cmd, 0, ptr, bufsize, 0); @@ -1911,7 +1910,7 @@ static void test_write_engine_stop_in_flight(void) /* Drop the command list while the write is still outstanding. */ ahci_px_clr(ahci, port, AHCI_PX_CMD, AHCI_PX_CMD_ST); - g_free(qtest_hmp(ahci->parent->qts, "qemu-io drive0 \"resume wr\"")); + qtest_qemu_io(ahci->parent->qts, "drive0", "resume wr"); /* Round-trip through the device to confirm qemu is still alive. */ ahci_px_rreg(ahci, port, AHCI_PX_TFD); -- 2.55.0.543.g5ebe2ebe4ea8