diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2013-12-19 12:17:11 -0500 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2013-12-19 12:17:11 -0500 |
commit | 8dcf94bcff5bf3b54380ae2a17b034fb3b9d58e5 (patch) | |
tree | c4aa4fed92a368b7ab6933e9c377c1b7b5a331bd /include | |
parent | 319e2e3f63c348a9b66db4667efa73178e18b17d (diff) |
misc: Reserve minor for VFIO
VFIO currently allocates it's own dynamic chardev range, reserving the
first minor for the control part of the interface (/dev/vfio/vfio) and
the remainder for VFIO groups (/dev/vfio/$GROUP). This works, but it
doesn't support auto loading. For instance when libvirt checks for
VFIO support it looks for /dev/vfio/vfio, which currently doesn't
exist unless the vfio module is loaded. By converting the control
device to a misc driver and reserving a static minor, we can enable
auto loading.
Reserving the minor is a prerequist to that conversion. Minor 196
is unused by anything currently in the kernel.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/miscdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h index f7eaf2d60083..3737f7218f51 100644 --- a/include/linux/miscdevice.h +++ b/include/linux/miscdevice.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #define STORE_QUEUE_MINOR 155 | 30 | #define STORE_QUEUE_MINOR 155 |
31 | #define I2O_MINOR 166 | 31 | #define I2O_MINOR 166 |
32 | #define MICROCODE_MINOR 184 | 32 | #define MICROCODE_MINOR 184 |
33 | #define VFIO_MINOR 196 | ||
33 | #define TUN_MINOR 200 | 34 | #define TUN_MINOR 200 |
34 | #define CUSE_MINOR 203 | 35 | #define CUSE_MINOR 203 |
35 | #define MWAVE_MINOR 219 /* ACP/Mwave Modem */ | 36 | #define MWAVE_MINOR 219 /* ACP/Mwave Modem */ |