[kvm-devel] [RFC] Expose host cpuid to guest: userspace patch

2007-12-25 Thread Dan Kenigsberg
The first little patch (already swallowed by qemu-devel) corrects the cpuid_level exposed for various cpu models, and lets us change it. The main attached patch is the userspace part of cpuid support. Please comment if you find something that is not to your liking. Regards, Dan. diff --git a/

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-22 Thread Mike Lampard
On Fri, 23 Nov 2007 12:00:00 am Avi Kivity wrote: > Mike Lampard wrote: > > With current kvm-git (commit 51727a110220681f6f43b005d069e28c58f5d151) > > (userspace is current to commit 6a385c9539f9746d7ff51ef34c064c3eba86448b) > > and the userspace portion of this patch I cannot boot a 64 bit guest >

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-22 Thread Dan Kenigsberg
On Thu, Nov 22, 2007 at 11:50:14PM +1030, Mike Lampard wrote: > On Thu, 22 Nov 2007 11:31:18 pm Dan Kenigsberg wrote: > > On Thu, Nov 22, 2007 at 10:12:04AM +1030, Mike Lampard wrote: > > > On Wed, 21 Nov 2007 09:36:31 pm Dan Kenigsberg wrote: > > > > These patches expose host CPU features (that ar

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-22 Thread Avi Kivity
Mike Lampard wrote: > With current kvm-git (commit 51727a110220681f6f43b005d069e28c58f5d151) > (userspace is current to commit 6a385c9539f9746d7ff51ef34c064c3eba86448b) and > the userspace portion of this patch I cannot boot a 64 bit guest (Mandriva > 2008 x64) on my AMD x2 without -cpu host. T

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-22 Thread Mike Lampard
On Thu, 22 Nov 2007 11:31:18 pm Dan Kenigsberg wrote: > On Thu, Nov 22, 2007 at 10:12:04AM +1030, Mike Lampard wrote: > > On Wed, 21 Nov 2007 09:36:31 pm Dan Kenigsberg wrote: > > > These patches expose host CPU features (that are known to work under > > > KVM) to guests. It makes a couple of bench

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-22 Thread Dan Kenigsberg
On Thu, Nov 22, 2007 at 10:12:04AM +1030, Mike Lampard wrote: > On Wed, 21 Nov 2007 09:36:31 pm 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 in

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-21 Thread Mike Lampard
On Wed, 21 Nov 2007 09:36:31 pm 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_CPUI

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-21 Thread Avi Kivity
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 bette

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-21 Thread Dan Kenigsberg
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-spac

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-21 Thread Avi Kivity
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

Re: [kvm-devel] [RFC] Expose host cpuid to guest

2007-11-21 Thread Amit Shah
* 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

[kvm-devel] [RFC] Expose host cpuid to guest

2007-11-21 Thread Dan Kenigsberg
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