diff options
author | Amos Kong <akong@redhat.com> | 2012-03-08 23:17:32 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 05:46:58 -0400 |
commit | a13007160f1b9ec7c67e28ec9254f197c5c08d7d (patch) | |
tree | d5c855d0409ca86323a1bd916cd3e21feba13ff7 /include/linux/kvm_host.h | |
parent | 83c529151ab0d4a813e3f6a3e293fff75d468519 (diff) |
KVM: resize kvm_io_range array dynamically
This patch makes the kvm_io_range array can be resized dynamically.
Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 665a260c7e09..ba9fb4a9762d 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -68,10 +68,11 @@ struct kvm_io_range { | |||
68 | struct kvm_io_device *dev; | 68 | struct kvm_io_device *dev; |
69 | }; | 69 | }; |
70 | 70 | ||
71 | #define NR_IOBUS_DEVS 300 | ||
72 | |||
71 | struct kvm_io_bus { | 73 | struct kvm_io_bus { |
72 | int dev_count; | 74 | int dev_count; |
73 | #define NR_IOBUS_DEVS 300 | 75 | struct kvm_io_range range[]; |
74 | struct kvm_io_range range[NR_IOBUS_DEVS]; | ||
75 | }; | 76 | }; |
76 | 77 | ||
77 | enum kvm_bus { | 78 | enum kvm_bus { |