summaryrefslogtreecommitdiffstats
path: root/target/alpha/cpu.h
diff options
context:
space:
mode:
authorYan Zhao2019-06-25 05:21:18 +0200
committerPaolo Bonzini2019-08-20 17:26:18 +0200
commit03c7140c1a0336af3d4fca768de791b9c0e2b128 (patch)
tree00d655bf4eb397f056fdff0569b95dbef572717c /target/alpha/cpu.h
parenthw/i386/pc: Map into memory the initrd (diff)
downloadqemu-03c7140c1a0336af3d4fca768de791b9c0e2b128.tar.gz
qemu-03c7140c1a0336af3d4fca768de791b9c0e2b128.tar.xz
qemu-03c7140c1a0336af3d4fca768de791b9c0e2b128.zip
memory: assert on out of scope notification
It is wrong for an entry to have parts out of scope of notifier's range. assert this condition. Out of scope mapping/unmapping would cause problem, as in below case: 1. initially there are two notifiers with ranges 0-0xfedfffff, 0xfef00000-0xffffffffffffffff, IOVAs from 0x3c000000 - 0x3c1fffff is in shadow page table. 2. in vfio, memory_region_register_iommu_notifier() is followed by memory_region_iommu_replay(), which will first call address space unmap, and walk and add back all entries in vtd shadow page table. e.g. (1) for notifier 0-0xfedfffff, IOVAs from 0 - 0xffffffff get unmapped, and IOVAs from 0x3c000000 - 0x3c1fffff get mapped (2) for notifier 0xfef00000-0xffffffffffffffff IOVAs from 0 - 0x7fffffffff get unmapped, but IOVAs from 0x3c000000 - 0x3c1fffff cannot get mapped back. Cc: Eric Auger <eric.auger@redhat.com> Signed-off-by: Yan Zhao <yan.y.zhao@intel.com> Message-Id: <1561432878-13754-1-git-send-email-yan.y.zhao@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/alpha/cpu.h')
0 files changed, 0 insertions, 0 deletions