Skip to contentSkip to conversation

--mem-path option broken on qemu-kvm latest git

DISCUSSION Lucas Meneghel Rodrigues 2 participants 2 messages May 1, 2010 KVM

lore
Share & tools
lore
#0 lore raw

Hi folks, on during the latest upstream test job I noticed that the -mem-path option got broken on latest qemu-kvm. qemu abnormally ends with exit code 1 when trying to call it with -mem-path

04/29 18:35:32 DEBUG| kvm_vm:0461| Running qemu command:
/usr/local/autotest/tests/kvm/qemu -name 'vm1' -monitor unix:/tmp/monitor-20100429-181844-a21K,server,nowait -drive file=/tmp/kvm_autotest_root/images/rhel5-64.qcow2,if=ide -net nic,vlan=0,model=rtl8139,macaddr=52:54:00:12:34:56 -net user,vlan=0 -m 1024 -smp 2 -drive file=/tmp/kvm_autotest_root/isos/linux/RHEL-5.5-x86_64-DVD.iso,index=2,media=cdrom -fda /usr/local/autotest/tests/kvm/images/rhel55-64/floppy.img -tftp /usr/local/autotest/tests/kvm/images/rhel55-64/tftpboot -boot d -bootp /pxelinux.0 -boot n -mem-path /mnt/kvm_hugepage -redir tcp:5000::22 -redir tcp:5001::12323 -vnc :0 04/29 18:35:33 DEBUG|kvm_subpro:0686| (qemu) (Process terminated with status 1)

Exact version of qemu.git tested:

04/29 14:18:17 INFO | kvm_utils:0424| Commit hash for git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git is a1b705841caa33fca0b95928505c01d5105b706f (tag kvm-88-4245-ga1b7058)

Please let me know if there's any additional info you might want.

Lucas

#1 lore raw
Quoted 8 lines · Lucas Meneghel Rodrigues

Hi folks, on during the latest upstream test job I noticed that the -mem-path option got broken on latest qemu-kvm. qemu abnormally ends with exit code 1 when trying to call it with -mem-path

04/29 18:35:32 DEBUG| kvm_vm:0461| Running qemu command:
/usr/local/autotest/tests/kvm/qemu -name 'vm1' -monitor unix:/tmp/monitor-20100429-181844-a21K,server,nowait -drive file=/tmp/kvm_autotest_root/images/rhel5-64.qcow2,if=ide -net nic,vlan=0,model=rtl8139,macaddr=52:54:00:12:34:56 -net user,vlan=0 -m 1024 -smp 2 -drive file=/tmp/kvm_autotest_root/isos/linux/RHEL-5.5-x86_64-DVD.iso,index=2,media=cdrom -fda /usr/local/autotest/tests/kvm/images/rhel55-64/floppy.img -tftp /usr/local/autotest/tests/kvm/images/rhel55-64/tftpboot -boot d -bootp /pxelinux.0 -boot n -mem-path /mnt/kvm_hugepage -redir tcp:5000::22 -redir tcp:5001::12323 -vnc :0 04/29 18:35:33 DEBUG|kvm_subpro:0686| (qemu) (Process terminated with status 1)

Quoted 5 lines

Exact version of qemu.git tested:

04/29 14:18:17 INFO | kvm_utils:0424| Commit hash for git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git is a1b705841caa33fca0b95928505c01d5105b706f (tag kvm-88-4245-ga1b7058)

Please let me know if there's any additional info you might want.

I experienced the same in my nested-npt huge page tests. What helped was to remove the lines:

    if (memory < hpagesize) {
        return NULL;
    }

from file_ram_alloc() in exec.c. The problem is probably that qemu-kvm now allocs the memory per-slot and not entirely anymore. But thats just a guess.

Joerg