|
@@ -1065,7 +1065,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
|
|
* changes) is disallowed above, so any other attribute changes getting
|
|
* changes) is disallowed above, so any other attribute changes getting
|
|
* here can be skipped.
|
|
* here can be skipped.
|
|
*/
|
|
*/
|
|
- if ((change == KVM_MR_CREATE) || (change == KVM_MR_MOVE)) {
|
|
|
|
|
|
+ if (as_id == 0 && (change == KVM_MR_CREATE || change == KVM_MR_MOVE)) {
|
|
r = kvm_iommu_map_pages(kvm, &new);
|
|
r = kvm_iommu_map_pages(kvm, &new);
|
|
return r;
|
|
return r;
|
|
}
|
|
}
|