From: Wei Liu <wl@xen.org>
To: Xen Development List <xen-devel@lists.xenproject.org>
Cc: "Wei Liu" <liuwe@microsoft.com>, "Wei Liu" <wl@xen.org>,
"Paul Durrant" <paul@xen.org>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Michael Kelley" <mikelley@microsoft.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [Xen-devel] [PATCH for-next 6/7] x86/hyperv: provide hyperv_guest variable
Date: Fri, 25 Oct 2019 10:16:17 +0100 [thread overview]
Message-ID: <20191025091618.10153-7-liuwe@microsoft.com> (raw)
In-Reply-To: <20191025091618.10153-1-liuwe@microsoft.com>
It will be used to gate Hyper-V related code outside of the guest
directory.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com>
---
xen/arch/x86/guest/hyperv/hyperv.c | 3 +++
xen/include/asm-x86/guest/hyperv.h | 2 ++
2 files changed, 5 insertions(+)
diff --git a/xen/arch/x86/guest/hyperv/hyperv.c b/xen/arch/x86/guest/hyperv/hyperv.c
index 041166f344..ee649426ce 100644
--- a/xen/arch/x86/guest/hyperv/hyperv.c
+++ b/xen/arch/x86/guest/hyperv/hyperv.c
@@ -24,6 +24,7 @@
#include <asm/guest/hyperv-tlfs.h>
struct ms_hyperv_info ms_hyperv;
+bool hyperv_guest;
bool __init hyperv_probe(void)
{
@@ -50,6 +51,8 @@ bool __init hyperv_probe(void)
ms_hyperv.max_vp_index = cpuid_eax(HYPERV_CPUID_IMPLEMENT_LIMITS);
ms_hyperv.max_lp_index = cpuid_ebx(HYPERV_CPUID_IMPLEMENT_LIMITS);
+ hyperv_guest = true;
+
return true;
}
diff --git a/xen/include/asm-x86/guest/hyperv.h b/xen/include/asm-x86/guest/hyperv.h
index 0f8800040a..86f5c24ec6 100644
--- a/xen/include/asm-x86/guest/hyperv.h
+++ b/xen/include/asm-x86/guest/hyperv.h
@@ -35,6 +35,8 @@ struct ms_hyperv_info {
};
extern struct ms_hyperv_info ms_hyperv;
+extern bool hyperv_guest;
+
extern struct hypervisor_ops hyperv_ops;
bool hyperv_probe(void);
--
2.20.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-10-25 9:17 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-25 9:16 [Xen-devel] [PATCH for-next 0/7] Implement Hyper-V reference TSC based clock source Wei Liu
2019-10-25 9:16 ` [Xen-devel] [PATCH for-next 1/7] x86: import hyperv-tlfs.h from Linux Wei Liu
2019-12-10 15:33 ` Jan Beulich
2019-12-10 15:37 ` Durrant, Paul
2019-12-10 15:43 ` Jan Beulich
2019-12-11 11:14 ` Wei Liu
2019-12-11 11:22 ` Durrant, Paul
2019-12-11 11:28 ` Wei Liu
2019-10-25 9:16 ` [Xen-devel] [PATCH for-next 2/7] x86: fix up hyperv-tlfs.h Wei Liu
2019-12-10 15:35 ` Jan Beulich
2019-12-11 11:42 ` Wei Liu
2019-10-25 9:16 ` [Xen-devel] [PATCH for-next 3/7] x86/hyperv: extract more information from Hyper-V Wei Liu
2019-12-10 16:10 ` Jan Beulich
2019-10-25 9:16 ` [Xen-devel] [PATCH for-next 4/7] x86: add a comment regarding the location of hypervisor_probe Wei Liu
2019-12-10 16:15 ` Jan Beulich
2019-10-25 9:16 ` [Xen-devel] [PATCH for-next 5/7] x86: use running_on_hypervisor to gate hypervisor_setup Wei Liu
2019-12-10 16:17 ` Jan Beulich
2019-12-11 11:34 ` Wei Liu
2019-10-25 9:16 ` Wei Liu [this message]
2019-12-10 16:39 ` [Xen-devel] [PATCH for-next 6/7] x86/hyperv: provide hyperv_guest variable Jan Beulich
2019-10-25 9:16 ` [Xen-devel] [PATCH for-next 7/7] x86: implement Hyper-V clock source Wei Liu
2019-12-10 16:59 ` Jan Beulich
2019-12-18 12:38 ` Wei Liu
2019-12-18 12:51 ` Jan Beulich
2019-12-18 12:56 ` Andrew Cooper
2019-12-18 12:59 ` Wei Liu
2019-12-18 13:28 ` Jan Beulich
2019-12-18 13:18 ` Wei Liu
2019-12-18 13:24 ` Jan Beulich
2019-12-18 13:47 ` Wei Liu
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=20191025091618.10153-7-liuwe@microsoft.com \
--to=wl@xen.org \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=liuwe@microsoft.com \
--cc=mikelley@microsoft.com \
--cc=paul@xen.org \
--cc=roger.pau@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 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.