From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: [PATCH 3/5] KVM: x86 emulator: implement movntps
Date: Mon, 9 Apr 2012 18:40:01 +0300 [thread overview]
Message-ID: <1333986003-28050-4-git-send-email-avi@redhat.com> (raw)
In-Reply-To: <1333986003-28050-1-git-send-email-avi@redhat.com>
Used to write to framebuffers (by at least Icaros).
Signed-off-by: Avi Kivity <avi@redhat.com>
---
arch/x86/kvm/emulate.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index b160fb1f..fb39e0b 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -3440,6 +3440,10 @@ static int check_perm_out(struct x86_emulate_ctxt *ctxt)
N, I(Sse | Aligned, em_mov), N, I(Sse | Unaligned, em_mov),
};
+static struct gprefix pfx_vmovntpx = {
+ I(0, em_mov), N, N, N,
+};
+
static struct opcode opcode_table[256] = {
/* 0x00 - 0x07 */
I6ALU(Lock, em_add),
@@ -3571,7 +3575,8 @@ static int check_perm_out(struct x86_emulate_ctxt *ctxt)
IIP(ModRM | SrcMem | Priv | Op3264, em_cr_write, cr_write, check_cr_write),
IIP(ModRM | SrcMem | Priv | Op3264, em_dr_write, dr_write, check_dr_write),
N, N, N, N,
- N, N, N, N, N, N, N, N,
+ N, N, N, GP(ModRM | DstMem | SrcReg | Sse | Mov | Aligned, &pfx_vmovntpx),
+ N, N, N, N,
/* 0x30 - 0x3F */
II(ImplicitOps | Priv, em_wrmsr, wrmsr),
IIP(ImplicitOps, em_rdtsc, rdtsc, check_rdtsc),
--
1.7.10
next prev parent reply other threads:[~2012-04-09 15:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-09 15:39 [PATCH 0/5] MMX/SSE data movement Avi Kivity
2012-04-09 15:39 ` [PATCH 1/5] KVM: x86 emulator: add support for vector alignment Avi Kivity
2012-04-09 15:40 ` [PATCH 2/5] KVM: x86: emulate movdqa Avi Kivity
2012-04-09 15:40 ` Avi Kivity [this message]
2012-04-09 15:40 ` [PATCH 4/5] KVM: x86 emulator: MMX support Avi Kivity
2012-04-09 15:40 ` [PATCH 5/5] KVM: x86 emulator: implement MMX MOVQ (opcodes 0f 6f, 0f 7f) Avi Kivity
2012-04-13 20:50 ` [PATCH 0/5] MMX/SSE data movement Marcelo Tosatti
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=1333986003-28050-4-git-send-email-avi@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=stefanha@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox