summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-03-04 13:27:36 +0200
committerAvi Kivity <avi@qumranet.com>2007-05-03 10:52:22 +0300
commitbbe4432e669ab94fc8059e7ab878cafad7b8d123 (patch)
tree86a0c878e232a5bcf6978165d0d5a482a22f3a62
parent510043da8582ad49d22a1e9a6b211e6ede10cd2e (diff)
downloadop-kernel-dev-bbe4432e669ab94fc8059e7ab878cafad7b8d123.zip
op-kernel-dev-bbe4432e669ab94fc8059e7ab878cafad7b8d123.tar.gz
KVM: Use own minor number
Use the minor number (232) allocated to kvm by lanana. Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--drivers/kvm/kvm_main.c2
-rw-r--r--include/linux/miscdevice.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index ff7c836..946ed86 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -2299,7 +2299,7 @@ static struct file_operations kvm_chardev_ops = {
};
static struct miscdevice kvm_dev = {
- MISC_DYNAMIC_MINOR,
+ KVM_MINOR,
"kvm",
&kvm_chardev_ops,
};
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h
index 326da7d..dff9ea3 100644
--- a/include/linux/miscdevice.h
+++ b/include/linux/miscdevice.h
@@ -29,6 +29,7 @@
#define TUN_MINOR 200
#define HPET_MINOR 228
+#define KVM_MINOR 232
struct device;
OpenPOWER on IntegriCloud