From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC] Expose host cpuid to guest Date: Wed, 21 Nov 2007 17:11:33 +0200 Message-ID: <47444AA5.7040807@qumranet.com> References: <20071121110631.GA14292@karma.qumranet.com> <47441BEF.4070207@qumranet.com> <20071121144128.GA26036@karma.qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Dan Kenigsberg Return-path: In-Reply-To: <20071121144128.GA26036-iWbx9bcAnq+Hk9JtIoIkgNBPR1lH4CV8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Dan Kenigsberg wrote: > On Wed, Nov 21, 2007 at 01:52:15PM +0200, Avi Kivity wrote: > >> Dan Kenigsberg wrote: >> >>> These patches expose host CPU features (that are known to work under >>> KVM) to guests. It makes a couple of benchmarks run faster, and >>> generally gives kvm's user better info on its host. >>> >>> The kernel-space patch adds KVM_GET_SUPPORTED_CPUID ioctl to obtain the >>> table of cpuid functions supported by the host. The user-space patch >>> allows fine-tuning this table from the command-line. >>> >>> I had to define struct kvm_cpuid2, KVM_SET_CPUID2 etc., because cpuid >>> functions are a little more complex than just function-value pairs. >>> commit e9775d0a16097cfb71779cb2fb985fb3e5040dc8 >>> Author: Dan Kenigsberg >>> Date: Sun Nov 18 13:55:26 2007 +0200 >>> >>> Support -cpu host option. Negotiate cpuid table with userspace. >>> > > I believe the attached two patches apply all your comments. > > Applied kernel patch. Will wait with userspace until next qemu merge (which is pending qemu-cvs regressions). -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/