diff options
author | Laurent Vivier <Laurent.Vivier@bull.net> | 2008-05-30 16:05:53 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-06-04 18:12:16 +0300 |
commit | b5779e39ed500c948858d64e90305b133a8e4a1b (patch) | |
tree | 5fbc2cd7a4f9d4c07f4dfcea97a08fc8ce19411f /virt/kvm/ioapic.c | |
parent | 1f4e1d64122369d65d8a9c616112780019fb6188 (diff) |
KVM: kvm_io_device: extend in_range() to manage len and write attribute
Modify member in_range() of structure kvm_io_device to pass length and the type
of the I/O (write or read).
This modification allows to use kvm_io_device with coalesced MMIO.
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'virt/kvm/ioapic.c')
-rw-r--r-- | virt/kvm/ioapic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 99a1736327ec..763b11428f15 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -315,7 +315,8 @@ void kvm_ioapic_update_eoi(struct kvm *kvm, int vector) ioapic_deliver(ioapic, gsi); } -static int ioapic_in_range(struct kvm_io_device *this, gpa_t addr) +static int ioapic_in_range(struct kvm_io_device *this, gpa_t addr, + int len, int is_write) { struct kvm_ioapic *ioapic = (struct kvm_ioapic *)this->private; |