All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Bruce Rogers <brogers@suse.com>
Cc: pbonzini@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH kvm-unit-tests] realmode: test RETF imm
Date: Sun, 8 Sep 2013 16:18:59 +0300	[thread overview]
Message-ID: <20130908131859.GJ17294@redhat.com> (raw)
In-Reply-To: <1378329137-21399-1-git-send-email-brogers@suse.com>

On Wed, Sep 04, 2013 at 03:12:17PM -0600, Bruce Rogers wrote:
> Signed-off-by: Bruce Rogers <brogers@suse.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>

> ---
>  x86/realmode.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/x86/realmode.c b/x86/realmode.c
> index 3546771..c57e033 100644
> --- a/x86/realmode.c
> +++ b/x86/realmode.c
> @@ -481,6 +481,9 @@ void test_io(void)
>  asm ("retf: lretw");
>  extern void retf();
>  
> +asm ("retf_imm: lretw $10");
> +extern void retf_imm();
> +
>  void test_call(void)
>  {
>  	u32 esp[16];
> @@ -503,6 +506,7 @@ void test_call(void)
>  	MK_INSN(call_far1,  "lcallw *(%ebx)\n\t");
>  	MK_INSN(call_far2,  "lcallw $0, $retf\n\t");
>  	MK_INSN(ret_imm,    "sub $10, %sp; jmp 2f; 1: retw $10; 2: callw 1b");
> +	MK_INSN(retf_imm,   "sub $10, %sp; lcallw $0, $retf_imm");
>  
>  	exec_in_big_real_mode(&insn_call1);
>  	report("call 1", R_AX, outregs.eax == 0x1234);
> @@ -523,6 +527,9 @@ void test_call(void)
>  
>  	exec_in_big_real_mode(&insn_ret_imm);
>  	report("ret imm 1", 0, 1);
> +
> +	exec_in_big_real_mode(&insn_retf_imm);
> +	report("retf imm 1", 0, 1);
>  }
>  
>  void test_jcc_short(void)
> -- 
> 1.7.7

--
			Gleb.

      reply	other threads:[~2013-09-08 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 21:12 [PATCH kvm-unit-tests] realmode: test RETF imm Bruce Rogers
2013-09-08 13:18 ` Gleb Natapov [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=20130908131859.GJ17294@redhat.com \
    --to=gleb@redhat.com \
    --cc=brogers@suse.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.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.