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 v4] test: Add XSAVE unit test
Date: Sun, 13 Jun 2010 11:43:42 +0300 [thread overview]
Message-ID: <4C149A3E.5000004@redhat.com> (raw)
In-Reply-To: <1276417937-6191-1-git-send-email-sheng@linux.intel.com>
On 06/13/2010 11:32 AM, Sheng Yang wrote:
> Based on IDT test framework.
> +
> +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 0;
> + }
> + return 1;
> +}
>
Wrong way, 0 = success, !0 = fail (just like shell exit codes).
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2010-06-13 8:43 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
2010-06-13 8:32 ` [PATCH v4] " Sheng Yang
2010-06-13 8:43 ` Avi Kivity [this message]
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=4C149A3E.5000004@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox