From: Ian Campbell Subject: Intel: Overly restrictive test for availablility of CPUID masking MSRs? Date: Tue, 2 Mar 2010 14:01:40 +0000 Message-ID: <1267538500.11737.24008.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Jun Nakajima , Rob Hoes , Liping Ke List-Id: xen-devel@lists.xenproject.org Hi, http://xenbits.xensource.com/xen-unstable.hg?rev/aab9fbd6ffa0 from http://lists.xensource.com/archives/html/xen-devel/2008-07/msg00518.html restricts the CPUID masking feature to model 0x1d or model 0x17 with stepping >=4: if (!((model == 0x1d) || ((model == 0x17) && ((eax & 0xf) >= 4)))) { /* fail ... */ A Xeon E5520 which is supposed to have FlexMigration has family 6, model 26 (0x1a) and stepping 5 fails the existing test and we think it should be allowed. Is there a more precise way of detecting the presence of this capability? I've seen: family > 0x6 || (model > 0x17 || (model = 0x17 && stepping >= 4)) suggested but this looks like it matches exactly the same set of processors as the "eax < 0x00010674" in the code before aab9fbd6ffa0 which was apparently too lenient? Ian.