From: Wei Liu <wl@xen.org>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "Wei Liu" <liuwe@microsoft.com>, "Wei Liu" <wl@xen.org>,
"Michael Kelley" <mikelley@microsoft.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Xen Development List" <xen-devel@lists.xenproject.org>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [Xen-devel] [PATCH v4 7/8] x86: be more verbose when running on a hypervisor
Date: Sat, 30 Nov 2019 11:49:32 +0000 [thread overview]
Message-ID: <20191130114932.kmhhdyyfaerurgux@debian> (raw)
In-Reply-To: <71c29f9f-3827-5f14-3971-a0854c0d8a34@citrix.com>
On Fri, Nov 29, 2019 at 06:15:52PM +0000, Andrew Cooper wrote:
> On 21/11/2019 18:50, Wei Liu wrote:
> > Also replace xen_guest with running_on_hypervisor boolean.
>
> I agree with dropping xen_guest, but...
>
> >
> > Signed-off-by: Wei Liu <liuwe@microsoft.com>
> > ---
> > Changes in v4:
> > 1. Access ->name directly.
> > 2. Drop Roger's review tag.
> > ---
> > xen/arch/x86/setup.c | 7 +++++--
> > 1 file changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
> > index 19606d909b..123436b35a 100644
> > --- a/xen/arch/x86/setup.c
> > +++ b/xen/arch/x86/setup.c
> > @@ -689,6 +689,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)
> > int i, j, e820_warn = 0, bytes = 0;
> > bool acpi_boot_table_init_done = false, relocated = false;
> > int ret;
> > + bool running_on_hypervisor;
>
> ... this is semantically ambiguous with cpu_has_hypervisor.
>
> Where they differ is whether Xen has managed to recognise the hypervisor
> it is running under, or not.
>
> Given that the hypervisor_*() hooks are nops by default, I'd suggest
> just making blind calls.
Well Jan asked to drop the hypervisor_name hook. I can't make blind
calls here. He's unhappy with calling hypervisor_probe twice either.
I can, however, do the following:
1. Change hypervisor_probe to return NULL or a string
2. Cache and use that return value inside this function
This should make both of you happy.
Wei.
>
> ~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-11-30 11:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-21 18:50 [Xen-devel] [PATCH v4 0/8] Port Xen to Hyper-V Wei Liu
2019-11-21 18:50 ` [Xen-devel] [PATCH v4 1/8] x86: introduce CONFIG_GUEST and move code Wei Liu
2019-11-21 18:50 ` [Xen-devel] [PATCH v4 2/8] x86: add missing headers in hypercall.h Wei Liu
2019-11-21 18:50 ` [Xen-devel] [PATCH v4 3/8] x86: drop hypervisor_cpuid_base Wei Liu
2019-11-21 18:50 ` [Xen-devel] [PATCH v4 4/8] x86: introduce hypervisor framework Wei Liu
2019-11-22 10:31 ` Durrant, Paul
2019-11-29 13:38 ` Jan Beulich
2019-11-29 13:43 ` Jan Beulich
2019-11-29 18:08 ` Andrew Cooper
2019-11-30 11:48 ` Wei Liu
2019-11-21 18:50 ` [Xen-devel] [PATCH v4 5/8] x86: rename hypervisor_{alloc, free}_unused_page Wei Liu
2019-11-22 10:57 ` Durrant, Paul
2019-11-29 13:39 ` Jan Beulich
2019-11-21 18:50 ` [Xen-devel] [PATCH v4 6/8] x86: switch xen guest implementation to use hypervisor framework Wei Liu
2019-11-22 11:02 ` Durrant, Paul
2019-11-22 11:51 ` Wei Liu
2019-11-29 13:50 ` Jan Beulich
2019-11-30 11:49 ` Wei Liu
2019-11-21 18:50 ` [Xen-devel] [PATCH v4 7/8] x86: be more verbose when running on a hypervisor Wei Liu
2019-11-22 11:04 ` Durrant, Paul
2019-11-29 14:31 ` Jan Beulich
2019-11-29 14:34 ` Jan Beulich
2019-11-29 18:15 ` Andrew Cooper
2019-11-30 11:49 ` Wei Liu [this message]
2019-11-21 18:50 ` [Xen-devel] [PATCH v4 8/8] x86: introduce CONFIG_HYPERV and detection code Wei Liu
2019-11-22 11:11 ` Durrant, Paul
2019-11-29 14:35 ` Jan Beulich
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=20191130114932.kmhhdyyfaerurgux@debian \
--to=wl@xen.org \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=liuwe@microsoft.com \
--cc=mikelley@microsoft.com \
--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.