From: "Jan Beulich" Subject: domain restore operation ordering Date: Wed, 26 Mar 2014 10:00:12 +0000 Message-ID: <5332B33C0200007800002373@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSkd6-0004Uu-R4 for xen-devel@lists.xenproject.org; Wed, 26 Mar 2014 10:00:16 +0000 Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , Ian Jackson Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Hi, looking at some restore log with HVM debug options enabled in the hypervisor I notice (XEN) HVM2 restore: MTRR 0 (XEN) [HVM:0.0] invalid msr content:fff8000800 (XEN) (XEN) [HVM:0.0] invalid msr content:fffc000800 and looking into the reasons for that I think both xend and xl apply the CPUID policy and overrides only _after_ having processed the restore image. Yet mtrr_var_range_msr_set() uses domain_cpuid() to determine the number of physical address bits in order to validate the register contents. Is there any reason why the ordering needs to be the way it currently is? If so, we may need to tweak mtrr_var_range_msr_set() to special case restoring (albeit I can't think of a way to tell this, perhaps apart from d != current->domain, which wouldn't really be a restore specific check). Thanks, Jan