From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=37607 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUHgF-0003kQ-C6 for qemu-devel@nongnu.org; Thu, 01 Jul 2010 07:11:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUHgE-0007R2-4Y for qemu-devel@nongnu.org; Thu, 01 Jul 2010 07:11:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58945) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUHgD-0007Qu-T0 for qemu-devel@nongnu.org; Thu, 01 Jul 2010 07:11:42 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o61BBfkD030966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 1 Jul 2010 07:11:41 -0400 From: Kevin Wolf Date: Thu, 1 Jul 2010 13:11:30 +0200 Message-Id: <1277982694-28563-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/4] blkdebug: Fix config with multiple states List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com Turns out that using more than one state doesn't really work well. I'm trying to reproduce a bug for which I need states, so now is the time to fix it. v2: - Use Markus' qemu_opts_reset for freeing QemuOpts. Makes the code reusable and fixes a use-after-free bug. Kevin Wolf (3): blkdebug: Fix set_state_opts definition blkdebug: Free QemuOpts after having read the config blkdebug: Initialize state as 1 Markus Armbruster (1): qemu-option: New qemu_opts_reset() block/blkdebug.c | 7 ++++++- qemu-option.c | 9 +++++++++ qemu-option.h | 1 + 3 files changed, 16 insertions(+), 1 deletions(-)