Skip to contentSkip to conversation

help: /dev/xen/gntdev

DISCUSSION Mukesh Rathor 2 participants 3 messages Feb 12, 2010 – Feb 16, 2010

lore
Share & tools
lore
#0 lore raw

Hi

I'm trying to upgrade my environment from xen 3.4.0 to xen 4.0 via rpm that fits in our product. I installed new tools and xen, and it looks like I am missing a step.

In 4.0 qemu DEVOPS_FLAG_NEED_GNTDEV was added to xen_console_ops. This results in xc_gnttab_open() being called which calls xc_find_device_number() to get device nums for /dev/xen/gntdev so it can mknod. xc_find_device_number() is failing because there is no entry in the the sysfs.

So, can someone please advise how the entry is created in the sysfs? The exact path it's looking: /sys/class/misc/gntdev/dev

thanks,
Mukesh

#1 lore raw

Do you have the gntdev driver loaded (or built into your kernel)?

Jan

Quoted 1 line
Quoted 1 line
Quoted 1 line

Mukesh Rathor <[email protected]> 12.02.10 05:11 >>>

Hi

I'm trying to upgrade my environment from xen 3.4.0 to xen 4.0 via rpm that fits in our product. I installed new tools and xen, and it looks like I am missing a step.

In 4.0 qemu DEVOPS_FLAG_NEED_GNTDEV was added to xen_console_ops. This results in xc_gnttab_open() being called which calls xc_find_device_number() to get device nums for /dev/xen/gntdev so it can mknod. xc_find_device_number() is failing because there is no entry in the the sysfs.

So, can someone please advise how the entry is created in the sysfs? The exact path it's looking: /sys/class/misc/gntdev/dev

thanks,
Mukesh

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Forgot to mention, rebuilding dom0 with gntdev (CONFIG_XEN_GRANT_DEV) resolved the issue. Thanks Jan.

Mukesh

Quoted 30 lines · On Fri, 12 Feb 2010 09:50:59 +0000 "Jan Beulich" <[email protected]> wrote:

Do you have the gntdev driver loaded (or built into your kernel)?

Jan

Quoted 1 line
Quoted 1 line
Quoted 1 line

Mukesh Rathor <[email protected]> 12.02.10 05:11 >>>

Hi

I'm trying to upgrade my environment from xen 3.4.0 to xen 4.0 via rpm that fits in our product. I installed new tools and xen, and it looks like I am missing a step.

In 4.0 qemu DEVOPS_FLAG_NEED_GNTDEV was added to xen_console_ops. This results in xc_gnttab_open() being called which calls xc_find_device_number() to get device nums for /dev/xen/gntdev so it can mknod. xc_find_device_number() is failing because there is no entry in the the sysfs.

So, can someone please advise how the entry is created in the sysfs? The exact path it's looking: /sys/class/misc/gntdev/dev

thanks,
Mukesh

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel