]> git.proxmox.com Git - mirror_qemu.git/commit
PPC: openpic_kvm: Only map first occurence in address space
authorAlexander Graf <agraf@suse.de>
Thu, 11 Sep 2014 10:22:57 +0000 (12:22 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 4 Nov 2014 22:26:11 +0000 (23:26 +0100)
commit9ac58dc59aaf9db20ec17df9b372915bee9b0f02
treee642ad02fba2fa58dadb9e76881273dc9927f4e2
parent4aee73623d0141c5d4ce4754fc054689fb92f0e5
PPC: openpic_kvm: Only map first occurence in address space

The in-kernel OpenPIC emulation only supports a single map. However, we
map the OpenPIC at 2 locations: The CPU visible one and the PCI visible
one. For KVM acceleration, we only care about the first one.

To make sure that we only map that first mapping and not the PCI map that
happens dynamically later during bootup, ignore maps that happen when
we are already considering ourselves mapped.

Credits due are to Bogdan and Mihai for debugging this.

Reported-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Reported-by: Mihai Caraman <mihai.caraman@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/intc/openpic_kvm.c