From: "Jan Beulich" Subject: Re: Bisected Xen-unstable: "Segment register inaccessible for d1v0" when starting HVM guest on intel Date: Fri, 04 Jul 2014 08:11:29 +0100 Message-ID: <53B66FC102000078000208A0@mail.emea.novell.com> References: <1057886355.20140628222158@eikelenboom.it> <53B1A244020000780001EA4D@mail.emea.novell.com> <1081819750.20140630183750@eikelenboom.it> <53B66AD0020000780002086F@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X2xed-00065U-9r for xen-devel@lists.xenproject.org; Fri, 04 Jul 2014 07:11:31 +0000 In-Reply-To: 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: Feng Wu Cc: Andrew Cooper , "xen-devel@lists.xenproject.org" , Sander Eikelenboom List-Id: xen-devel@lists.xenproject.org >>> On 04.07.14 at 08:58, wrote: > >> -----Original Message----- >> From: Jan Beulich [mailto:JBeulich@suse.com] >> Sent: Friday, July 04, 2014 2:50 PM >> To: Wu, Feng >> Cc: Andrew Cooper; Sander Eikelenboom; xen-devel@lists.xenproject.org >> Subject: RE: Bisected Xen-unstable: "Segment register inaccessible for d1v0" >> when starting HVM guest on intel >> >> >>> On 04.07.14 at 04:51, wrote: >> > I try to reproduce this issue on my side, but I find that the per-VCPU guest >> > runstate shared memory area >> > is not registered by the HVM guest, so in update_runstate_area(), it always >> > returns 1 and bypass the >> > remaining logic. I am wondering how it is registered in your HVM guest, > were >> > you running an PVHVM guest >> > or HVM guest with PV drivers, I think which may register this area. >> > >> > Jan, do you have some ideas about this, Thanks a lot! >> >> You should have clarified what kind of guest(s) you tried. Pv-ops Linux, >> afaict, appears to register these areas not just in PV mode. > > I tried two kinds of guests: > 1. RHEL 6.5 with its own kernel. > 2. I built a 3.11.4 kernel in RHEL 6.5 and boot from this new kernel. > > Both the them don't register the 'runstate shared memory area', do I > need to configure something else in .config when building the kernel? For one asking a question like this is pretty pointless without attaching the .config you used. And second I think you could have checked the code yourself: xen_hvm_setup_cpu_clockevents() calling xen_setup_runstate_info() gets built when CONFIG_XEN_PVHVM is defined. Jan