All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: systemd-devel@lists.freedesktop.org,
	Wei Liu <wei.liu2@citrix.com>,
	Vasilis Liaskovitis <vliaskovitis@suse.com>,
	Jan Beulich <JBeulich@suse.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v1] core: mount xenfs, ignore proc-xen.mount (#6442, #6662)
Date: Fri, 1 Dec 2017 13:00:45 +0000	[thread overview]
Message-ID: <20171201130045.ekrvod6sflu3ngkm@citrix.com> (raw)
In-Reply-To: <20171201133848.140d2063.olaf@aepfle.de>

On Fri, Dec 01, 2017 at 01:38:48PM +0100, Olaf Hering wrote:
> Am Fri, 1 Dec 2017 12:29:24 +0000
> schrieb Wei Liu <wei.liu2@citrix.com>:
> 
> > But Olaf needs to know if some of the services like xenconsoled or
> > xenstored should be started, and if some of the special file systems
> > should be mounted, right? Those aren't tied to hardware in anyway. In my
> > view that's the responsibility of the toolstack control domain.
> 
> No, I did not intent to make use of ConditionVirtualization= in the
> xen*.service files in tools/hotplug/Linux/. That variable can not be used
> for this purpose, and the patch would not change that.
> 
> In case you refer to the "proc-xen.mount" change from a few days/weeks ago,
> this was all about avoiding the error when xenfs becomes an "API filesystem".
> With this suggested change the existing "proc-xen.mount units would not fail
> anymore because /proc/xen is added to the ignore list.
> 

Yes, but then there are further services that depend on proc-xen.mount.
Say, xenstored and xenconsoled. That's why I came to the conclusion that
XENFEAT_dom0 (denoting hardware domain, as Jan said, could be a
different domain from control domain down the road) wasn't what you
want.

Quote from the first email in this thread that I'm CC'ed:

>> Ah, I see. But then still I don't see why at least on half way
>> recent Xen /sys/hypervisor/properties/features wouldn't have
>> the information you're after (and even more precise, because
>> down the road control domain and hardware domain may be
>> separate entities).
>
> Per discussion in https://github.com/systemd/systemd/pull/6662, the
> feature bits should not be used for dom0 detection.

Obv. Jan thinks sysfs contains what you want, but afaict I had a
different conclusion.

I don't think there is misunderstanding as to what that flag means.  I
sense that there is misunderstanding as what you want to achieve.
Or maybe Jan means the flag (or the absence of it) can already give you
the information you need?

What information do you need? For a moment let's skip using the fuzzy
"Dom0" term and try to be precise. Like "I would like to know if that
domain has access to all hardware" or something else.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2017-12-01 13:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-29 15:38 [PATCH v1] core: mount xenfs, ignore proc-xen.mount (#6442, #6662) Olaf Hering
2017-11-29 15:46 ` Jan Beulich
2017-11-29 15:54   ` Olaf Hering
2017-11-29 16:01     ` Jan Beulich
     [not found]     ` <5A1EE7F40200007800193394@prv-mh.provo.novell.com>
2017-11-29 16:07       ` Olaf Hering
2017-11-29 16:24         ` Jan Beulich
     [not found]         ` <5A1EED6702000078001933EF@prv-mh.provo.novell.com>
2017-11-30  8:23           ` Olaf Hering
     [not found]           ` <20171130082355.GC3073@aepfle.de>
2017-11-30  8:35             ` Jan Beulich
     [not found]             ` <5A1FD0F10200007800193657@prv-mh.provo.novell.com>
2017-12-01 10:21               ` Wei Liu
2017-12-01 11:04                 ` Olaf Hering
2017-12-01 17:06                   ` [systemd-devel] " Lennart Poettering
2017-12-01 11:39                 ` Jan Beulich
     [not found]                 ` <5A214D820200007800193BFB@prv-mh.provo.novell.com>
2017-12-01 11:48                   ` Wei Liu
2017-12-01 12:11                     ` Jan Beulich
     [not found]                     ` <5A2155110200007800193C60@prv-mh.provo.novell.com>
2017-12-01 12:15                       ` Wei Liu
2017-12-01 12:23                         ` Jan Beulich
     [not found]                         ` <5A2157C40200007800193C90@prv-mh.provo.novell.com>
2017-12-01 12:29                           ` Wei Liu
2017-12-01 12:38                             ` Olaf Hering
2017-12-01 13:00                               ` Wei Liu [this message]
2017-12-01 15:49                                 ` Olaf Hering
     [not found]                                 ` <20171201154901.GA13177@aepfle.de>
2017-12-01 15:59                                   ` Wei Liu
2017-12-01 16:52                             ` Jan Beulich
2017-11-29 17:48 ` [systemd-devel] " Lennart Poettering

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=20171201130045.ekrvod6sflu3ngkm@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=olaf@aepfle.de \
    --cc=systemd-devel@lists.freedesktop.org \
    --cc=vliaskovitis@suse.com \
    --cc=xen-devel@lists.xen.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.