From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [RFC] CPUID usage for interaction between Hypervisors and Linux. Date: Wed, 01 Oct 2008 16:34:09 -0500 Message-ID: <48E3ECD1.30809@codemonkey.ws> References: <1222881242.9381.17.camel@alok-dev1> <48E3BBC1.2050607@goop.org> <1222894878.9381.63.camel@alok-dev1> <48E3E8DE.1080602@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: akataria@vmware.com, "avi@redhat.com" , Rusty Russell , Gerd Hoffmann , "H. Peter Anvin" , Ingo Molnar , the arch/x86 maintainers , LKML , "Nakajima, Jun" , Daniel Hecht , Zach Amsden , "virtualization@lists.linux-foundation.org" , "kvm@vger.kernel.org" To: Jeremy Fitzhardinge Return-path: Received: from yx-out-2324.google.com ([74.125.44.29]:31241 "EHLO yx-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753231AbYJAVfQ (ORCPT ); Wed, 1 Oct 2008 17:35:16 -0400 Received: by yx-out-2324.google.com with SMTP id 8so135647yxm.1 for ; Wed, 01 Oct 2008 14:35:15 -0700 (PDT) In-Reply-To: <48E3E8DE.1080602@goop.org> Sender: kvm-owner@vger.kernel.org List-ID: Jeremy Fitzhardinge wrote: > Alok Kataria wrote: > > I guess, but the bulk of the uses of this stuff are going to be > hypervisor-specific. You're hard-pressed to come up with any other > generic uses beyond tsc. And arguably, storing TSC frequency in CPUID is a terrible interface because the TSC frequency can change any time a guest is entered. It really should be a shared memory area so that a guest doesn't have to vmexit to read it (like it is with the Xen/KVM paravirt clock). Regards, Anthony Liguori > In general, if a hypervisor is going to put something in a special > cpuid leaf, its because there's no other good way to represent it. > Generic things are generally going to appear as an emulated piece of > the virtualized platform, in ACPI, DMI, a hardware-defined cpuid leaf, > etc...