All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amit Shah <amit.shah@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: qemu-devel@nongnu.org, aliguori@us.ibm.com, avi@redhat.com,
	kvm@vger.kernel.org
Subject: Re: [Qemu-devel] v2:  KVM: support for 'count' in CPUID functions 4, 0xb and 0xd.
Date: Tue, 13 Jan 2009 14:40:53 +0530	[thread overview]
Message-ID: <20090113091053.GA22533@amit-x200.pnq.redhat.com> (raw)
In-Reply-To: <122E97F4-926C-44D4-B595-257AFBB08966@suse.de>

On Tue, Jan 13, 2009 at 09:25:32AM +0100, Alexander Graf wrote:
>
> On 13.01.2009, at 08:09, Amit Shah wrote:
>
>> These two patches were sent separately earlier. There are a couple of
>> small changes in this version, including removal of a debug message  
>> that
>> was left behind.
>
> Are you sure this actually implements the CPUID 4 leaf? I bet it simply 
> submits multiple KVM_SET_CPUID ioctls, from which the kernel module picks 

I've also sent kernel patches to the kvm list.

Why do you think we submit multiple KVM_SET_CUPID calls, btw?

> the last one (0), not exposing _any_ cache information to the guest.

Please also see the kernel patches.

> For exactly this purpose KVM_SET_CPUID2 was introduced quite a while  
> ago, enabling support for all CPUID leaf flavors on the kernel side.  
> Merely the userspace call is missing.

We can do without using SET_CPUID2 (and hence not needing to do any
trickery for kernel-userspace version mismatches).

> Nevertheless - thanks for taking onto this. Cpuid4 enabling is one of  
> the (pretty low-prio) items on my TODO list for Mac OS X guest support.

Guess it'll work now. With these patches, not only does the "core2duo"
cpu type work with kvm, it also helps us get closer to use the "host"
cpu type. (Also, a simple userspace program in the guest that dumps
cpuid values indeed shows the correct values for all the sub-leaves for
function 4).

Amit

WARNING: multiple messages have this Message-ID (diff)
From: Amit Shah <amit.shah@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, kvm@vger.kernel.org,
	avi@redhat.com
Subject: Re: [Qemu-devel] v2:  KVM: support for 'count' in CPUID functions 4, 0xb and 0xd.
Date: Tue, 13 Jan 2009 14:40:53 +0530	[thread overview]
Message-ID: <20090113091053.GA22533@amit-x200.pnq.redhat.com> (raw)
In-Reply-To: <122E97F4-926C-44D4-B595-257AFBB08966@suse.de>

On Tue, Jan 13, 2009 at 09:25:32AM +0100, Alexander Graf wrote:
>
> On 13.01.2009, at 08:09, Amit Shah wrote:
>
>> These two patches were sent separately earlier. There are a couple of
>> small changes in this version, including removal of a debug message  
>> that
>> was left behind.
>
> Are you sure this actually implements the CPUID 4 leaf? I bet it simply 
> submits multiple KVM_SET_CPUID ioctls, from which the kernel module picks 

I've also sent kernel patches to the kvm list.

Why do you think we submit multiple KVM_SET_CUPID calls, btw?

> the last one (0), not exposing _any_ cache information to the guest.

Please also see the kernel patches.

> For exactly this purpose KVM_SET_CPUID2 was introduced quite a while  
> ago, enabling support for all CPUID leaf flavors on the kernel side.  
> Merely the userspace call is missing.

We can do without using SET_CPUID2 (and hence not needing to do any
trickery for kernel-userspace version mismatches).

> Nevertheless - thanks for taking onto this. Cpuid4 enabling is one of  
> the (pretty low-prio) items on my TODO list for Mac OS X guest support.

Guess it'll work now. With these patches, not only does the "core2duo"
cpu type work with kvm, it also helps us get closer to use the "host"
cpu type. (Also, a simple userspace program in the guest that dumps
cpuid values indeed shows the correct values for all the sub-leaves for
function 4).

Amit

  reply	other threads:[~2009-01-13  9:10 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13  7:09 v2: KVM: support for 'count' in CPUID functions 4, 0xb and 0xd Amit Shah
2009-01-13  7:09 ` [Qemu-devel] " Amit Shah
2009-01-13  7:09 ` [PATCH] KVM: CPUID takes ecx as input value for some functions Amit Shah
2009-01-13  7:09   ` [Qemu-devel] " Amit Shah
2009-01-13  7:09   ` [PATCH] KVM: Fetch sub-leaf cpuid values for functions 4, 0xb, 0xd Amit Shah
2009-01-13  7:09     ` [Qemu-devel] " Amit Shah
2009-01-13  8:25 ` [Qemu-devel] v2: KVM: support for 'count' in CPUID functions 4, 0xb and 0xd Alexander Graf
2009-01-13  9:10   ` Amit Shah [this message]
2009-01-13  9:10     ` Amit Shah
2009-01-13 11:06     ` Amit Shah
2009-01-13 11:06       ` Amit Shah
2009-01-13  9:56 ` [PATCH] Always return latest pmsts instead of the old one Zhang, Xiantao
2009-01-13  9:56   ` [Qemu-devel] " Zhang, Xiantao
2009-01-15  6:27   ` Zhang, Xiantao
2009-01-15  6:27     ` [Qemu-devel] " Zhang, Xiantao
2009-01-15 21:55   ` Anthony Liguori
2009-01-15 21:55     ` [Qemu-devel] " Anthony Liguori
2009-01-19 14:12     ` Zhang, Xiantao
2009-01-19 14:12       ` [Qemu-devel] " Zhang, Xiantao
2009-01-21  3:51       ` Zhang, Xiantao
2009-01-21  3:51         ` [Qemu-devel] " Zhang, Xiantao
2009-01-21 16:35       ` Anthony Liguori
2009-01-21 16:35         ` [Qemu-devel] " Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090113091053.GA22533@amit-x200.pnq.redhat.com \
    --to=amit.shah@redhat.com \
    --cc=agraf@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.