From: Gleb Natapov <gleb@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] [kvm-unit-tests] realmode: test SAHF instruction
Date: Sun, 3 Nov 2013 17:42:07 +0200 [thread overview]
Message-ID: <20131103154207.GD7513@redhat.com> (raw)
In-Reply-To: <1383216145-11024-1-git-send-email-pbonzini@redhat.com>
On Thu, Oct 31, 2013 at 11:42:25AM +0100, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Applied, thanks.
> ---
> x86/realmode.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/x86/realmode.c b/x86/realmode.c
> index 3546771..b9cb634 100644
> --- a/x86/realmode.c
> +++ b/x86/realmode.c
> @@ -1409,6 +1409,15 @@ static void test_sgdt_sidt(void)
> report("sidt", 0, x == y);
> }
>
> +static void test_sahf(void)
> +{
> + MK_INSN(sahf, "sahf; pushfw; mov (%esp), %al; popfw");
> +
> + inregs.eax = 0xfd00;
> + exec_in_big_real_mode(&insn_sahf);
> + report("sahf", R_AX, outregs.eax == (inregs.eax | 0xd7));
> +}
> +
> static void test_lahf(void)
> {
> MK_INSN(lahf, "pushfw; mov %al, (%esp); popfw; lahf");
> @@ -1554,6 +1563,7 @@ void realmode_start(void)
> test_ss_base_for_esp_ebp();
> test_sgdt_sidt();
> test_lahf();
> + test_sahf();
> test_movzx_movsx();
> test_bswap();
> test_aad();
> --
> 1.8.3.1
--
Gleb.
prev parent reply other threads:[~2013-11-03 15:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-31 10:42 [PATCH] [kvm-unit-tests] realmode: test SAHF instruction Paolo Bonzini
2013-11-03 15:42 ` 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=20131103154207.GD7513@redhat.com \
--to=gleb@redhat.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.