diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-04-27 08:35:43 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 04:48:50 -0400 |
commit | 522c68c4416de3cd3e11a9ff10d58e776a69ae1e (patch) | |
tree | 62940e35988f5e2a52df10276882ec64518ee369 /arch/x86/include/asm/kvm_host.h | |
parent | 4b12f0de33a64dfc624b2480f55b674f7fa23ef2 (diff) |
KVM: Enable snooping control for supported hardware
Memory aliases with different memory type is a problem for guest. For the guest
without assigned device, the memory type of guest memory would always been the
same as host(WB); but for the assigned device, some part of memory may be used
as DMA and then set to uncacheable memory type(UC/WC), which would be a conflict of
host memory type then be a potential issue.
Snooping control can guarantee the cache correctness of memory go through the
DMA engine of VT-d.
[avi: fix build on ia64]
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 8a6f6b643dfe..253d8f669cf6 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -393,6 +393,7 @@ struct kvm_arch{ | |||
393 | struct list_head active_mmu_pages; | 393 | struct list_head active_mmu_pages; |
394 | struct list_head assigned_dev_head; | 394 | struct list_head assigned_dev_head; |
395 | struct iommu_domain *iommu_domain; | 395 | struct iommu_domain *iommu_domain; |
396 | int iommu_flags; | ||
396 | struct kvm_pic *vpic; | 397 | struct kvm_pic *vpic; |
397 | struct kvm_ioapic *vioapic; | 398 | struct kvm_ioapic *vioapic; |
398 | struct kvm_pit *vpit; | 399 | struct kvm_pit *vpit; |