* /dev/misc/evtchn , /dev/xen/evtchn and the event channel driver : a little question
@ 2005-09-29 13:53 Mark Ryden
2005-09-29 14:41 ` Anthony Liguori
2005-09-29 14:52 ` Keir Fraser
0 siblings, 2 replies; 3+ messages in thread
From: Mark Ryden @ 2005-09-29 13:53 UTC (permalink / raw)
To: xen-devel
Hello,
This is something I do not understand : I have a version of
xen-unstable from
a few days ago. (I am using the default "make world" and make
install, which means 2.6.* versions; and I run it on x386).
I had looked at the code of evtchn.c (/drivers/xen/evtchn in the sparse tree).
I see there:
err = misc_register(&evtchn_miscdev);
if (err != 0)
{
printk(KERN_ALERT "Could not register /dev/misc/evtchn\n");
return err;
}
and also:
static struct miscdevice evtchn_miscdev = {
.minor = EVTCHN_MINOR,
.name = "evtchn",
.fops = &evtchn_fops,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
.devfs_name = "misc/evtchn",
#endif
};
I had booted Xen (domain 0).
But I do not have /dev/misc/evtchn !
(as ls /dev/misc/evtchn shows).
On the other hand I *DO* have /dev/xen/evtchn and it seems to me that
other modules in tools use /dev/xen/evtchn and not /dev/misc/evtchn.
What is the truth behind this mystery ?
TIA,
MR
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: /dev/misc/evtchn , /dev/xen/evtchn and the event channel driver : a little question
2005-09-29 13:53 /dev/misc/evtchn , /dev/xen/evtchn and the event channel driver : a little question Mark Ryden
@ 2005-09-29 14:41 ` Anthony Liguori
2005-09-29 14:52 ` Keir Fraser
1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2005-09-29 14:41 UTC (permalink / raw)
To: Mark Ryden; +Cc: xen-devel
Mark Ryden wrote:
>Hello,
>
>I had booted Xen (domain 0).
>
>But I do not have /dev/misc/evtchn !
>(as ls /dev/misc/evtchn shows).
>On the other hand I *DO* have /dev/xen/evtchn and it seems to me that
>other modules in tools use /dev/xen/evtchn and not /dev/misc/evtchn.
>
>What is the truth behind this mystery ?
>
>
This is all left-over crude from devfs/udev and trying to support 2.4
and 2.6. I imagine that you're actually seeing a /dev/evtchn from udev
and Xend is manually creating /dev/xen/evtchn at startup.
There's a general cleanup needed here that's on my TODO list. Just been
overly distracted lately.
Regards,
Anthony Liguori
>TIA,
>MR
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /dev/misc/evtchn , /dev/xen/evtchn and the event channel driver : a little question
2005-09-29 13:53 /dev/misc/evtchn , /dev/xen/evtchn and the event channel driver : a little question Mark Ryden
2005-09-29 14:41 ` Anthony Liguori
@ 2005-09-29 14:52 ` Keir Fraser
1 sibling, 0 replies; 3+ messages in thread
From: Keir Fraser @ 2005-09-29 14:52 UTC (permalink / raw)
To: Mark Ryden; +Cc: xen-devel
On 29 Sep 2005, at 14:53, Mark Ryden wrote:
> But I do not have /dev/misc/evtchn !
> (as ls /dev/misc/evtchn shows).
> On the other hand I *DO* have /dev/xen/evtchn and it seems to me that
> other modules in tools use /dev/xen/evtchn and not /dev/misc/evtchn.
>
> What is the truth behind this mystery ?
It'll appear under /dev/misc/evtchn only if you have devfs enabled
(which is unlikely as it is removed from 2.6.13). Instead
/dev/xe/evtchn has to be manually created by userspace.
The correct answer is probably to use udev to set up /dev/xen/evtchn.
-- Keir
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-29 14:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-29 13:53 /dev/misc/evtchn , /dev/xen/evtchn and the event channel driver : a little question Mark Ryden
2005-09-29 14:41 ` Anthony Liguori
2005-09-29 14:52 ` Keir Fraser
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.