From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kvm + kqemu enabled at the same time Date: Wed, 29 Oct 2008 09:21:24 +0200 Message-ID: <49080EF4.4090307@redhat.com> References: <200810282220.59240.kejda@centrum.cz> <49078CF8.9070704@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: =?ISO-8859-1?Q?Martin_Kej=EDk?= , kvm@vger.kernel.org To: Anthony Liguori Return-path: Received: from mx2.redhat.com ([66.187.237.31]:45459 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752257AbYJ2HXV (ORCPT ); Wed, 29 Oct 2008 03:23:21 -0400 In-Reply-To: <49078CF8.9070704@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: Anthony Liguori wrote: > Martin Kej=EDk wrote: >> Hello, >> I've compiled the KVM enabled QEMU with support for both KVM and=20 >> KQEMU. Both modules loaded and >> QEMU running saying "kvm: enabled" and "kqemu: enabled for user code= ". >> >> How does this work?? What does QEMU really do in this situation when= =20 >> we look closer to CPU?? >> =20 > > You're using both accelerators at the same time and getting 2x=20 > acceleration. It will actually go faster than native now :-) > > Seriously, it's working based on sheer luck. If you look at the=20 > cpu_exec() loop (which is the core execution loop in QEMU, you'll see= ): Is cpu_exec() actually executed with kvm? I think we fork vcpu threads= =20 and jump to our own little main loop before that. --=20 I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.