From patchwork Thu Dec 3 13:56:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: riku.voipio@nokia.com X-Patchwork-Id: 40260 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 80692B6F05 for ; Fri, 4 Dec 2009 09:14:52 +1100 (EST) Received: from localhost ([127.0.0.1]:44362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGJwn-00019J-GT for incoming@patchwork.ozlabs.org; Thu, 03 Dec 2009 17:14:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGCAx-0001M2-7z for qemu-devel@nongnu.org; Thu, 03 Dec 2009 08:56:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGCAr-0001I7-BO for qemu-devel@nongnu.org; Thu, 03 Dec 2009 08:56:53 -0500 Received: from [199.232.76.173] (port=56415 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGCAq-0001I1-VE for qemu-devel@nongnu.org; Thu, 03 Dec 2009 08:56:49 -0500 Received: from smtp.nokia.com ([192.100.105.134]:42967 helo=mgw-mx09.nokia.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGCAq-0008G2-Io for qemu-devel@nongnu.org; Thu, 03 Dec 2009 08:56:48 -0500 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB3DuY5H023940 for ; Thu, 3 Dec 2009 07:56:46 -0600 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 3 Dec 2009 15:56:44 +0200 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 3 Dec 2009 15:56:43 +0200 Received: from localhost.localdomain (esdhcp041213.research.nokia.com [172.21.41.213]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB3DuZp7027643; Thu, 3 Dec 2009 15:56:41 +0200 From: riku.voipio@nokia.com To: qemu-devel@nongnu.org Date: Thu, 3 Dec 2009 15:56:05 +0200 Message-Id: X-Mailer: git-send-email 1.6.3.3 In-Reply-To: References: In-Reply-To: References: X-OriginalArrivalTime: 03 Dec 2009 13:56:44.0171 (UTC) FILETIME=[7277CDB0:01CA7420] X-Nokia-AV: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-Mailman-Approved-At: Thu, 03 Dec 2009 17:06:08 -0500 Cc: Riku Voipio Subject: [Qemu-devel] [PATCH 4/7] Give a error when running out of iomem areas. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Riku Voipio The limit of iomem areas is quite low. Without the debug print, it is quite hard to figure out why more devices are not getting registered. Signed-off-by: Riku Voipio --- exec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/exec.c b/exec.c index 3f33b08..befbcb7 100644 --- a/exec.c +++ b/exec.c @@ -2913,7 +2913,7 @@ static int get_free_io_mem_idx(void) io_mem_used[i] = 1; return i; } - + fprintf(stderr, "RAN out out io_mem_idx, max %d !\n", IO_MEM_NB_ENTRIES); return -1; }