projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2df8a40
)
KVM: fix kvm_vm_ioctl_deassign_device
author
Weidong Han
<weidong.han@intel.com>
Fri, 13 Feb 2009 09:27:51 +0000
(17:27 +0800)
committer
Avi Kivity
<avi@redhat.com>
Tue, 24 Mar 2009 09:03:12 +0000
(11:03 +0200)
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>
virt/kvm/kvm_main.c
patch
|
blob
|
history
diff --git
a/virt/kvm/kvm_main.c
b/virt/kvm/kvm_main.c
index 0ed662dc72d27e3d70409381e87271608e71b0f6..c4278975c8ca723ad6ea34a9bcaf7666ca1cfd3c 100644
(file)
--- 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);