From: Razvan Cojocaru <rcojocaru@bitdefender.com>
To: Fabio Fantoni <fabio.fantoni@m2r.biz>, Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Paul Durrant <Paul.Durrant@citrix.com>,
xen-devel <xen-devel@lists.xensource.com>,
Zhi Wang <zhi.a.wang@intel.com>
Subject: Re: SSE instruction emulation issues
Date: Wed, 15 Jul 2015 17:18:14 +0300 [thread overview]
Message-ID: <55A66BA6.8010008@bitdefender.com> (raw)
In-Reply-To: <55A66657.3020306@m2r.biz>
On 07/15/2015 04:55 PM, Fabio Fantoni wrote:
> If you mean to look at the code involved, search the part about the
> problem, think how can go wrong or unexpected, add debug output if
> needed, try quick changes to it ecc... I can do it with simpler software
> and I did something similar with libxl but I don't know how to do the
> same for code like xen/arch/x86/x86_emulate/x86_emulate.c. I already
> took a look at it but I didn't find "MOVAPS" in comments like many others.
MOVAPS emulation is at line 4001 in the x86_emulate.c from staging:
4001 case 0x28: /* {,v}movap{s,d} xmm/m128,xmm */
4002 /* vmovap{s,d} ymm/m256,ymm */
I found this by looking up MOVAPS, getting the opcode (from e.g. here:
http://x86.renejeschke.de/html/file_module_x86_id_180.html) and
searching for 0x28 in the file.
> If so, I suppose that for any change in xen/arch/x86/x86_emulate and
> similar I can't simply make the change, do a make, make install and test
> it immediatly like libxl/xl but I have to rebuild full xen, install it
> and reboot dom0, is it right?
You don't have to do a full rebuild (i.e. make dist), you can just build
the hypervisor (change the current directory to xen/ and just run make
&& make install there, then reboot).
> Can you post a link with a quick reference about x86 emulation and/or
> instruction sets like sse2 which can help me learn what to do or an
> extensive knowledge on the subject is required in this case?
https://docs.oracle.com/cd/E18752_01/html/817-5477/epmpv.html
http://softpixel.com/~cwright/programming/simd/sse2.php
Hope this helps,
Razvan
next prev parent reply other threads:[~2015-07-15 14:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-10 12:00 SSE instruction emulation issues Andrew Cooper
2015-07-10 12:16 ` Jan Beulich
[not found] ` <55A64066.5020406@m2r.biz>
[not found] ` <55A6618C02000078000914A6@mail.emea.novell.com>
2015-07-15 13:55 ` Fabio Fantoni
2015-07-15 14:13 ` Paul Durrant
2015-07-15 14:22 ` Andrew Cooper
2015-07-15 14:18 ` Razvan Cojocaru [this message]
2015-07-15 14:35 ` Wang, Zhi A
2015-07-16 12:14 ` Fabio Fantoni
2015-07-16 14:54 ` Wang, Zhi A
2015-07-16 15:38 ` Fabio Fantoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55A66BA6.8010008@bitdefender.com \
--to=rcojocaru@bitdefender.com \
--cc=JBeulich@suse.com \
--cc=Paul.Durrant@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=fabio.fantoni@m2r.biz \
--cc=xen-devel@lists.xensource.com \
--cc=zhi.a.wang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.