commit | 8a9c8925149f195d0bbd6b42aa3130ced0a075fb | [log] [tgz] |
---|---|---|
author | Leonardo Bras <leonardo@linux.ibm.com> | Tue Nov 26 19:36:30 2019 -0300 |
committer | Paul Mackerras <paulus@ozlabs.org> | Fri Jan 17 15:08:28 2020 +1100 |
tree | c42a379e012ac386ae759986abb10167762dfcc7 | |
parent | 4de0a8355463e068e443b48eb5ae32370155368b [diff] |
KVM: PPC: Book3S: Replace current->mm by kvm->mm Given that in kvm_create_vm() there is: kvm->mm = current->mm; And that on every kvm_*_ioctl we have: if (kvm->mm != current->mm) return -EIO; I see no reason to keep using current->mm instead of kvm->mm. By doing so, we would reduce the use of 'global' variables on code, relying more in the contents of kvm struct. Signed-off-by: Leonardo Bras <leonardo@linux.ibm.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>