From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOWcm-00011Q-4t for qemu-devel@nongnu.org; Wed, 17 Oct 2012 12:37:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOWcg-00077j-13 for qemu-devel@nongnu.org; Wed, 17 Oct 2012 12:37:39 -0400 Received: from mail-vb0-f45.google.com ([209.85.212.45]:37458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOWcf-00077b-TF for qemu-devel@nongnu.org; Wed, 17 Oct 2012 12:37:33 -0400 Received: by mail-vb0-f45.google.com with SMTP id p1so7067395vbi.4 for ; Wed, 17 Oct 2012 09:37:32 -0700 (PDT) MIME-Version: 1.0 From: Clemens Kolbitsch Date: Wed, 17 Oct 2012 09:37:12 -0700 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Subject: [Qemu-devel] Disabling KVM "on the fly" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Guys, I know this is question might seem a bit odd, but I'm curious: Has anyone ever tried to write code to disable KVM on the fly / is it at all possible? I have a situation where I need to use TCG for certain parts of the code, but would love to have acceleration for everything else. My idea was to pause the VM, then use the snapshotting mechanism to dump the state, and then to resume the snapshot, but writing the KVM state into the non-KVM structures. I know nothing of that sort is implemented at this point. Leaving aside the issue of certain CPUID instructions suddenly returning different results, are there obvious problems even trying to go down that road? Would love to hear some thoughts on this - don't hesitate to tell me "that's stupid and impossible because XYZ" (assuming you also fill in the blanks ;) ) Thanks! Clemens -- Clemens Kolbitsch Security Researcher kolbitsch@lastline.com +1 (206) 356-7745 Lastline, Inc. 6950 Hollister Avenue, Suite 101 Goleta, CA 93117 www.lastline.com