From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45245 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0WdR-0005gP-PM for qemu-devel@nongnu.org; Tue, 28 Sep 2010 05:38:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0WdQ-00062S-Gl for qemu-devel@nongnu.org; Tue, 28 Sep 2010 05:38:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44107) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0WdQ-00062L-AN for qemu-devel@nongnu.org; Tue, 28 Sep 2010 05:38:04 -0400 Message-ID: <4CA1B776.20105@redhat.com> Date: Tue, 28 Sep 2010 11:37:58 +0200 From: Avi Kivity MIME-Version: 1.0 References: <1285593377-1754-1-git-send-email-joerg.roedel@amd.com> <1285593377-1754-4-git-send-email-joerg.roedel@amd.com> <4CA0B116.4070107@redhat.com> <4CA0B1FF.8040903@redhat.com> <20100927154049.GI9817@amd.com> <4CA0C4B5.2010303@redhat.com> <20100928092851.GK9817@amd.com> In-Reply-To: <20100928092851.GK9817@amd.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 3/3] Add svm cpuid features List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Roedel, Joerg" Cc: Marcelo Tosatti , Alexander Graf , "kvm@vger.kernel.org" , "qemu-devel@nongnu.org" On 09/28/2010 11:28 AM, Roedel, Joerg wrote: > On Mon, Sep 27, 2010 at 12:22:13PM -0400, Avi Kivity wrote: > > On 09/27/2010 05:40 PM, Roedel, Joerg wrote: > > > On Mon, Sep 27, 2010 at 11:02:23AM -0400, Avi Kivity wrote: > > > > On 09/27/2010 04:58 PM, Avi Kivity wrote: > > > > > On 09/27/2010 03:16 PM, Joerg Roedel wrote: > > > > >> This patch adds the svm cpuid feature flags to the qemu > > > > >> intialization path. It also adds the svm features available > > > > >> on phenom to its cpu-definition and extends the host cpu > > > > >> type to support all svm features KVM can provide. > > > > >> > > > > > > > > > > This should really be "all svm features" since we'll later mask them > > > > > with kvm capabilities. This way, if we later add more capabilities, > > > > > we automatically gain support in userspace. > > > > > > Yes, that is what -cpu host does with these patches applied. The > > > svm_features variable is set to -1 in this case and masked out later > > > with the KVM capabilities. > > > > > > > Well, running current uq/master I get: > > > > has_svm: can't execute cpuid 0x8000000a > > kvm: no hardware support > > > > ? > > Weird, it worked here as I tested it. I had it on qemu/master and with > all three patches. But patch 1 should not make the difference. I take a > look, have you pushed the failing uq/master? Yes, 8fe6a21c76. > What was your command line? qemu-system-x86_64 -m 2G -cpu kvm64,+svm,+npt -enable-kvm ... Note this is qemu.git, so -enable-kvm is needed. -- error compiling committee.c: too many arguments to function