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:29:48 -0500 Message-ID: <48E3EBCC.70502@codemonkey.ws> References: <1222881242.9381.17.camel@alok-dev1> <48E3BBC1.2050607@goop.org> <1222894878.9381.63.camel@alok-dev1> <48E3E6DF.8060400@codemonkey.ws> <1222896215.9381.79.camel@alok-dev1> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jeremy Fitzhardinge , "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: akataria@vmware.com Return-path: Received: from rn-out-0910.google.com ([64.233.170.186]:34676 "EHLO rn-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752420AbYJAVa4 (ORCPT ); Wed, 1 Oct 2008 17:30:56 -0400 Received: by rn-out-0910.google.com with SMTP id k40so270650rnd.17 for ; Wed, 01 Oct 2008 14:30:55 -0700 (PDT) In-Reply-To: <1222896215.9381.79.camel@alok-dev1> Sender: kvm-owner@vger.kernel.org List-ID: Alok Kataria wrote: > Your explanation below answers the question you raised, the problem > being we need to have support for each of these different hypercall > mechanisms in the kernel. > I understand that this was the correct thing to do at that moment. > But do we want to go the same way again for CPUID when we can make it > generic (flat enough) for anybody to use it in the same manner and > expose a generic interface to the kernel. > But what sort of information can be stored in cpuid that's actually useful? Right now we just it in KVM for feature bits. Most of the stuff that's interesting is stored in shared memory because a guest can read that without taking a vmexit or via a hypercall. We can all agree upon a common mechanism for doing something but if no one is using that mechanism to do anything significant, what purpose does it serve? Regards, Anthony Liguori