RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 622356 - Live migration failed during reboot due to vhost
Summary: Live migration failed during reboot due to vhost
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.0
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Alex Williamson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-09 04:05 UTC by Golita Yue
Modified: 2013-01-09 22:59 UTC (History)
12 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.110.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 21:27:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Golita Yue 2010-08-09 04:05:56 UTC
Description of problem:
Start a winXP-32 bit guest with -"spice",
Live migration failed when migration during reboot

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.108.el6.x86_64
2.6.32-59.el6.x86_64

How reproducible:
2/2

Steps to Reproduce:
1. Start a winXP-32 bit guest with "-spice
port=5930,disable-ticketing -vga qxl:"
/usr/libexec/qemu-kvm -usbdevice tablet -rtc base=localtime,clock=host,driftfix=slew -cpu qemu64,+x2apic -m 2G -smp 2 -drive file=/dev/vgtest/gyue_xp,if=virtio,boot=on,cache=none,format=qcow2,werror=stop,rerror=stop,id=drive-virtio0 -device virtio-blk-pci,drive=drive-virtio0,id=virtio-blk-pci0,addr=0x8 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,mac=00:10:23:23:03:1c,bus=pci.0,addr=0x7,id=hostnet0 -uuid `uuidgen` -boot c -qmp tcp:0:4442,server,nowait -spice port=5930,disable-ticketing -vga qxl

2.after VM start ,then reboot it.
3.during reboot,do live migration.
  
Actual results:
Live migration failed .
in the qemu monitor displays
"qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/hw/vhost.c:31: vhost_dev_sync_region: Assertion `end / (0x1000 * (8 * sizeof(vhost_log_chunk_t))) < dev->log_size' failed."

Expected results:
Live Migration can be finished successfuly.

Additional info:
gdb information:

qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/hw/vhost.c:31: vhost_dev_sync_region: Assertion `end / (0x1000 * (8 * sizeof(vhost_log_chunk_t))) < dev->log_size' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f768422e710 (LWP 24399)]
0x0000003eb26329b5 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003eb26329b5 in raise () from /lib64/libc.so.6
#1  0x0000003eb2634195 in abort () from /lib64/libc.so.6
#2  0x0000003eb262b945 in __assert_fail () from /lib64/libc.so.6
#3  0x00000000004230eb in ?? ()
#4  0x0000000000423171 in ?? ()
#5  0x0000000000424265 in ?? ()
#6  0x00000000004df8fe in ?? ()
#7  0x0000000000473fe5 in ?? ()
#8  0x000000000041896b in ?? ()
#9  0x000000000047296a in ?? ()
#10 0x000000000042aa49 in ?? ()
#11 0x000000000042aae9 in ?? ()
#12 0x000000000042b70f in ?? ()
#13 0x0000003eb2e077e1 in start_thread () from /lib64/libpthread.so.0
#14 0x0000003eb26e151d in clone () from /lib64/libc.so.6

Comment 4 Golita Yue 2010-08-09 05:38:15 UTC
I tested again with nic=rtl8139, passed.
But bug happened when nic=virtio.

Comment 5 jason wang 2010-08-09 05:57:24 UTC
Hello Golita:
   It does not look like a problem of spice, can you please try to reproduce it without "-spice" option? Thanks

Comment 6 Golita Yue 2010-08-09 09:53:51 UTC
(In reply to comment #5)
> Hello Golita:
>    It does not look like a problem of spice, can you please try to reproduce it
> without "-spice" option? Thanks    

Tested again without '-spice', still failed.
Updated summary.

Comment 7 Alex Williamson 2010-08-10 20:38:56 UTC
Please try this brew build to see if it fixes the problem:

https://brewweb.devel.redhat.com/taskinfo?taskID=2672629

Comment 8 Golita Yue 2010-08-11 03:17:34 UTC
(In reply to comment #7)
> Please try this brew build to see if it fixes the problem:
> 
> https://brewweb.devel.redhat.com/taskinfo?taskID=2672629    

Tested 5 times with above build, PASSED.

Comment 10 Eduardo Habkost 2010-08-11 15:16:34 UTC
Fixing fixed-in-version field. It was not fixed on the official qemu-kvm-0.12.1.2-2.108.el6 build, the URL above was a scratch build.

Comment 12 Alex Williamson 2010-08-11 16:19:28 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Please try this brew build to see if it fixes the problem:
> > 
> > https://brewweb.devel.redhat.com/taskinfo?taskID=2672629    
> 
> Tested 5 times with above build, PASSED.    

Great, we have one more respin of the fix.  Please confirm that this scratch build also resolves the problem:

https://brewweb.devel.redhat.com/taskinfo?taskID=2676174

Thanks

Comment 24 releng-rhel@redhat.com 2010-11-10 21:27:05 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.