On Fri, Sep 18, 2026 at 04:47:07PM +0300, Andrey Drobyshev wrote:
> The qtests only cover the QEMU side of the vhost-vsock handoff.  Add a
> functional test which runs an actual host<->guest vsock transfer across
> a series of CPR migrations, for both cpr-transfer and cpr-exec:
> 
>   - the guest is booted on top of a qcow2 overlay shared by all the QEMU
>     instances it goes through;
> 
>   - the host sends a 512M file of random data to the guest with socat,
>     where it's stored on disk, then gets it back the same way; a CPR
>     migration is performed every 0.2s while a transfer is in progress;
> 
>   - with cpr-transfer each migration starts a fresh target QEMU and
>     retires the source; with cpr-exec the same process is re-exec'ed
>     over and over;
> 
>   - the file received back must be identical to the one sent, and both
>     socat instances in the guest must exit cleanly.
> 
> The test needs KVM, socat and /dev/vhost-vsock on the host, and a kernel
> supporting VHOST_RESET_OWNER for vhost-vsock.  If any of those
> requirements are missing the test is skipped.
> 
> Signed-off-by: Andrey Drobyshev <[email protected]>

Acked-by: Peter Xu <[email protected]>

-- 
Peter Xu


Reply via email to