From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8DqM-0000rr-LI for qemu-devel@nongnu.org; Sat, 01 May 2010 10:38:58 -0400 Received: from [140.186.70.92] (port=42526 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8DqL-0000rh-FF for qemu-devel@nongnu.org; Sat, 01 May 2010 10:38:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8DqJ-0006Ht-Ug for qemu-devel@nongnu.org; Sat, 01 May 2010 10:38:57 -0400 Received: from 8bytes.org ([88.198.83.132]:60938) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8DqJ-0006Hk-P9 for qemu-devel@nongnu.org; Sat, 01 May 2010 10:38:55 -0400 Date: Sat, 1 May 2010 16:38:53 +0200 From: Joerg Roedel Message-ID: <20100501143853.GE14542@8bytes.org> References: <1272721856.2723.12.camel@freedom> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1272721856.2723.12.camel@freedom> Subject: [Qemu-devel] Re: --mem-path option broken on qemu-kvm latest git List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lucas Meneghel Rodrigues Cc: qemu mailing list , KVM mailing list On Sat, May 01, 2010 at 10:50:56AM -0300, Lucas Meneghel Rodrigues wrote: > 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. 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