diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-04-04 13:54:05 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-04-04 13:54:05 +0100 |
commit | a7dc0fae6568b8849fe343f0351f30b38484b2e4 (patch) | |
tree | e1f0385b0e27febe1a0aa6ec60682b59d37100b1 /xen/include/xen/hvm | |
parent | 69f74e87be7d24c11d106f93275ad7004d295d7f (diff) | |
download | xen-a7dc0fae6568b8849fe343f0351f30b38484b2e4.tar.gz xen-a7dc0fae6568b8849fe343f0351f30b38484b2e4.tar.bz2 xen-a7dc0fae6568b8849fe343f0351f30b38484b2e4.zip |
AMD IOMMU: Defer IO pagetable construction until device assignment
During HVM domain creation, I/O page tables are filled by coping p2m
entries from p2m table, which is a useless step for non-passthru
domain. This patch defers I/O page table construction until the moment
of device assignment. In case that pci devices are never assigned or
hot plugged, the unnecessary duplication will be avoided.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Diffstat (limited to 'xen/include/xen/hvm')
-rw-r--r-- | xen/include/xen/hvm/iommu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/xen/hvm/iommu.h b/xen/include/xen/hvm/iommu.h index 8b11d44c16..f9d0de5a0d 100644 --- a/xen/include/xen/hvm/iommu.h +++ b/xen/include/xen/hvm/iommu.h @@ -48,9 +48,10 @@ struct hvm_iommu { int domain_id; int paging_mode; void *root_table; + bool_t p2m_synchronized; /* iommu_ops */ struct iommu_ops *platform_ops; }; -#endif // __ASM_X86_HVM_IOMMU_H__ +#endif /* __ASM_X86_HVM_IOMMU_H__ */ |