vzctl: use newer API for pci_add (v2)
New kernels (since 2.6.32-042test005.1) contains virtualization for
generic linux devices. Now you can move any device and kernel will
create sysfs tree, send uevent and give permission for char/block
devices.
Old scheme was not good enough, so we removed it from kernel while
(hoping that) nobody's using it.
Additions by kir@openvz.org:
- remove nvidia module loading;
- remove structs and defines used by set_pci();
- fixes for sysfs filenames with spaces;
- 80-col fixes;
- other minor cleanups and dead code removal;
- copyright year fixes.
Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
3 files changed