• E
    target/arm: Allow KVM device address overwriting · 19d1bd0b
    Eric Auger 提交于
    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: NEric Auger <eric.auger@redhat.com>
    Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
    Message-id: 1529072910-16156-3-git-send-email-eric.auger@redhat.com
    Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
    19d1bd0b
kvm.c 18.7 KB