KVM: kvm_io_device: extend in_range() to manage len and write attribute
[h-e-n] / arch / x86 / kvm / i8259.c
index ab29cf2..5857f59 100644 (file)
@@ -346,7 +346,8 @@ static u32 elcr_ioport_read(void *opaque, u32 addr1)
        return s->elcr;
 }
 
-static int picdev_in_range(struct kvm_io_device *this, gpa_t addr)
+static int picdev_in_range(struct kvm_io_device *this, gpa_t addr,
+                          int len, int is_write)
 {
        switch (addr) {
        case 0x20: