aboutsummaryrefslogtreecommitdiff
path: root/hw/i386/kvm/i8259.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-05-15 16:35:16 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-06-01 14:15:10 +0200
commit257a7430e7a6bc5a9e4c17d884f4a092529501c7 (patch)
treeb42c32ab3f7c7767c0bfe6af8d150a7ec767d3d3 /hw/i386/kvm/i8259.c
parent0330002cb5176fcbc376478ac36f5f512ed53b9f (diff)
downloadqemu-257a7430e7a6bc5a9e4c17d884f4a092529501c7.zip
qemu-257a7430e7a6bc5a9e4c17d884f4a092529501c7.tar.gz
qemu-257a7430e7a6bc5a9e4c17d884f4a092529501c7.tar.bz2
memory: get rid of memory_region_init_reservation
The function has been deprecated for 2.5 years, and there are just a handful of users. Convert them to memory_region_init_io with NULL callbacks, and while at it pass the right device as the owner. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/kvm/i8259.c')
-rw-r--r--hw/i386/kvm/i8259.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i386/kvm/i8259.c b/hw/i386/kvm/i8259.c
index 05394cd..83b6bfe 100644
--- a/hw/i386/kvm/i8259.c
+++ b/hw/i386/kvm/i8259.c
@@ -121,8 +121,8 @@ static void kvm_pic_realize(DeviceState *dev, Error **errp)
PICCommonState *s = PIC_COMMON(dev);
KVMPICClass *kpc = KVM_PIC_GET_CLASS(dev);
- memory_region_init_reservation(&s->base_io, NULL, "kvm-pic", 2);
- memory_region_init_reservation(&s->elcr_io, NULL, "kvm-elcr", 1);
+ memory_region_init_io(&s->base_io, OBJECT(dev), NULL, NULL, "kvm-pic", 2);
+ memory_region_init_io(&s->elcr_io, OBJECT(dev), NULL, NULL, "kvm-elcr", 1);
kpc->parent_realize(dev, errp);
}