From: Keir Fraser Subject: Re: XEN monitor/mwait patch for AMD SVM Date: Fri, 22 May 2009 18:18:47 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 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: "Boppuri, Navin" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org That's firmly in the 'Doctor, it hurts when I...' category I'm afraid. No way will I apply this type of patch. -- Keir On 22/05/2009 18:10, "Boppuri, Navin" wrote: > Keir, >=20 > Sorry but the patch is against the latest tip of the xen unstable tree > (changeset: 18646). >=20 > I understand that MWAIT is not mentioned in the whitelist for HVM policy. > However, one could modify the guest config file and set the cpuid bit for > monitor/mwait and enable this feature by force. I was able to do just thi= s in > my test configuration. This patch should cover such mods for cpuid in add= ition > to the cpuid policy in libxc. >=20 > Thank you. > -Navin >=20 >> -----Original Message----- >> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com] >> Sent: Friday, May 22, 2009 11:40 AM >> To: Boppuri, Navin; xen-devel@lists.xensource.com >> Subject: Re: XEN monitor/mwait patch for AMD SVM >>=20 >> On 22/05/2009 16:23, "Boppuri, Navin" wrote: >>=20 >>> This patch clears the monitor/mwait bit in the cpuid intercept code for >> AMD=B9s >>> SVM. This is to disallow VM=B9s that may try and use the monitor/mwait >> feature >>> on AMD processors which is currently not supported in XEN. >>>=20 >>> Signed-off-by: Navin Boppuri >>=20 >> What Xen version is this patch against? We already hide MWAIT from HVM >> guests as far as I am aware. See >> tools/libxc/xc_cpuid_x86.c:xc_cpuid_hvm_policy(), and note that features >> are >> *whitelisted* and also that MWAIT is *not* mentioned. >>=20 >> So I think your patch is not needed, and also inappropriate since we >> implement CPUID filtering policy in libxc these days. >>=20 >> -- Keir >>=20 >>=20 >=20 >=20