[PATCH v2 0/5] qemu: add async vCPU unplug coverage

Akash Kulhalli via Devel posted 5 patches 4 days, 3 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20260610105454.3886530-2-akash.kulhalli@oracle.com
[PATCH v2 0/5] qemu: add async vCPU unplug coverage
Posted by Akash Kulhalli via Devel 4 days, 3 hours ago
This series adds qemuhotplugtest coverage for async vCPU unplug.

Async vCPU unplug does not complete at the device_del reply. The guest
CPU remains in a pending removal state until QEMU reports DEVICE_DELETED
and the QEMU driver handles the resulting process event. The new harness
support lets the tests observe that intermediate state and then complete
the unplug through the same process-event path used by the driver.

The setvcpu coverage exercises both a single-vCPU x86 hotplug entity and
a grouped ppc64 hotplug entity. These cases check the pending live XML
before completion and the final live/config XML after completion, while
also validating the expected vcpu-removed domain events.

The setvcpus coverage adds a separate count-based x86 downscale case.
This keeps the independent count-to-entity selection path covered
without duplicating the grouped-entity coverage from setvcpu.

Changes from v1:
- Fixed cumulative build issues with two patches
- rebased on latest master, two patches have already been merged

Akash Kulhalli (5):
  qemu: expose process event handler to tests
  tests: add helper for DEVICE_DELETED events
  qemuhotplugtest: support async vcpu unplug completion
  qemuhotplugtest: test setvcpu async unplug
  qemuhotplugtest: test setvcpus async downscale

-- 
2.47.3