diff options
author | Weidong Han <weidong.han@intel.com> | 2009-02-13 17:27:51 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 11:03:12 +0200 |
commit | 4a906e49f103c2e544148a209ba1db316510799f (patch) | |
tree | 5b059d8a08a7ca12502350621d13703f03cc1591 /virt/kvm | |
parent | 2df8a40bccf5999261d0d3a82eac5a77678e61bd (diff) | |
download | kernel_samsung_smdk4412-4a906e49f103c2e544148a209ba1db316510799f.zip kernel_samsung_smdk4412-4a906e49f103c2e544148a209ba1db316510799f.tar.gz kernel_samsung_smdk4412-4a906e49f103c2e544148a209ba1db316510799f.tar.bz2 |
KVM: fix kvm_vm_ioctl_deassign_device
only need to set assigned_dev_id for deassignment, use
match->flags to judge and deassign it.
Acked-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 0ed662d..c427897 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -517,7 +517,7 @@ static int kvm_vm_ioctl_deassign_device(struct kvm *kvm, goto out; } - if (assigned_dev->flags & KVM_DEV_ASSIGN_ENABLE_IOMMU) + if (match->flags & KVM_DEV_ASSIGN_ENABLE_IOMMU) kvm_deassign_device(kvm, match); kvm_free_assigned_device(kvm, match); |