From: Wei Liu <wei.liu2@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: sergey.dyasli@citrix.com, Wei Liu <wei.liu2@citrix.com>,
roger.pau@citrix.com
Subject: [PATCH 5/5] XXX DO NOT APPLY: compilation test
Date: Thu, 24 May 2018 17:05:22 +0100 [thread overview]
Message-ID: <20180524160522.757-6-wei.liu2@citrix.com> (raw)
In-Reply-To: <20180524160522.757-1-wei.liu2@citrix.com>
---
tools/libxc/xc_cpuid_x86.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c
index 89ded718bc..0af04a4e5a 100644
--- a/tools/libxc/xc_cpuid_x86.c
+++ b/tools/libxc/xc_cpuid_x86.c
@@ -869,3 +869,20 @@ int xc_cpuid_set(
free_cpuid_domain_info(&info);
return rc;
}
+
+static void __attribute__((__unused__)) test_func(void)
+{
+ struct cpuid_leaf leaf;
+ struct cpuid_policy policy;
+ struct cpuid_cache_leaf cache_leaf;
+ uint32_t fs[FSCAPINTS] = { 0, };
+
+ memset(&leaf, 0, sizeof(leaf));
+ memset(&policy, 0, sizeof(policy));
+ memset(&cache_leaf, 0, sizeof(cache_leaf));
+
+ cpuid_policy_to_featureset(&policy, fs);
+ cpuid_featureset_to_policy(fs, &policy);
+
+ return;
+}
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
prev parent reply other threads:[~2018-05-24 16:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 16:05 [PATCH 0/5] Share CPUID stuff between hypervisor and toolstack Wei Liu
2018-05-24 16:05 ` [PATCH 1/5] x86: move definition of struct cpuid_leaf to cpuid.h Wei Liu
2018-05-25 9:31 ` Roger Pau Monné
2018-05-25 9:35 ` Wei Liu
2018-05-25 11:50 ` Jan Beulich
2018-05-25 12:03 ` Wei Liu
2018-05-25 13:05 ` Jan Beulich
2018-05-25 13:11 ` Andrew Cooper
2018-05-24 16:05 ` [PATCH 2/5] x86: split out cpuid objects and helpers Wei Liu
2018-05-25 9:41 ` Roger Pau Monné
2018-05-25 9:49 ` Wei Liu
2018-05-25 10:01 ` Andrew Cooper
2018-05-25 10:23 ` Roger Pau Monné
2018-05-29 12:32 ` Jan Beulich
2018-05-24 16:05 ` [PATCH 3/5] tools: link arch-shared directory Wei Liu
2018-05-24 16:05 ` [PATCH 4/5] libxc: introduce xc_cpuid_x86.h Wei Liu
2018-05-24 16:05 ` Wei Liu [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=20180524160522.757-6-wei.liu2@citrix.com \
--to=wei.liu2@citrix.com \
--cc=roger.pau@citrix.com \
--cc=sergey.dyasli@citrix.com \
--cc=xen-devel@lists.xenproject.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).