* [PATCH] Fix name of Xen event-channel device [not found] ` <20100527143104.GB6040@wavehammer.waldi.eu.org> @ 2010-05-27 15:02 ` Bastian Blank 2010-05-27 16:26 ` [Xen-devel] " Konrad Rzeszutek Wilk 2010-05-27 16:50 ` Michael Tokarev 0 siblings, 2 replies; 7+ messages in thread From: Bastian Blank @ 2010-05-27 15:02 UTC (permalink / raw) To: xen-devel, Jeremy Fitzhardinge, linux-kernel The Xen event-channel device is named evtchn in the kernel but always used as /dev/xen/evtchn in userspace. This patch fixes the name. Signed-off-by: Bastian Blank <waldi@debian.org> diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index 66e185c..89cd743 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c @@ -471,7 +471,7 @@ static const struct file_operations evtchn_fops = { static struct miscdevice evtchn_miscdev = { .minor = MISC_DYNAMIC_MINOR, - .name = "evtchn", + .name = "xen/evtchn", .fops = &evtchn_fops, }; static int __init evtchn_init(void) -- Yes, it is written. Good shall always destroy evil. -- Sirah the Yang, "The Omega Glory", stardate unknown ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Xen-devel] [PATCH] Fix name of Xen event-channel device 2010-05-27 15:02 ` [PATCH] Fix name of Xen event-channel device Bastian Blank @ 2010-05-27 16:26 ` Konrad Rzeszutek Wilk 2010-05-27 16:50 ` Michael Tokarev 1 sibling, 0 replies; 7+ messages in thread From: Konrad Rzeszutek Wilk @ 2010-05-27 16:26 UTC (permalink / raw) To: Bastian Blank, xen-devel, Jeremy Fitzhardinge, linux-kernel On Thu, May 27, 2010 at 05:02:51PM +0200, Bastian Blank wrote: > The Xen event-channel device is named evtchn in the kernel but always > used as /dev/xen/evtchn in userspace. This patch fixes the name. Hey Bastian, Is this related to this bug: http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1612 ? I saw it in some reference to the evtchn but wasn't sure if this is the same. > > Signed-off-by: Bastian Blank <waldi@debian.org> > > diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c > index 66e185c..89cd743 100644 > --- a/drivers/xen/evtchn.c > +++ b/drivers/xen/evtchn.c > @@ -471,7 +471,7 @@ static const struct file_operations evtchn_fops = { > > static struct miscdevice evtchn_miscdev = { > .minor = MISC_DYNAMIC_MINOR, > - .name = "evtchn", > + .name = "xen/evtchn", > .fops = &evtchn_fops, > }; > static int __init evtchn_init(void) > -- > Yes, it is written. Good shall always destroy evil. > -- Sirah the Yang, "The Omega Glory", stardate unknown > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Fix name of Xen event-channel device 2010-05-27 15:02 ` [PATCH] Fix name of Xen event-channel device Bastian Blank 2010-05-27 16:26 ` [Xen-devel] " Konrad Rzeszutek Wilk @ 2010-05-27 16:50 ` Michael Tokarev 2010-05-27 17:13 ` Bastian Blank 1 sibling, 1 reply; 7+ messages in thread From: Michael Tokarev @ 2010-05-27 16:50 UTC (permalink / raw) To: Bastian Blank, xen-devel, Jeremy Fitzhardinge, linux-kernel Bastian Blank wrote: > The Xen event-channel device is named evtchn in the kernel but always > used as /dev/xen/evtchn in userspace. This patch fixes the name. > > Signed-off-by: Bastian Blank <waldi@debian.org> > > diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c > index 66e185c..89cd743 100644 > --- a/drivers/xen/evtchn.c > +++ b/drivers/xen/evtchn.c > @@ -471,7 +471,7 @@ static const struct file_operations evtchn_fops = { > > static struct miscdevice evtchn_miscdev = { > .minor = MISC_DYNAMIC_MINOR, > - .name = "evtchn", > + .name = "xen/evtchn", Um. Will existing userspace - esp. udev rules - continue to work after this change? Also, how about other xen-related devices which are moved to /dev/xen in that same udev rules? Thanks! /mjt ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Fix name of Xen event-channel device 2010-05-27 16:50 ` Michael Tokarev @ 2010-05-27 17:13 ` Bastian Blank 2010-05-28 13:24 ` Kay Sievers 2010-05-28 23:20 ` Jeremy Fitzhardinge 0 siblings, 2 replies; 7+ messages in thread From: Bastian Blank @ 2010-05-27 17:13 UTC (permalink / raw) To: Michael Tokarev; +Cc: xen-devel, Jeremy Fitzhardinge, linux-kernel On Thu, May 27, 2010 at 08:50:39PM +0400, Michael Tokarev wrote: > Bastian Blank wrote: > > The Xen event-channel device is named evtchn in the kernel but always > > used as /dev/xen/evtchn in userspace. This patch fixes the name. > > > > Signed-off-by: Bastian Blank <waldi@debian.org> > > > > diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c > > index 66e185c..89cd743 100644 > > --- a/drivers/xen/evtchn.c > > +++ b/drivers/xen/evtchn.c > > @@ -471,7 +471,7 @@ static const struct file_operations evtchn_fops = { > > > > static struct miscdevice evtchn_miscdev = { > > .minor = MISC_DYNAMIC_MINOR, > > - .name = "evtchn", > > + .name = "xen/evtchn", > > Um. Will existing userspace - esp. udev rules - continue > to work after this change? The udev rules will just not longer match, as they only rename the device, this is no problem. However libxc _will_ break, as it lacks proper error check in its own device creation routine. However there are not much possibilities here: this support will go away and it will annoy every user for some time. > Also, how about other xen-related > devices which are moved to /dev/xen in that same udev rules? This is the only device currently supported by the vanilla kernel, everything else is in the Xen tree only. Bastian -- Totally illogical, there was no chance. -- Spock, "The Galileo Seven", stardate 2822.3 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Fix name of Xen event-channel device 2010-05-27 17:13 ` Bastian Blank @ 2010-05-28 13:24 ` Kay Sievers 2010-05-28 13:41 ` Michael Tokarev 2010-05-28 23:20 ` Jeremy Fitzhardinge 1 sibling, 1 reply; 7+ messages in thread From: Kay Sievers @ 2010-05-28 13:24 UTC (permalink / raw) To: Bastian Blank, Michael Tokarev, xen-devel, Jeremy Fitzhardinge, linux-kernel On Thu, May 27, 2010 at 19:13, Bastian Blank <waldi@debian.org> wrote: > On Thu, May 27, 2010 at 08:50:39PM +0400, Michael Tokarev wrote: >> Bastian Blank wrote: >> > The Xen event-channel device is named evtchn in the kernel but always >> > used as /dev/xen/evtchn in userspace. This patch fixes the name. >> > >> > Signed-off-by: Bastian Blank <waldi@debian.org> >> > >> > diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c >> > index 66e185c..89cd743 100644 >> > --- a/drivers/xen/evtchn.c >> > +++ b/drivers/xen/evtchn.c >> > @@ -471,7 +471,7 @@ static const struct file_operations evtchn_fops = { >> > >> > static struct miscdevice evtchn_miscdev = { >> > .minor = MISC_DYNAMIC_MINOR, >> > - .name = "evtchn", >> > + .name = "xen/evtchn", >> >> Um. Will existing userspace - esp. udev rules - continue >> to work after this change? > > The udev rules will just not longer match, as they only rename the > device, this is no problem. However libxc _will_ break, as it lacks > proper error check in its own device creation routine. > > However there are not much possibilities here: this support will go away > and it will annoy every user for some time. > >> Also, how about other xen-related >> devices which are moved to /dev/xen in that same udev rules? > > This is the only device currently supported by the vanilla kernel, > everything else is in the Xen tree only. And naming of primary device nodes is no longer udev's task. All these rules are removed from the default udev rules. These names must all come from the kernel these days. Udev will log errors if udev rules specify names which are not in sync with the kernel, so they can be fixed in the kernel or in the rules. With devtmpfs the kernel needs to know all the names to create them on its own. Udev only manages permissions, possibly creates additional symlinks, runs programs, and distribute the events to userspace. Udev no longer manages the naming of any primary device node. Thanks, Kay ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Fix name of Xen event-channel device 2010-05-28 13:24 ` Kay Sievers @ 2010-05-28 13:41 ` Michael Tokarev 0 siblings, 0 replies; 7+ messages in thread From: Michael Tokarev @ 2010-05-28 13:41 UTC (permalink / raw) To: Kay Sievers; +Cc: Bastian Blank, xen-devel, Jeremy Fitzhardinge, linux-kernel Kay Sievers wrote: > On Thu, May 27, 2010 at 19:13, Bastian Blank <waldi@debian.org> wrote: [] >>> Also, how about other xen-related >>> devices which are moved to /dev/xen in that same udev rules? >> This is the only device currently supported by the vanilla kernel, >> everything else is in the Xen tree only. > > And naming of primary device nodes is no longer udev's task. All these > rules are removed from the default udev rules. These names must all > come from the kernel these days. Udev will log errors if udev rules > specify names which are not in sync with the kernel, so they can be > fixed in the kernel or in the rules. Finally!... It's been hashed and rehashed back when udevd were invented to replace devfs and we returned back to traditional kernel-generated names for a base. Oh well... That's, actually, _excellent_ news, something that bothered me for all these years since 2.4 kernel - that I don't have some devices in /dev (because they're named differently or moved to a subdir) which are mentioned in dmesg or sysfs. Hooray! Will check for all sound (/dev/snd/), input (/dev/input/), usb (/dev/usb/) and oh, the famous tun (/dev/net/tun) devices - you intrigued me!.. ;) Thanks! /mjt ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Fix name of Xen event-channel device 2010-05-27 17:13 ` Bastian Blank 2010-05-28 13:24 ` Kay Sievers @ 2010-05-28 23:20 ` Jeremy Fitzhardinge 1 sibling, 0 replies; 7+ messages in thread From: Jeremy Fitzhardinge @ 2010-05-28 23:20 UTC (permalink / raw) To: Bastian Blank, Michael Tokarev, xen-devel, linux-kernel On 05/27/2010 10:13 AM, Bastian Blank wrote: > The udev rules will just not longer match, as they only rename the > device, this is no problem. However libxc _will_ break, as it lacks > proper error check in its own device creation routine. > Yeah, that's really annoying. I can't change the kernel without also having a flag day to update libxc. I guess we could make sure all the stable Xen branches get a libxc fix backported to them, but I wonder if it would break other toolstacks? > However there are not much possibilities here: this support will go away > and it will annoy every user for some time. > But if we don't make any kernel changes then libxc will muddle on even if udev stops handling the device name properly? J ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-05-28 23:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20100526105144.GA28280@wavehammer.waldi.eu.org>
[not found] ` <20100527073512.GA17135@wavehammer.waldi.eu.org>
[not found] ` <20100527143104.GB6040@wavehammer.waldi.eu.org>
2010-05-27 15:02 ` [PATCH] Fix name of Xen event-channel device Bastian Blank
2010-05-27 16:26 ` [Xen-devel] " Konrad Rzeszutek Wilk
2010-05-27 16:50 ` Michael Tokarev
2010-05-27 17:13 ` Bastian Blank
2010-05-28 13:24 ` Kay Sievers
2010-05-28 13:41 ` Michael Tokarev
2010-05-28 23:20 ` Jeremy Fitzhardinge
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox