From: "Jan Beulich" Subject: Re: [PATCH RFC 7/9] xen: Handle resumed instruction based on previous mem_event reply Date: Thu, 03 Jul 2014 11:14:48 +0100 Message-ID: <53B54938020000780002017E@mail.emea.novell.com> References: <1404308041-15461-1-git-send-email-rcojocaru@bitdefender.com> <1404308041-15461-7-git-send-email-rcojocaru@bitdefender.com> <53B447BA020000780001FB54@mail.emea.novell.com> <53B51A6A.30802@bitdefender.com> <53B538350200007800020017@mail.emea.novell.com> <53B51E64.5020602@bitdefender.com> <53B53CEC0200007800020095@mail.emea.novell.com> <53B52392.1080804@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53B52392.1080804@bitdefender.com> 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: Razvan Cojocaru Cc: tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 03.07.14 at 11:34, wrote: > On 07/03/2014 12:22 PM, Jan Beulich wrote: >>>>> On 03.07.14 at 11:12, wrote: >>> An example that kept appearing with Xen 4.3 and Firefox in our test >>> environment was: divsd xmm0, qword ptr [0x21c290] >> >> And what's so special about it? Just that there's a better chance of it >> raising #XM? And why would divss (which is SSE, not SSE2) or vdivsd >> (AVX) not have similar problems? > > Nothing is particularly special about it, apart from the fact that it > caused our hypervisor to print out: > > Emulation failed @ 001b:21107d: f2 0f 5e 05 90 c2 21 00 8b 4d > > and Firefox crashed. Indeed, I agree with Andrew that this looks like a > bug in Xen's emulator, however rather than treating each case > individually and risk random application crashes with instructions we > missed, we decided to, for our purposes, treat this as a class of cases > that can be handled in the same way regardless of the specific instruction. Which is even more of an argument to extend the emulator we have rather than introducing half a new one. And of course, with the goal you have, just won't get away with implementing just the instructions you have seen being used - you (or someone else) just have to go through and implement _all_ known instructions. Quite a bit of a job, I know... Jan