From: Paolo Bonzini <pbonzini@redhat.com>
To: Bruce Rogers <brogers@suse.com>
Cc: gleb@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH v2] KVM: x86 emulator: emulate RETF imm
Date: Thu, 12 Sep 2013 18:33:31 +0200 [thread overview]
Message-ID: <5231ECDB.3070808@redhat.com> (raw)
In-Reply-To: <1378741220-20860-1-git-send-email-brogers@suse.com>
Il 09/09/2013 17:40, Bruce Rogers ha scritto:
> Opcode CA
>
> This gets used by a DOS based NetWare guest.
>
> Signed-off-by: Bruce Rogers <brogers@suse.com>
> ---
> arch/x86/kvm/emulate.c | 14 +++++++++++++-
> 1 files changed, 13 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
> index 2bc1e81..ddc3f3d 100644
> --- a/arch/x86/kvm/emulate.c
> +++ b/arch/x86/kvm/emulate.c
> @@ -2025,6 +2025,17 @@ static int em_ret_far(struct x86_emulate_ctxt *ctxt)
> return rc;
> }
>
> +static int em_ret_far_imm(struct x86_emulate_ctxt *ctxt)
> +{
> + int rc;
> +
> + rc = em_ret_far(ctxt);
> + if (rc != X86EMUL_CONTINUE)
> + return rc;
> + rsp_increment(ctxt, ctxt->src.val);
> + return X86EMUL_CONTINUE;
> +}
> +
> static int em_cmpxchg(struct x86_emulate_ctxt *ctxt)
> {
> /* Save real source value, then compare EAX against destination. */
> @@ -3763,7 +3774,8 @@ static const struct opcode opcode_table[256] = {
> G(ByteOp, group11), G(0, group11),
> /* 0xC8 - 0xCF */
> I(Stack | SrcImmU16 | Src2ImmByte, em_enter), I(Stack, em_leave),
> - N, I(ImplicitOps | Stack, em_ret_far),
> + I(ImplicitOps | Stack | SrcImmU16, em_ret_far_imm),
> + I(ImplicitOps | Stack, em_ret_far),
> D(ImplicitOps), DI(SrcImmByte, intn),
> D(ImplicitOps | No64), II(ImplicitOps, em_iret, iret),
> /* 0xD0 - 0xD7 */
>
Applied to kvm/queue for 3.12, thanks.
prev parent reply other threads:[~2013-09-12 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-09 15:40 [PATCH v2] KVM: x86 emulator: emulate RETF imm Bruce Rogers
2013-09-10 6:45 ` Gleb Natapov
2013-09-12 16:33 ` Paolo Bonzini [this message]
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=5231ECDB.3070808@redhat.com \
--to=pbonzini@redhat.com \
--cc=brogers@suse.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
/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.