From: "Jan Beulich" Subject: Re: Bisected Xen-unstable: "Segment register inaccessible for d1v0" when starting HVM guest on intel Date: Thu, 03 Jul 2014 14:21:17 +0100 Message-ID: <53B574ED02000078000203FF@mail.emea.novell.com> References: <1057886355.20140628222158@eikelenboom.it> <53B1A244020000780001EA4D@mail.emea.novell.com> <1081819750.20140630183750@eikelenboom.it> <53B19EEB.4060603@citrix.com> <53B27902020000780001ED8B@mail.emea.novell.com> <53B29E03020000780001EF03@mail.emea.novell.com> <53B3CA8A020000780001F4B4@mail.emea.novell.com> <53B3D5D2020000780001F4F8@mail.emea.novell.com> <53B3ECEE020000780001F61F@mail.emea.novell.com> <53B423B3020000780001F8C5@mail.emea.novell.com> <53B51927020000780001FF0A@mail.emea.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 1X2gwx-0000Xb-US for xen-devel@lists.xenproject.org; Thu, 03 Jul 2014 13:21:20 +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 03.07.14 at 15:04, wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> And as Andrew emphasized, raising a fault in response to a failure >> here is out of question (the only two options considering this is >> asynchronous would be #MC or a failsafe callback, neither of which >> really fit the purpose). Nevertheless it would be rather desirable to >> have a way to tell the guest about the dropped write. We've got >> a field in struct arch_vcpu_info that we could leverage for this, >> requiring the guest to actively poll if it cares about finding out (to >> avoid the polling this could further be combined with a new >> per-vCPU vIRQ, or by defining another XEN_NMIREASON_* value >> and delivering the notification via NMI). > > I am not familiar with these related code actually, I try to get some > findings in the code, but seems no good news. So maybe I have some > basic questions here: > 1. What is the purpose of 'struct arch_vcpu_info arch'? > 2. Do you mean I can use the member 'unsigned long pad' of it to tell > the guest about the dropped write. > 3. What information about the dropped write should be sent to guest? > 4. When guests will poll the information? > 5. Can vIRQ be used for HVM guest? Is there an existing example in the > current code? With this many questions I don't think there's much point in you doing the notification part; why don't you just start without notification, adding of which is an enhancement only anyway? Jan