libxc: prefer using privcmd character device
authorDoug Goldstein <cardoe@cardoe.com>
Tue, 1 Dec 2015 19:27:53 +0000 (13:27 -0600)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 2 Dec 2015 15:23:14 +0000 (15:23 +0000)
commit013396f93ee2d4ec416f701ae420c683b7327230
tree89e0ac29b2613b2eeb08b8b586fb05eee175ad20
parent2c4f313a7e62c7e559a469d4af4c3d03c49afa43
libxc: prefer using privcmd character device

Prefer using the character device over the proc file if the character
device exists. This follows similar conversions of xenbus to avoid
issues with FMODE_ATOMIC_POS added in Linux 3.14 and newer.

CC: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
CC: Ian Campbell <ian.campbell@citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_linux_osdep.c