From patchwork Tue Sep 29 06:32:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 523794 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5EA5D140273 for ; Tue, 29 Sep 2015 21:33:19 +1000 (AEST) Received: from localhost ([::1]:49915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgt9p-00026r-6V for incoming@patchwork.ozlabs.org; Tue, 29 Sep 2015 07:33:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgoT7-0005fM-7i for qemu-devel@nongnu.org; Tue, 29 Sep 2015 02:32:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgoT5-00037C-4L for qemu-devel@nongnu.org; Tue, 29 Sep 2015 02:32:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgoT4-000378-Vb for qemu-devel@nongnu.org; Tue, 29 Sep 2015 02:32:51 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id B1AAF8F2E4 for ; Tue, 29 Sep 2015 06:32:50 +0000 (UTC) Received: from localhost (ovpn-113-55.phx2.redhat.com [10.3.113.55]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8T6Wn8b010975; Tue, 29 Sep 2015 02:32:49 -0400 From: Amit Shah To: Juan Quintela Date: Tue, 29 Sep 2015 12:02:19 +0530 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Amit Shah , qemu list , "Dr. David Alan Gilbert" Subject: [Qemu-devel] [migration PULL 4/9] Init page sizes in qtest X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Dr. David Alan Gilbert" One of my patches used a loop that was based on host page size; it dies in qtest since qtest hadn't bothered init'ing it. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela Reviewed-by: Amit Shah Message-Id: <1439463094-5394-4-git-send-email-dgilbert@redhat.com> Signed-off-by: Amit Shah --- qtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qtest.c b/qtest.c index 05cefd2..8e10340 100644 --- a/qtest.c +++ b/qtest.c @@ -657,6 +657,7 @@ void qtest_init(const char *qtest_chrdev, const char *qtest_log, Error **errp) inbuf = g_string_new(""); qtest_chr = chr; + page_size_init(); } bool qtest_driver(void)