KVM: x86: move device assignment out of kvm_host.h
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Nov 2014 14:27:17 +0000 (15:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Nov 2014 15:53:50 +0000 (16:53 +0100)
commitc9eab58f6466cef3d9cd760a96e4de5e060e5195
tree42f8f5d3830d4601d986e73e29d071f29f491185
parentb65d6e17fe2239c9b2051727903955d922083fbf
KVM: x86: move device assignment out of kvm_host.h

Create a new header, and hide the device assignment functions there.
Move struct kvm_assigned_dev_kernel to assigned-dev.c by modifying
arch/x86/kvm/iommu.c to take a PCI device struct.

Based on a patch by Radim Krcmar <rkrcmark@redhat.com>.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/assigned-dev.c
arch/x86/kvm/assigned-dev.h [new file with mode: 0644]
arch/x86/kvm/iommu.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h