From: Olaf Hering <olaf@aepfle.de>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
KY Srinivasan <kys@microsoft.com>,
Greg KH <gregkh@linuxfoundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: Hyper-V: register clocksource only if its advertised
Date: Tue, 29 Jan 2013 10:26:52 +0100 [thread overview]
Message-ID: <20130129092652.GA9020@aepfle.de> (raw)
In-Reply-To: <510797FA02000078000BA4B8@nat28.tlf.novell.com>
On Tue, Jan 29, Jan Beulich wrote:
> >>> On 28.01.13 at 18:44, Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote:
> > I think that Olaf made his point very clear: a feature A should only be
> > enabled if the corresponding flag A is set.
> > In fact it seems to me that this patch is correct on its own merits,
> > regardless of Xen does or does not.
> >
> > The Xen tools might or might not know whether a guest is going to be
> > Linux, Windows, FreeBSD or whatever else people use nowadays. Setting
> > viridian=1 is the safe choice, given that it shouldn't create any
> > issues: after all guests are supposed to check for feature flags before
> > using them.
> >
> > If Xen is going to implement "Partition Reference Counter", it is also
> > going to set the corresponding flag, so the guest OS (Windows, Linux,
> > my pet OS) can check whether the feature is available and decide whether
> > it wants to use it.
>
> While I agree in general, the specific case of the callback vector
> seems a little more difficult: As KY says, there's no feature flag
> for this (or perhaps more precisely for it being deliverable across
> all CPUs), and hence there's both the problem of detection and
> the problem of disambiguation (as otherwise both the Hyper-V
> code and the Xen code in Linux could be trying to use the same
> vector).
This is true, but belongs to that other thread about the interrupt
vector. I agree that the detection in ms_hyperv_platform() should be
extended, with a DMI check for example.
The patch which started this thread is still valid because it enables
feature B only if the featurebit for B is enabled.
Olaf
next prev parent reply other threads:[~2013-01-29 9:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-25 13:37 [PATCH] x86: Hyper-V: register clocksource only if its advertised Olaf Hering
2013-01-25 16:10 ` Greg KH
2013-01-25 16:43 ` KY Srinivasan
2013-01-25 16:54 ` Olaf Hering
2013-01-25 17:04 ` KY Srinivasan
2013-01-25 17:19 ` Olaf Hering
2013-01-25 17:39 ` KY Srinivasan
2013-01-25 20:00 ` Olaf Hering
2013-01-25 20:03 ` KY Srinivasan
2013-01-26 16:57 ` KY Srinivasan
2013-01-26 18:21 ` Olaf Hering
2013-01-28 17:44 ` Stefano Stabellini
2013-01-29 8:35 ` Jan Beulich
2013-01-29 9:26 ` Olaf Hering [this message]
2013-01-29 14:32 ` KY Srinivasan
2013-01-29 15:30 ` Stefano Stabellini
2013-01-29 15:58 ` KY Srinivasan
2013-01-29 16:14 ` Stefano Stabellini
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=20130129092652.GA9020@aepfle.de \
--to=olaf@aepfle.de \
--cc=JBeulich@suse.com \
--cc=gregkh@linuxfoundation.org \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stefano.stabellini@eu.citrix.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