]> git.proxmox.com Git - mirror_qemu.git/commit - softmmu/memory.c
memory: Add RAM_PROTECTED flag to skip IOMMU mappings
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 19 Jul 2021 11:21:04 +0000 (19:21 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Sep 2021 12:50:19 +0000 (14:50 +0200)
commit56918a126ae25383cb0c2c74a6f0f784a6d59ac1
tree2694e522c8582fb67fed63bfcad65fe3649ca3bc
parentba0fa56bc06e563de68d2a2bf3ddb0cfea1be4f9
memory: Add RAM_PROTECTED flag to skip IOMMU mappings

Add a new RAMBlock flag to denote "protected" memory, i.e. memory that
looks and acts like RAM but is inaccessible via normal mechanisms,
including DMA.  Use the flag to skip protected memory regions when
mapping RAM for DMA in VFIO.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/vfio/common.c
include/exec/memory.h
softmmu/memory.c
softmmu/physmem.c