]> Git Repo - qemu.git/commit - target/arm/kvm.c
target/arm: Allow KVM device address overwriting
authorEric Auger <[email protected]>
Fri, 22 Jun 2018 12:28:35 +0000 (13:28 +0100)
committerPeter Maydell <[email protected]>
Fri, 22 Jun 2018 12:28:35 +0000 (13:28 +0100)
commit19d1bd0b586a537805c6fe3b590f4ca8ec7a4912
tree126fba2b6604bb3ed68d197466ec6882519b701f
parent77d361b13c19fdf881bff044a5bec99108cf2da2
target/arm: Allow KVM device address overwriting

for KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION attribute, the attribute
data pointed to by kvm_device_attr.addr is a OR of the
redistributor region address and other fields such as the index
of the redistributor region and the number of redistributors the
region can contain.

The existing machine init done notifier framework sets the address
field to the actual address of the device and does not allow to OR
this value with other fields.

This patch extends the KVMDevice struct with a new kda_addr_ormask
member. Its value is passed at registration time and OR'ed with the
resolved address on kvm_arm_set_device_addr().

Signed-off-by: Eric Auger <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Message-id: 1529072910[email protected]
Signed-off-by: Peter Maydell <[email protected]>
hw/intc/arm_gic_kvm.c
hw/intc/arm_gicv3_its_kvm.c
hw/intc/arm_gicv3_kvm.c
target/arm/kvm.c
target/arm/kvm_arm.h
This page took 0.026523 seconds and 4 git commands to generate.