From: Abhinav Srivastava Subject: RE: FXSAVE instruction emulation Date: Fri, 18 Jul 2008 10:22:58 +0530 (IST) Message-ID: <698353.83857.qm@web7905.mail.in.yahoo.com> References: Reply-To: abhinavs_iitkgp@yahoo.co.in Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, "Su, Disheng" List-Id: xen-devel@lists.xenproject.org Yes, I am trying to emulate instructions step by step in some scenarios and= I am getting this instruction. I tried skipping this instruction but it di= d not work. Do you know any patch or workaround for that? Thanks, Abhinav --- On Fri, 18/7/08, Su, Disheng wrote: > From: Su, Disheng > Subject: RE: [Xen-devel] FXSAVE instruction emulation > To: abhinavs_iitkgp@yahoo.co.in, xen-devel@lists.xensource.com > Cc: "Su, Disheng" > Date: Friday, 18 July, 2008, 8:51 AM > Abhinav Srivastava wrote: > > Hi there, > >=20 > > I am using Xen-3.2 on Intel-VT hardware. My guest VM > is running Linux > > kernel 2.6.21 in HVM mode.=20 > >=20 > > I was trying to do some emulation from the hypervisor > and my code was > > failing to emulate FXSAVE instructions. I looked on > the mailing list > > and found the following patch that does that: =20 > >=20 > > "[Xen-devel] [PATCH 2/4] Enable VirtualPC 2007 > run on top of XEN: > > fxsave" from [Su, Disheng]=20 > >=20 > > However, when I applied this patch it is still not > working. I am > > going to the default case of this patch that directly > calls "goto > > cannot_emulate". When I printed the instruction > it is like this: 0f > > ae e8. The value of modrm_reg that patch uses to check > which case > > statement to execute is 05. The patch only handles the > value 0. =20 > >=20 > "0f ae e8" is the lfence instruction. It > isn't handled in this patch... > You can refer to Intel Software Developer Manual Vol.2B > A.4.2 for detail > information. > > Could some explain what does this mean? And, how to > solve this > > problem?=20 > > > Don't why you need to emulate this instruction... > Do you want to emulate instructions step by step? > How about bypass this "lfence"? > > Any help would be appreciated. > >=20 > > Thanks, > > Abhinav > >=20 > >=20 > >=20 > > Explore your hobbies and interests. Go to > > http://in.promos.yahoo.com/groups/=20 > >=20 > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel >=20 >=20 >=20 > Best Regards, > Disheng, Su >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel=0A=0A=0A Bring your gang togeth= er. Do your thing. Find your favourite Yahoo! group at http://in.promos.yah= oo.com/groups/