From: Keir Fraser Subject: Re: [PATCH] MSR related clean up Date: Wed, 24 Jun 2009 11:48:27 +0100 Message-ID: References: <9832F13BD22FB94A829F798DA4A8280501B9C37A7F@pdsmsx503.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9832F13BD22FB94A829F798DA4A8280501B9C37A7F@pdsmsx503.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Dong, Eddie" , Sheng Yang Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 24/06/2009 10:45, "Dong, Eddie" wrote: > Returning 0 solves the security concern. But the argument is still that if the > guest should see same MSR sets with native. The CPUID virtualization provides > close features with native, but still not identical. > An ideal solution for those MSR read should consult guest CPUID and then > decide to either inject #GP if guest CPUID doesn't indicate this MSR, or > return a virtual MSR. In this case MSR write side should provide the virtual > MSR too. Nice plan, but apart from my doubts about anyone actually bothering to a comprehensive job of this for current processors, there's also the problem that future processors may have MSRs detected via means such as model/family-id which we currently pass through. -- Keir > BTW, user can identify certain filtering policy or force some bits of guest > CPUID, so current approach can't satisfy both cases.