qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [6567] KVM: Get all cpuid values from function 2 (Amit


From: Anthony Liguori
Subject: Re: [Qemu-devel] [6567] KVM: Get all cpuid values from function 2 (Amit Shah)
Date: Mon, 09 Feb 2009 10:46:25 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Avi Kivity wrote:
Anthony Liguori wrote:
Revision: 6567
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6567
Author:   aliguori
Date:     2009-02-09 15:50:36 +0000 (Mon, 09 Feb 2009)

Log Message:
-----------
KVM: Get all cpuid values from function 2 (Amit Shah)

cpuid function 2 can have multiple values to describe cache behaviour.
Loop till we have fetched all the values.

Note that if we are rescheduled on another cpu, or if another process calls cpuid 2 during the loop on the same cpu, this will break.

That's unfortunate. If cpuid values can differ for individual processors, than I don't see a great way to avoid this problem in general.

Regards,

Anthony Liguori






reply via email to

[Prev in Thread] Current Thread [Next in Thread]