From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33283 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIPDD-0004SB-5I for qemu-devel@nongnu.org; Tue, 16 Nov 2010 12:20:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIPDB-0000AG-4w for qemu-devel@nongnu.org; Tue, 16 Nov 2010 12:20:54 -0500 Received: from mail-iw0-f173.google.com ([209.85.214.173]:49849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIPDB-00009w-1u for qemu-devel@nongnu.org; Tue, 16 Nov 2010 12:20:53 -0500 Received: by iwn36 with SMTP id 36so1079615iwn.4 for ; Tue, 16 Nov 2010 09:20:52 -0800 (PST) Message-ID: <4CE2BD72.5030502@codemonkey.ws> Date: Tue, 16 Nov 2010 11:20:50 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Introduce -accel command option. References: <1289835951-25567-1-git-send-email-anthony.perard@citrix.com> <4CE165E0.5040705@codemonkey.ws> <4CE2B435.4060003@codemonkey.ws> <20101116165506.GE1310@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Anthony PERARD , QEMU-devel On 11/16/2010 10:59 AM, Alexander Graf wrote: > >> Surely, only if it is running on a Xen Dom0. If you use -M xenpv on a KVM >> host, then -M xenpv should imply -machine accel=kvm (ie it would be using >> xenner) >> > Actually, it should imply -machine accel=kvm,tcg :). Accelerators really are not a machine property. In an ideal world, -M pc would just work with xen hvm if -accel xen is given. > No, an accelerator is both a CPU selection and a machine characteristic. For KVM, we overload -cpu to modify both the KVM CPU and the TCG CPU both this won't work with accel=xen. We probably shouldn't do this with KVM either because there's a significant different between trying to do cpuid masking with KVM and modifying the TCG cpu emulation support. Both KVM and Xen have other impacts on the platform devices though. KVM does not support SMM so it disables that in the i440fx. KVM prefers to use it's own in-kernel local APIC (and IOAPIC). That makes it a property of the machine. Regards, Anthony Liguori > Alex > >