diff options
author | Amos Kong <akong@redhat.com> | 2012-03-09 08:17:32 +0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 13:46:58 +0400 |
commit | a13007160f1b9ec7c67e28ec9254f197c5c08d7d (patch) | |
tree | d5c855d0409ca86323a1bd916cd3e21feba13ff7 /include | |
parent | 83c529151ab0d4a813e3f6a3e293fff75d468519 (diff) | |
download | linux-a13007160f1b9ec7c67e28ec9254f197c5c08d7d.tar.xz |
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')
-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 { struct kvm_io_device *dev; }; +#define NR_IOBUS_DEVS 300 + struct kvm_io_bus { int dev_count; -#define NR_IOBUS_DEVS 300 - struct kvm_io_range range[NR_IOBUS_DEVS]; + struct kvm_io_range range[]; }; enum kvm_bus { |