diff options
author | Weidong Han <weidong.han@intel.com> | 2008-12-08 15:29:53 (GMT) |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 13:10:08 (GMT) |
commit | b653574a7d14b663cc812cb20be6a114939ba186 (patch) | |
tree | 1fa1c833bacea5411e1c640180a00848552d7282 /virt/kvm/kvm_main.c | |
parent | 0a920356748df4fb06e86c21c23d2ed6d31d37ad (diff) | |
download | linux-fsl-qoriq-b653574a7d14b663cc812cb20be6a114939ba186.tar.xz |
Deassign device in kvm_free_assgined_device
In kvm_iommu_unmap_memslots(), assigned_dev_head is already empty.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 3238e08..4ef0fb4 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -496,6 +496,7 @@ static int kvm_vm_ioctl_assign_device(struct kvm *kvm, match->assigned_dev_id = assigned_dev->assigned_dev_id; match->host_busnr = assigned_dev->busnr; match->host_devfn = assigned_dev->devfn; + match->flags = assigned_dev->flags; match->dev = dev; match->irq_source_id = -1; match->kvm = kvm; |