From: Igor Mammedov <imammedo@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] tests: Add [+-]feature and feature=on|off test cases
Date: Thu, 11 May 2017 16:00:00 +0200 [thread overview]
Message-ID: <20170511160000.277d67f7@nial.brq.redhat.com> (raw)
In-Reply-To: <20170508183205.10884-1-ehabkost@redhat.com>
On Mon, 8 May 2017 15:32:05 -0300
Eduardo Habkost <ehabkost@redhat.com> wrote:
> Add test code to ensure features are enabled/disabled correctly in the
> command-line. The test case use the "feature-words" and
> "filtered-features" properties to check if the features were
> enabled/disabled correctly.
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
> Changes v1 -> v2:
> * Remove explicit "accel=" option to avoid triggering warnings
> on "make check"
> * Use qdict_get_*() helpers to make code shorter
> * Rename input_eax, input_ecx to in_eax, in_ecx to make
> lines fit in the coding style width limit
> * v1 was submitted as part of the series:
> Subject: [PATCH 0/4] x86: Support "-cpu feature=force"
> * Coding style: split lines
> * Style changes on code comments
> ---
> tests/test-x86-cpuid-compat.c | 111 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 111 insertions(+)
>
> diff --git a/tests/test-x86-cpuid-compat.c b/tests/test-x86-cpuid-compat.c
[...]
> + add_feature_test("x86/cpuid/features/max-plus-invtsc",
> + "-cpu max,+invtsc",
> + 0x80000007, 0, "EDX", 8, true);
> + add_feature_test("x86/cpuid/features/max-invtsc-on",
> + "-cpu max,invtsc=on",
> + 0x80000007, 0, "EDX", 8, true);
> + add_feature_test("x86/cpuid/features/max-minus-mmx",
> + "-cpu max,-mmx",
> + 1, 0, "EDX", 23, false);
> + add_feature_test("x86/cpuid/features/max-invtsc-on,mmx=off",
> + "-cpu max,mmx=off",
> + 1, 0, "EDX", 23, false);
Why do you add 'max' variants in addition to 486/pentium?
> return g_test_run();
> }
next prev parent reply other threads:[~2017-05-11 14:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-08 18:32 [Qemu-devel] [PATCH v2] tests: Add [+-]feature and feature=on|off test cases Eduardo Habkost
2017-05-11 14:00 ` Igor Mammedov [this message]
2017-05-11 16:34 ` Eduardo Habkost
2017-05-12 8:39 ` Igor Mammedov
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=20170511160000.277d67f7@nial.brq.redhat.com \
--to=imammedo@redhat.com \
--cc=ehabkost@redhat.com \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).