From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjIYY-0006cm-C0 for qemu-devel@nongnu.org; Thu, 03 Sep 2009 16:05:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjIYT-0006b5-E6 for qemu-devel@nongnu.org; Thu, 03 Sep 2009 16:05:17 -0400 Received: from [199.232.76.173] (port=54570 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjIYT-0006au-A2 for qemu-devel@nongnu.org; Thu, 03 Sep 2009 16:05:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6414) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjIYS-0007jO-Kb for qemu-devel@nongnu.org; Thu, 03 Sep 2009 16:05:12 -0400 Date: Thu, 3 Sep 2009 17:05:03 -0300 From: Luiz Capitulino Message-ID: <20090903170503.39e35ab7@doriath> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] qemu-kvm: fix segfault when running kvm without /dev/kvm, falling back to non-accelerated mode List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dustin Kirkland Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org On Thu, 3 Sep 2009 12:31:33 -0500 Dustin Kirkland wrote: > qemu-kvm: fix segfault when running kvm without /dev/kvm, falling back > to non-accelerated mode > > We're seeing segfaults on systems without access to /dev/kvm. It > looks like the global kvm_allowed is being set just a little too late > in vl.c. This patch moves the kvm initialization a bit higher in the > vl.c main, just after options processing, and solves the segfaults. > We're carrying this patch in Ubuntu 9.10 Alpha. Please apply > upstream, or advise if and why this might not be the optimal solution. > > Signed-off-by: Dustin Kirkland Fixes the problem to me: Tested-by: Luiz Capitulino