aboutsummaryrefslogtreecommitdiff
path: root/scripts/xml-preprocess.py
diff options
context:
space:
mode:
authorWei Wang <wei.w.wang@intel.com>2024-04-05 11:40:56 +0800
committerPeter Xu <peterx@redhat.com>2024-04-07 14:40:25 -0400
commit7afbdada7effbc2b97281bfbce0c6df351a3cf88 (patch)
tree692fddbda9eb3bd79448fde2b5e233624416b085 /scripts/xml-preprocess.py
parentce64e6224affb8b4e4b019f76d2950270b391af5 (diff)
downloadqemu-7afbdada7effbc2b97281bfbce0c6df351a3cf88.zip
qemu-7afbdada7effbc2b97281bfbce0c6df351a3cf88.tar.gz
qemu-7afbdada7effbc2b97281bfbce0c6df351a3cf88.tar.bz2
migration/postcopy: ensure preempt channel is ready before loading states
Before loading the guest states, ensure that the preempt channel has been ready to use, as some of the states (e.g. via virtio_load) might trigger page faults that will be handled through the preempt channel. So yield to the main thread in the case that the channel create event hasn't been dispatched. Cc: qemu-stable <qemu-stable@nongnu.org> Fixes: 9358982744 ("migration: Send requested page directly in rp-return thread") Originally-by: Lei Wang <lei4.wang@intel.com> Link: https://lore.kernel.org/all/9aa5d1be-7801-40dd-83fd-f7e041ced249@intel.com/T/ Signed-off-by: Lei Wang <lei4.wang@intel.com> Signed-off-by: Wei Wang <wei.w.wang@intel.com> Link: https://lore.kernel.org/r/20240405034056.23933-1-wei.w.wang@intel.com [peterx: add a todo section, add Fixes and copy stable for 8.0+] Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'scripts/xml-preprocess.py')
0 files changed, 0 insertions, 0 deletions