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 1158779 - qemu crashed if migrate a s3-state guest with migration_speed and downtime by default.
Summary: qemu crashed if migrate a s3-state guest with migration_speed and downtime by...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Amit Shah
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1178655
Blocks: Virt-S3/S4-7.0 1158780
TreeView+ depends on / blocked
 
Reported: 2014-10-30 08:33 UTC by Qian Guo
Modified: 2015-09-19 06:36 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1158780 (view as bug list)
Environment:
Last Closed: 2015-09-19 06:36:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qian Guo 2014-10-30 08:33:13 UTC
Description of problem:
qemu crashed as summary when the migration need time, and the crash is related with tsc:
qemu-kvm: /builddir/build/BUILD/qemu-1.5.3/hw/i386/kvm/clock.c:62: kvmclock_current_nsec: Assertion `time.tsc_timestamp <= migration_tsc' failed.
Aborted (core dumped)


And if set big downtime and migrate speed, then the migration will last for very little time, then will not hit such issue.

Version-Release number of selected component (if applicable):
qemu-kvm-1.5.3-77.el7.x86_64
kernel-3.10.0-196.el7.x86_64
How reproducible:
100%

Steps to Reproduce:
1.Boot guest in src host:
/usr/libexec/qemu-kvm -cpu Penryn -enable-kvm -m 4096 -smp 4,sockets=1,cores=4,threads=1 -name rhel7base  -drive file=/mnt/rhel7u1/rhel7u1cp1.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,drive=drive-virtio-disk0,id=virtio-disk0 -boot menu=on -monitor stdio -netdev tap,id=hostnet0,ifname=guest1,script=/etc/qemu-ifup,vhost=on,queues=4 -device virtio-net,netdev=hostnet0,mac=54:52:1b:35:3c:16,id=test,mq=on,vectors=9 -nodefaults -nodefconfig -spice disable-ticketing,port=5930,seamless-migration=on -vga qxl -global qxl-vga.vram_size=67108864   -device virtio-balloon-pci,id=balloon1 -qmp tcp:0:4446,server,nowait -device intel-hda,id=hda1 -device hda-duplex -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -serial unix:/tmp/qiguo,server,nowait

2.Do s3 in guest
# pm-suspend

3.Migrate guest to dst host, and do not set the downtime and speed.


Actual results:
In dst host:

qemu-kvm: /builddir/build/BUILD/qemu-1.5.3/hw/i386/kvm/clock.c:62: kvmclock_current_nsec: Assertion `time.tsc_timestamp <= migration_tsc' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff2c875e9 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff2c875e9 in raise () from /lib64/libc.so.6
#1  0x00007ffff2c88cf8 in abort () from /lib64/libc.so.6
#2  0x00007ffff2c80556 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007ffff2c80602 in __assert_fail () from /lib64/libc.so.6
#4  0x0000555555772e3d in kvmclock_vm_state_change ()
#5  0x000055555574559b in vm_state_notify ()
#6  0x00005555557455db in vm_start ()
#7  0x000055555564d22a in coroutine_trampoline ()
#8  0x00007ffff2c991d0 in ?? () from /lib64/libc.so.6
#9  0x00007fffffffb030 in ?? ()
#10 0x0000000000000000 in ?? ()
(gdb) bt ful
#0  0x00007ffff2c875e9 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007ffff2c88cf8 in abort () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007ffff2c80556 in __assert_fail_base () from /lib64/libc.so.6
No symbol table info available.
#3  0x00007ffff2c80602 in __assert_fail () from /lib64/libc.so.6
No symbol table info available.
#4  0x0000555555772e3d in kvmclock_vm_state_change ()
No symbol table info available.
#5  0x000055555574559b in vm_state_notify ()
No symbol table info available.
#6  0x00005555557455db in vm_start ()
No symbol table info available.
#7  0x000055555564d22a in coroutine_trampoline ()
No symbol table info available.
#8  0x00007ffff2c991d0 in ?? () from /lib64/libc.so.6
No symbol table info available.
#9  0x00007fffffffb030 in ?? ()
No symbol table info available.
#10 0x0000000000000000 in ?? ()
No symbol table info available.


Expected results:
No crash occurs

Additional info:
1.The time is synced in all the systems before test.
2.If migration is finished in very shot time, won't hit such issue.

Comment 3 Qian Guo 2015-01-05 10:12:34 UTC
Hi, Amit 

Could you check if bug 1178655 and bug 1158039 are same trigger as this bug ?

Thanks


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