Received: from eggs.gnu.org ([208.118.235.92]:56999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIeHL-0007aQ-O0 for qemu-devel@nongnu.org; Thu, 21 Mar 2013 08:07:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIeHG-0006la-Sj for qemu-devel@nongnu.org; Thu, 21 Mar 2013 08:07:31 -0400 Received: from [2a02:248:0:30:223:aeff:fefe:7f1c] (port=51943 helo=dns.kamp-intra.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIeHG-0006ko-Ee for qemu-devel@nongnu.org; Thu, 21 Mar 2013 08:07:26 -0400 From: Peter Lieven Date: Thu, 21 Mar 2013 13:07:10 +0100 Message-Id: <1363867631-5859-1-git-send-email-pl@kamp.de> Subject: [Qemu-devel] [PATCH 1/2] vl.c: call bdrv_init_with_whitelist() before cmdline parsing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Lieven commit 4d454574 "qemu-option: move standard option definitions out of qemu-config.c" broke support for commandline option groups that where registered during bdrv_init(). In particular support for -iscsi options was broken since that commit. Fix by moving the bdrv_init_with_whitelist() before command line argument parsing. Signed-off-by: Peter Lieven --- vl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index aeed7f4..315d43d 100644 --- a/vl.c +++ b/vl.c @@ -2935,6 +2935,8 @@ int main(int argc, char **argv, char **envp) nb_numa_nodes = 0; nb_nics = 0; + + bdrv_init_with_whitelist(); autostart= 1; @@ -4194,8 +4196,6 @@ int main(int argc, char **argv, char **envp) cpu_exec_init_all(); - bdrv_init_with_whitelist(); - blk_mig_init(); /* open the virtual block devices */ -- 1.7.9.5