]> xenbits.xensource.com Git - xen.git/commit
libxl: support reset file on sysfs
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 23 Jun 2010 16:05:31 +0000 (17:05 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 23 Jun 2010 16:05:31 +0000 (17:05 +0100)
commite41d0dba09ec63d99e4c97a0f43a0dea7fdd9cc6
tree956a7d01f2202ac9166fe8bb4691f4671b82e8e0
parentcaaaad749ab5e81c3c90043b6112b290e41e972b
libxl: support reset file on sysfs

Recent kernels have a reset file on sysfs per PCI device, to allow PCI
device reset from userspace.
This patch adds support to libxl for resetting PCI devices using the
reset file on sysfs, in case the do_flr file is not preset.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h