From: Utkarsh Verma <uverma@linux.ibm.com>
To: "Anushree Mathur" <anushree.mathur@linux.ibm.com>,
"Harsh Prateek Bora" <harshpb@linux.ibm.com>,
"Cédric Le Goater" <clg@redhat.com>,
"Nicholas Piggin" <npiggin@gmail.com>,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: Thomas Huth <thuth@redhat.com>,
Amit Machhiwal <amachhiw@linux.ibm.com>,
Miles Glenn <milesg@linux.ibm.com>,
Aditya Gupta <adityag@linux.ibm.com>,
misanjum@linux.ibm.com, Chinmay Rath <rathc@linux.ibm.com>
Subject: Re: [PATCH v3 3/4] tests/functional/ppc64: add pseries virtio-blk hotplug test
Date: Fri, 27 Nov 2026 18:21:13 +0530 [thread overview]
Message-ID: <be84f6c0-3075-421b-a974-ec95e5e20bce@linux.ibm.com> (raw)
In-Reply-To: <20261124110030.30097-4-anushree.mathur@linux.ibm.com>
On 11/24/26 4:30 PM, Anushree Mathur wrote:
> Add a functional test that hot-plugs and hot-unplugs a virtio-blk-pci
> disk on the pseries machine. It runs with TCG, and also with KVM if
> KVM is enabled.
>
> On pseries a PCI device added through QMP is only enumerated by the
> guest once rtas_errd (ppc64-diag) handles the RTAS hotplug event and
> runs drmgr (powerpc-utils). Neither is in the buildroot image used by
> the other pseries tests, so the test uses rootfs-hotplug.ext2: the same
> image with those two tools added.
>
> The test boots with a second PHB (phb1) present so that the guest
> registers its slots, adds a null-co backend, hot-plugs virtio-blk-pci
> into phb1.0 and waits for /dev/vda, then unplugs it and waits for both
> the QMP DEVICE_DELETED event and /dev/vda to go away. The root drive is
> used with snapshot=on so the cached asset is not modified by the guest.
>
> Signed-off-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
> ---
> v3: the rtas_errd start and the initial /dev/vda checks used patterns
> that also matched the echoed command, so they always passed; they now
> use the shell variable sentinel, and rtas_errd is verified with pidof.
> Bounded the wait loops (60 seconds) with a failure message on timeout,
> and the test now asserts that DEVICE_DELETED was received.
>
> tests/functional/ppc64/meson.build | 2 +
> tests/functional/ppc64/test_hotplug_blk.py | 206 +++++++++++++++++++++
> 2 files changed, 208 insertions(+)
> create mode 100755 tests/functional/ppc64/test_hotplug_blk.py
>
Reviewed-by: Utkarsh Verma <uverma@linux.ibm.com>
next prev parent reply other threads:[~2026-11-27 12:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 11:00 [PATCH v3 0/4] tests/functional/ppc64: add pseries hotplug and caps tests Anushree Mathur
2026-11-24 11:00 ` [PATCH v3 1/4] tests/functional/ppc64: add pseries CPU hotplug test Anushree Mathur
2026-11-27 1:57 ` Utkarsh Verma
2026-11-24 11:00 ` [PATCH v3 2/4] tests/functional/ppc64: add pseries security caps test Anushree Mathur
2026-11-27 12:15 ` Utkarsh Verma
2026-11-24 11:00 ` [PATCH v3 3/4] tests/functional/ppc64: add pseries virtio-blk hotplug test Anushree Mathur
2026-11-27 12:51 ` Utkarsh Verma [this message]
2026-11-24 11:00 ` [PATCH v3 4/4] MAINTAINERS: add pseries hotplug and caps functional tests Anushree Mathur
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be84f6c0-3075-421b-a974-ec95e5e20bce@linux.ibm.com \
--to=uverma@linux.ibm.com \
--cc=adityag@linux.ibm.com \
--cc=amachhiw@linux.ibm.com \
--cc=anushree.mathur@linux.ibm.com \
--cc=clg@redhat.com \
--cc=harshpb@linux.ibm.com \
--cc=milesg@linux.ibm.com \
--cc=misanjum@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rathc@linux.ibm.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.