KVM: Use own minor number
Use the minor number (232) allocated to kvm by lanana. Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
@@ -2299,7 +2299,7 @@ static struct file_operations kvm_chardev_ops = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct miscdevice kvm_dev = {
|
static struct miscdevice kvm_dev = {
|
||||||
MISC_DYNAMIC_MINOR,
|
KVM_MINOR,
|
||||||
"kvm",
|
"kvm",
|
||||||
&kvm_chardev_ops,
|
&kvm_chardev_ops,
|
||||||
};
|
};
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#define TUN_MINOR 200
|
#define TUN_MINOR 200
|
||||||
#define HPET_MINOR 228
|
#define HPET_MINOR 228
|
||||||
|
#define KVM_MINOR 232
|
||||||
|
|
||||||
struct device;
|
struct device;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user