From: Amit Shah Subject: Re: [PATCH] introduce kvm64 CPU Date: Sun, 23 Aug 2009 18:50:30 +0530 Message-ID: <20090823132030.GB30140@amit-x200.redhat.com> References: <1250804057-29681-1-git-send-email-andre.przywara@amd.com> <4A8EC03D.4000202@redhat.com> <5d6222a80908210901n127ec497hb858225021921495@mail.gmail.com> <4A8F1765.6060306@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Glauber Costa , Avi Kivity , anthony@codemonkey.ws, qemu-devel@nongnu.org, kvm@vger.kernel.org, jamie@shareable.org To: Andre Przywara Return-path: Received: from mx1.redhat.com ([209.132.183.28]:7075 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933598AbZHWNUy (ORCPT ); Sun, 23 Aug 2009 09:20:54 -0400 Content-Disposition: inline In-Reply-To: <4A8F1765.6060306@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: On (Fri) Aug 21 2009 [23:53:41], Andre Przywara wrote: > Glauber Costa wrote: >> On Fri, Aug 21, 2009 at 12:41 PM, Avi Kivity wrote: >>> On 08/21/2009 12:34 AM, Andre Przywara wrote: >>>> In addition to the TCG based qemu64 type let's introduce a kvm64 CPU type, >>>> which is the least common denominator of all KVM-capable x86-CPUs >>>> (based on Intel Pentium 4 Prescott). It can be used as a base type >>>> for migration. >>>> >>> Typically users will want more specialized greatest common denomiator cpu >>> types; if a site has standardized on recent hardware they will want the >>> features of that hardware exposed. >>> >>> I think this is best left to management software, which has more information >>> about the migration pool. >> I believe what we want is an automatic tool that will connect to a >> list of machines,and determine which qemu cpu type we should use. > > Doesn't sound like black magic... > I already have such a basic tool. It uses ssh (with pubkey) to connect > to the target machine, then uses dd on /dev/cpu/0/cpuid to get the CPUID > info. This requires cpuid.ko to be loaded and the permissions on the > device file to be sufficient (the appropriate udev patch is already > upstream). It then computes the least common denominator bits from > several machines. I had such patches as well. I think I sent them on qemu-devel. When do you plan on sending your patches out? Amit