KVM: Device Assignment: Map mmio pages into VT-d page table

Assigned device could DMA to mmio pages, so also need to map mmio pages
into VT-d page table.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
Weidong Han
2008-09-25 23:32:02 +08:00
committed by Avi Kivity
parent e48258009d
commit e5fcfc821a
3 changed files with 12 additions and 21 deletions

View File

@@ -76,7 +76,7 @@ static inline int valid_vcpu(int n)
return likely(n >= 0 && n < KVM_MAX_VCPUS);
}
inline int is_mmio_pfn(pfn_t pfn)
static inline int is_mmio_pfn(pfn_t pfn)
{
if (pfn_valid(pfn))
return PageReserved(pfn_to_page(pfn));