From: Dave Scott <Dave.Scott@citrix.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Ian Jackson <Ian.Jackson@citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Stefano Stabellini <Stefano.Stabellini@citrix.com>,
Wei Liu <wei.liu2@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: xl, libxl: add support for 'channels'
Date: Tue, 7 Oct 2014 16:52:58 +0000 [thread overview]
Message-ID: <888209E7-821F-4384-AD7F-57DD27294246@citrix.com> (raw)
In-Reply-To: <20140926192055.GD8786@laptop.dumpdata.com>
On 26 Sep 2014, at 20:20, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> On Fri, Sep 26, 2014 at 04:14:16PM +0100, Ian Jackson wrote:
>> Dave Scott writes ("Re: [Xen-devel] xl, libxl: add support for 'channels'"):
>>> On 25 Sep 2014, at 20:13, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
>>>> The major piece of information that is missing is - who/what generates
>>>> the udev information in the guest? I could not find it in the Linux
>>>> hvc_console.c driver so I am unclear of how it is suppose to
>>>> work there?
>>>
>>> I believe all secondary consoles (in device/console/ in xenstore)
>>> generate the event. I’m not familiar with the kernel side of things;
>>> Stefano: can you point us in the right direction?
>
>
> Stefano?
>
> Either way, I think this patch just need to mention what kernel driver
> so that folks who are developing this can check that the required
> kernel driver is loaded (or built).
I checked by deliberately mangling a xenstore key to see where the Linux errors
came from. The logged messages were from “xenconsole” and I got a stack
trace with
xencons_disconnect_backend
xencons_probe
xenbus_dev_probe
xenbus_frontend_dev_probe
..
xenbus_register_driver_common
xenbus_register_frontend
..
xen_hvc_init
So it looks like the driver is hvc_xen.c, so people would need
CONFIG_HVC_XEN_FRONTEND. I’ll add that to the patch.
>>>
>>> For reference I used a udev rule to catch all secondary consoles:
>>>
>>> # Set up secondary Xen consoles
>>> SUBSYSTEM=="xen", DEVPATH=="/devices/console-[0-9]", RUN+="xenconsole-setup-tty”
>>
>> I think this should be documented somewhere in the patch, at the very
>> least. Better would be to submit it upstream.
>
> +1 in the patch.
>
> Upstream being in the libvirt side of the world? Sure - the more the merrier.
:-) My plan is to upstream everything to the most appropriate places so
1. the protocol + API: this patch to libxl,xl,docs/misc (including details of the udev rule)
2. the udev rule itself: to wherever the distros get their udev rules from
3. the libvirt glue: to libvir-devel
4. application-level code to make use of it: to various places
I think the best ordering is to get the foundation ready first (i.e. this patch)
and then promote the rest. It would be risky to push dependent patches anywhere else
until the API has actually been fully released.
I’m a bit torn on the timing: on the one hand I’d really like to get a released API that
I can build on. On the other hand this is definitely a new feature and perhaps
at this stage it’s better to focus on fixing bugs rather than introducing them!
Once I’ve finished a bit of xenstore patch re-reviewing, I can send another spin of
this. However I’m still missing Acks on key patches from the maintainers. So if
you or they would rather focus bandwidth elsewhere, let me know and I’ll hibernate the
patches for 4.6.
Cheers,
Dave
next prev parent reply other threads:[~2014-10-07 16:53 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-24 20:48 xl, libxl: add support for 'channels' David Scott
2014-09-24 20:48 ` [PATCH v6 for-4.5 1/5] " David Scott
2014-09-25 18:56 ` Konrad Rzeszutek Wilk
2014-09-26 9:12 ` Wei Liu
2014-09-24 20:48 ` [PATCH v6 for-4.5 2/5] xl: move 'replace_string' further up the file David Scott
2014-09-25 19:06 ` Konrad Rzeszutek Wilk
2014-09-26 9:15 ` Wei Liu
2014-09-24 20:48 ` [PATCH v6 for-4.5 3/5] xl: add 'xstrdup' next to 'xrealloc' David Scott
2014-09-25 19:06 ` Konrad Rzeszutek Wilk
2014-09-26 9:22 ` Wei Liu
2014-09-24 20:48 ` [PATCH v6 for-4.5 4/5] xl: add 'trim' and 'split_string_into_pair' functions David Scott
2014-09-25 19:06 ` Konrad Rzeszutek Wilk
2014-09-26 10:09 ` Wei Liu
2014-09-26 15:45 ` Ian Jackson
2014-09-26 15:51 ` Wei Liu
2014-09-26 15:53 ` Ian Jackson
2014-09-24 20:48 ` [PATCH v6 for-4.5 5/5] xl: add support for 'channels' David Scott
2014-09-25 19:11 ` Konrad Rzeszutek Wilk
2014-09-26 10:22 ` Wei Liu
2014-09-25 19:13 ` xl, libxl: " Konrad Rzeszutek Wilk
2014-09-25 19:37 ` Dave Scott
2014-09-26 15:14 ` Ian Jackson
2014-09-26 19:20 ` Konrad Rzeszutek Wilk
2014-10-07 16:52 ` Dave Scott [this message]
2014-10-07 16:59 ` Konrad Rzeszutek Wilk
2014-10-08 11:06 ` Stefano Stabellini
2014-10-08 13:26 ` Ian Campbell
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=888209E7-821F-4384-AD7F-57DD27294246@citrix.com \
--to=dave.scott@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@citrix.com \
--cc=Stefano.Stabellini@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=wei.liu2@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).