From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] README: add information about memory usage Date: Wed, 26 Feb 2014 12:05:46 +0100 Message-ID: <530DCA8A.4040006@redhat.com> References: <20140224222937.46a1b511@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: Luiz Capitulino , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:4563 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751825AbaBZLGc (ORCPT ); Wed, 26 Feb 2014 06:06:32 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1QB5nMS027417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 26 Feb 2014 06:06:31 -0500 In-Reply-To: <20140224222937.46a1b511@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 25/02/2014 04:29, Luiz Capitulino ha scritto: > I got a report of someone trying to run tests with a large amount of > RAM (4GB), which broke the guest as free_memory() function (called > by setup_vm()) will override the PCI hole. > > Let's document memory constraints so that people don't do that. > > Signed-off-by: Luiz Capitulino > --- > README | 4 ++++ > 1 file changed, 4 insertions(+) > > > diff --git a/README b/README > index db525e3..0f5d810 100644 > --- a/README > +++ b/README > @@ -18,6 +18,10 @@ This invocation runs the msr test case. The test outputs to stdio. > Using qemu (supported since qemu 1.3): > qemu-system-x86_64 -enable-kvm -device pc-testdev -serial stdio -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel ./x86/msr.flat > > +Note that it's not necessary to specify the "-m" option to qemu. The default > +memory size is enough. Actually, the tests infrastructure doesn't support too > +much RAM anyway, so specifying a large amount of RAM may break it. > + > Or use a runner script to detect the correct invocation: > ./x86-run ./x86/msr.flat > To select a specific qemu binary, specify the QEMU= environment: > Applying to kvm-unit-tests. Paolo