Skip to contentSkip to conversation

libxc linux privcmd bugs

DISCUSSION Andrew Cooper 3 participants 4 messages Jan 13, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

More bugs for tracking:

1) PERROR("Could not obtain handle on privileged command interface"); doesn't indicate which path(s) were tried.

2) xc_linux_osdep.c:linux_privcmd_open() only tries to open "/proc/xen/privcmd" which is the classic-xen location, whereas the expected location under PVops is "/dev/xen/privcmd". The other open functions (evtchn, gnttab, gntshr) exclusivly use "/dev/xen/$FOO".

~Andrew

#1 lore raw

create ^
title it libxc should use /dev/xen/privcmd on Linux severity it wishlist
thanks

Quoted 10 lines · Andrew Cooper

Hello,

More bugs for tracking:

1) PERROR("Could not obtain handle on privileged command interface"); doesn't indicate which path(s) were tried.

2) xc_linux_osdep.c:linux_privcmd_open() only tries to open "/proc/xen/privcmd" which is the classic-xen location, whereas the expected location under PVops is "/dev/xen/privcmd".

Nothing has ever used /dev/xen/privcmd since it was reimplemented to replace xenfs, so describing it as expected is a bit strong. At best there is a wishlist issue here for someone to finish implementing this transition, which I've now created.

http://lists.xen.org/archives/html/xen-devel/2011-12/msg01344.html
http://lists.xen.org/archives/html/xen-devel/2011-12/msg01345.html
looks to be related patches, not sure why thay didn't go in back then. Lack of a S-o-b perhaps.

Quoted 2 lines

The other open
functions (evtchn, gnttab, gntshr) exclusivly use "/dev/xen/$FOO".

These have only ever been driver rather than proc based so there was never a transition.

Ian.

#2 lore raw
In reply to Andrew Cooper

create ^
title it libxc should use /dev/xen/privcmd on Linux severity it wishlist
thanks

Quoted 10 lines · Andrew Cooper

Hello,

More bugs for tracking:

1) PERROR("Could not obtain handle on privileged command interface"); doesn't indicate which path(s) were tried.

2) xc_linux_osdep.c:linux_privcmd_open() only tries to open "/proc/xen/privcmd" which is the classic-xen location, whereas the expected location under PVops is "/dev/xen/privcmd".

Nothing has ever used /dev/xen/privcmd since it was reimplemented to replace xenfs, so describing it as expected is a bit strong. At best there is a wishlist issue here for someone to finish implementing this transition, which I've now created.

http://lists.xen.org/archives/html/xen-devel/2011-12/msg01344.html
http://lists.xen.org/archives/html/xen-devel/2011-12/msg01345.html
looks to be related patches, not sure why thay didn't go in back then. Lack of a S-o-b perhaps.

Quoted 2 lines

The other open
functions (evtchn, gnttab, gntshr) exclusivly use "/dev/xen/$FOO".

These have only ever been driver rather than proc based so there was never a transition.

Ian.

#3 lore raw

Processed: Re: libxc linux privcmd bugs

Processing commands for [email protected]:

Quoted 1 line

create ^

Created new bug #34 rooted at `<[email protected]>'
Title: `Re: libxc linux privcmd bugs'

Quoted 1 line

title it libxc should use /dev/xen/privcmd on Linux

Set title for #34 to `libxc should use /dev/xen/privcmd on Linux'

Quoted 1 line

severity it wishlist

Change severity for #34 to `wishlist'

Quoted 1 line

thanks

Finished processing.

Modified/created Bugs:
- 34: http://bugs.xenproject.org/xen/bug/34 (new)

---
Xen Hypervisor Bug Tracker
See http://wiki.xen.org/wiki/Reporting_Bugs_against_Xen for information on reporting bugs Contact [email protected] with any infrastructure issues