From: "Jan Beulich" Subject: Re: [PATCH V3] tools/tests: Add EIP check to test_x86_emulator.c Date: Thu, 07 Aug 2014 12:50:28 +0100 Message-ID: <53E38424020000780002A1F7@mail.emea.novell.com> References: <1407411514-19749-1-git-send-email-rcojocaru@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1407411514-19749-1-git-send-email-rcojocaru@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: andrew.cooper3@citrix.com, xen-devel@lists.xen.org, ian.jackson@eu.citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 07.08.14 at 13:38, wrote: > The test now also checks that EIP was modified after emulating > instructions after (and including) the "movq %mm3,(%ecx)..." > code block. This patch depends on Jan Beulich's "x86_emulate: > properly do IP updates and other side effects on success" patch > for the tests to succeed. > > Changes since V1: > - Now checking if the value in EIP is correct instead of simply > checking that EIP has been modified. > > Changes since V1: > - Added brackets for (unsigned long)(&instr[0] + instr_size). Quite pointlessly, but it's fine either way. And I guess I'll do some further work on it anyway before committing. Jan