Received: from eggs.gnu.org ([2001:4830:134:3::10]:35782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VExev-0003K6-QK for qemu-devel@nongnu.org; Thu, 29 Aug 2013 04:32:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VExeq-0007sn-J4 for qemu-devel@nongnu.org; Thu, 29 Aug 2013 04:32:53 -0400 Received: from mail-bk0-f43.google.com ([209.85.214.43]:56332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VExeq-0007s7-DI for qemu-devel@nongnu.org; Thu, 29 Aug 2013 04:32:48 -0400 Received: by mail-bk0-f43.google.com with SMTP id mz13so36533bkb.16 for ; Thu, 29 Aug 2013 01:32:46 -0700 (PDT) Message-ID: <521F0735.4090102@m2r.biz> Date: Thu, 29 Aug 2013 10:32:53 +0200 From: Fabio Fantoni MIME-Version: 1.0 References: <1376664409-2695-1-git-send-email-anthony.perard@citrix.com> <521B6DA5.1010801@m2r.biz> In-Reply-To: <521B6DA5.1010801@m2r.biz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Xen-devel] [PATCH for v1.6] pc: Fix initialization of the ram_memory variable. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony PERARD Cc: qemu-trivial@nongnu.org, Stefano Stabellini , QEMU-devel , Anthony Liguori , Xen Devel Il 26/08/2013 17:00, Fabio Fantoni ha scritto: > Il 16/08/2013 16:46, Anthony PERARD ha scritto: >> In some cases (Xen), it will not be initialized before to be used. This >> leads to segv. >> >> Signed-off-by: Anthony PERARD > > Tested-by: Fabio Fantoni > This patch have solved the critical regression of all hvm domUs that > prevented domUs starting with qemu 1.6. > I not see this patch on git for now, I think is urgent apply this patch or solve the problem in other way because qemu 1.6 is unusable at all for hvm domUs on xen and 1.5.x doesn't works with hvm domUs with ram > 2gb, with qemu 1.6 the regression of > 2 gb ram is solved but without this patch doesn't works at all. Thanks for any reply and sorry for my bad english. >> >> --- >> >> It works with this simple initialization to NULL, but would it be >> necessary (or better) to assign a proper value to this variables ? >> --- >> hw/i386/pc_piix.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c >> index 6e1e654..596d433 100644 >> --- a/hw/i386/pc_piix.c >> +++ b/hw/i386/pc_piix.c >> @@ -86,7 +86,7 @@ static void pc_init1(MemoryRegion *system_memory, >> BusState *idebus[MAX_IDE_BUS]; >> ISADevice *rtc_state; >> ISADevice *floppy; >> - MemoryRegion *ram_memory; >> + MemoryRegion *ram_memory = NULL; >> MemoryRegion *pci_memory; >> MemoryRegion *rom_memory; >> DeviceState *icc_bridge; >