From: Keir Fraser Subject: Re: [PATCH] x86: fix feature availability for PV guests Date: Fri, 14 Mar 2008 11:33:39 +0000 Message-ID: References: <47DA6F83.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <47DA6F83.76E4.0078.0@novell.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: Jan Beulich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 14/3/08 11:28, "Jan Beulich" wrote: > PV guests should not be allowed to believe features not currently > virtualized (in many cases, requiring special MSRs) are available. Of > course it is bad enough that to work on older hypervisors guests will > still need to special case this, but better fix it now than never. IMO we should whitelist the features just as we now do for HVM guests. We already have that code; although we probably cannot easily share it with the PV code, it probably only needs copying-and-tweaking. > A question I came across while doing this - why is is_pv_32bit_vcpu() > not simply defined to constant 1 on 32-bits? Because it is occasionally applied to HVM guests. -- Keir