diff options
author | Gregory Haskins <ghaskins@novell.com> | 2009-06-01 12:54:50 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:45 -0400 |
commit | d76685c4a074041ed168e0b04dd604c3df5dcaa5 (patch) | |
tree | 828fb3a57b7829530904318a0ad9d006e21408ad /virt/kvm/kvm_main.c | |
parent | 787a660a4f03325a0e00493ac39017e53fd345fa (diff) |
KVM: cleanup io_device code
We modernize the io_device code so that we use container_of() instead of
dev->private, and move the vtable to a separate ops structure
(theoretically allows better caching for multiple instances of the same
ops structure)
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 2d9bc439d9a9..d1f9c87daa87 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -2463,7 +2463,7 @@ struct kvm_io_device *kvm_io_bus_find_dev(struct kvm_io_bus *bus, | |||
2463 | for (i = 0; i < bus->dev_count; i++) { | 2463 | for (i = 0; i < bus->dev_count; i++) { |
2464 | struct kvm_io_device *pos = bus->devs[i]; | 2464 | struct kvm_io_device *pos = bus->devs[i]; |
2465 | 2465 | ||
2466 | if (pos->in_range(pos, addr, len, is_write)) | 2466 | if (kvm_iodevice_in_range(pos, addr, len, is_write)) |
2467 | return pos; | 2467 | return pos; |
2468 | } | 2468 | } |
2469 | 2469 | ||