KVM: count number of assigned devices
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jul 2015 13:41:58 +0000 (15:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2015 11:25:26 +0000 (13:25 +0200)
If there are no assigned devices, the guest PAT are not providing
any useful information and can be overridden to writeback; VMX
always does this because it has the "IPAT" bit in its extended
page table entries, but SVM does not have anything similar.
Hook into VFIO and legacy device assignment so that they
provide this information to KVM.

Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/iommu.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/vfio.c

Simple merge
Simple merge
Simple merge
Simple merge
diff --cc virt/kvm/vfio.c
Simple merge