Message ID | 1409765918-20425-3-git-send-email-bogdan.purcareata@freescale.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/intc/openpic_kvm.c b/hw/intc/openpic_kvm.c index e3bce04..b02de40 100644 --- a/hw/intc/openpic_kvm.c +++ b/hw/intc/openpic_kvm.c @@ -128,6 +128,11 @@ static void kvm_openpic_region_add(MemoryListener *listener, return; } + /* Ignore events on regions that are not at the MPIC offset */ + if (section->offset_within_address_space != + memory_region_address_space_offset(section->mr)) + return; + reg_base = section->offset_within_address_space; attr.group = KVM_DEV_MPIC_GRP_MISC;