qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v8 3/7] usb/hcd-xhci: Split pci wrapper for xhci base model


From: Gerd Hoffmann
Subject: Re: [PATCH v8 3/7] usb/hcd-xhci: Split pci wrapper for xhci base model
Date: Thu, 24 Sep 2020 07:16:54 +0200

  Hi,

> Can you also provide any steps to test vmstate migration ?

Helper script below, run it with something like:

$script -m 4G -vga std \
  -cdrom Fedora-Workstation-Live-x86_64-32-1.6.iso \
  -device qemu-xhci -device usb-tablet

============================ cut here ==============================
#!/bin/bash

# most recent release
src="/usr/local/bin/qemu-system-x86_64" 

# master branch / devel branch
dst="/home/kraxel/projects/qemu/build/default/x86_64-softmmu/qemu-system-x86_64"

# time to wait before migration
sec=60

# vmstate storage
tmp="$(mktemp ${TMPDIR-/var/tmp}/vmstate-XXXXXXXXXXXXXX)"
trap "rm -f $tmp" EXIT

# figure machine type to use
machine=$($src -M help | awk '/default/ { print $1 }')
machine="${machine},vmport=off"
machine="${machine},accel=kvm"

########################################################################

echo "#"
echo "# vmsave (after $sec seconds)"
echo "#"
(
    sleep $sec
    echo "migrate_set_speed 100M"
    echo "migrate exec:cat>$tmp"
    echo "quit"
) |\
$src -nodefaults \
    -monitor stdio \
    -M $machine \
    "$@"

echo "#"
echo "# vmload"
echo "#"
$dst -nodefaults \
    -monitor stdio \
    -incoming "exec:cat $tmp" \
    -M $machine \
    "$@"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]