Bug 606953 - fork causes trouble for vcpu threads
fork causes trouble for vcpu threads
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm (Show other bugs)
5.5
All Linux
high Severity medium
: rc
: ---
Assigned To: Virtualization Maintenance
Virtualization Bugs
: ZStream
Depends On: 601192
Blocks: Rhel5KvmTier1 610341
  Show dependency treegraph
 
Reported: 2010-06-22 15:40 EDT by Glauber Costa
Modified: 2013-01-09 17:46 EST (History)
10 users (show)

See Also:
Fixed In Version: kvm-83-186.el5
Doc Type: Bug Fix
Doc Text:
In the kvm kernel module, some internal KVM memory slots were incorrectly being handled by copy-on-write after a fork() function call, which caused issues when qemu-kvm ran child processes. This update fixes the handling of internal KVM memory slots on fork() to avoid those issues.
Story Points: ---
Clone Of: 601192
Environment:
Last Closed: 2011-01-13 18:36:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Comment 7 Douglas Silas 2010-07-28 11:39:58 EDT
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.

New Contents:
In the kvm kernel module, some internal KVM memory slots were incorrectly being handled by copy-on-write after a fork() function call, which caused issues when qemu-kvm ran child processes. This update fixes the handling of internal KVM memory slots on fork() to avoid those issues.
Comment 9 Cao, Chen 2010-11-11 05:13:58 EST
verified on
# rpm -q kvm
kvm-83-207.el5


boot guest with:
/usr/libexec/qemu-kvm -name 'vm1' -monitor stdio -drive file='/home/autotest-devel/client/tests/kvm/images/win2008-64-virtio.qcow2',index=0,if=virtio,media=disk,cache=none,boot=on,format=qcow2 -net nic,vlan=0,model=virtio,macaddr='9a:30:70:9c:34:b4' -net tap,vlan=0,ifname='virtio_xxx_5900',script='/home/autotest-devel/client/tests/kvm/scripts/qemu-ifup-switch',downscript='no' -m 2048 -smp 2 -soundhw ac97 -vnc :0  -rtc-td-hack -M rhel5.6.0 -usbdevice tablet

migrate with:
migrate "exec:gzip -c > /home/mig-xxxx1"

boot the dst guest with:
/usr/libexec/qemu-kvm -name 'vm1' -monitor stdio -drive file='/home/autotest-devel/client/tests/kvm/images/win2008-64-virtio.qcow2',index=0,if=virtio,media=disk,cache=none,boot=on,format=qcow2 -net nic,vlan=0,model=virtio,macaddr='9a:30:70:9c:34:b4' -net tap,vlan=0,ifname='virtio_xxx_5900',script='/home/autotest-devel/client/tests/kvm/scripts/qemu-ifup-switch',downscript='no' -m 2048 -smp 2 -soundhw ac97 -vnc :0  -rtc-td-hack -M rhel5.6.0 -usbdevice tablet -incoming "exec:gzip -c -d /home/xxxmig"


migration finished good, guest is good, too
Comment 12 errata-xmlrpc 2011-01-13 18:36:34 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0028.html

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