From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH] libxc: set CPUID topology leaf as unsupported for PV guests Date: Thu, 14 Jul 2011 15:25:57 +0100 Message-ID: <4E1EFC75.6080500@citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 14/07/11 14:30, Keir Fraser wrote: > On 14/07/2011 12:50, "David Vrabel" wrote: > >> libxc: set CPUID topology leaf as unsupported for PV guests >> >> The result of a CPUID Extended Topology Enumeration leaf for PV guests >> is invalid as the level in ECX is ignored. This can cause some guests >> to loop endlessly when trying to enumerate the topology. >> >> Since the physical topology isn't useful to PV guests set the topology >> leaf as unsupported. > > For future reference, you also need to modify > xen/arch/x86/traps.c:pv_cpuid(), for dom0. Looking at the code it looks like dom0 would at least see valid data for the the topology leaf. But I guess the info makes no sense to dom0 as well as domU guests. Patch sent if you've not already fixed it up. David