diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-05-31 14:50:52 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-05-31 14:50:52 +0100 |
commit | bc6b1cec84618bf977a451eac30ed1ee4c735963 (patch) | |
tree | 17b62b24ca89c8328e9783b3cb836092ae5cb808 /target/arm | |
parent | c874dc4f5e8ffae46ddaf2a0f223269f23f3a00d (diff) | |
download | qemu-bc6b1cec84618bf977a451eac30ed1ee4c735963.zip qemu-bc6b1cec84618bf977a451eac30ed1ee4c735963.tar.gz qemu-bc6b1cec84618bf977a451eac30ed1ee4c735963.tar.bz2 |
Make address_space_translate{, _cached}() take a MemTxAttrs argument
As part of plumbing MemTxAttrs down to the IOMMU translate method,
add MemTxAttrs as an argument to address_space_translate()
and address_space_translate_cached(). Callers either have an
attrs value to hand, or don't care and can use MEMTXATTRS_UNSPECIFIED.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180521140402.23318-4-peter.maydell@linaro.org
Diffstat (limited to 'target/arm')
-rw-r--r-- | target/arm/kvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 5141d0a..98f5006 100644 --- a/target/arm/kvm.c +++ b/target/arm/kvm.c @@ -664,7 +664,8 @@ int kvm_arch_fixup_msi_route(struct kvm_irq_routing_entry *route, /* MSI doorbell address is translated by an IOMMU */ rcu_read_lock(); - mr = address_space_translate(as, address, &xlat, &len, true); + mr = address_space_translate(as, address, &xlat, &len, true, + MEMTXATTRS_UNSPECIFIED); if (!mr) { goto unlock; } |