From: Avi Kivity <avi@redhat.com>
To: Sheng Yang <sheng@linux.intel.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH v3] test: Add XSAVE unit test
Date: Sun, 13 Jun 2010 11:17:17 +0300 [thread overview]
Message-ID: <4C14940D.1050900@redhat.com> (raw)
In-Reply-To: <1276242312-7982-1-git-send-email-sheng@linux.intel.com>
On 06/11/2010 10:45 AM, Sheng Yang wrote:
> Based on IDT test framework.
>
>
Nice and comprehensive.
> +
> +int main(void)
> +{
> + setup_idt();
> + if (check_cpuid_1_ecx(CPUID_1_ECX_XSAVE)) {
> + printf("CPU has XSAVE feature\n");
> + test_xsave();
> + } else {
> + printf("CPU don't has XSAVE feature\n");
> + test_no_xsave();
> + }
> + printf("Total test: %d\n", total_tests);
> + if (fail_tests == 0)
> + printf("ALL PASS!\n");
> + else
> + printf("Fail %d tests.\n", fail_tests);
> + return 1;
> +}
>
Need to return 0 if !fail_tests, so we can hook this up to autotest.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2010-06-13 8:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-11 7:45 [PATCH v3] test: Add XSAVE unit test Sheng Yang
2010-06-13 8:17 ` Avi Kivity [this message]
2010-06-13 8:32 ` [PATCH v4] " Sheng Yang
2010-06-13 8:43 ` Avi Kivity
2010-06-13 8:47 ` Sheng Yang
2010-06-13 8:49 ` Sheng Yang
2010-06-14 20:43 ` 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=4C14940D.1050900@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=sheng@linux.intel.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.