mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
KVM: set_memory_region: Drop user_alloc from prepare/commit_memory_region()
X86 does not use this any more. The remaining user, s390's !user_alloc check, can be simply removed since KVM_SET_MEMORY_REGION ioctl is no longer supported. Note: fixed powerpc's indentations with spaces to suppress checkpatch errors. Signed-off-by: Takuya Yoshikawa <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
This commit is contained in:
parent
ee2c25efdd
commit
462fce4606
7 changed files with 17 additions and 32 deletions
|
|
@ -875,7 +875,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
|
|||
slots = old_memslots;
|
||||
}
|
||||
|
||||
r = kvm_arch_prepare_memory_region(kvm, &new, old, mem, user_alloc);
|
||||
r = kvm_arch_prepare_memory_region(kvm, &new, old, mem);
|
||||
if (r)
|
||||
goto out_slots;
|
||||
|
||||
|
|
@ -915,7 +915,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
|
|||
|
||||
old_memslots = install_new_memslots(kvm, slots, &new);
|
||||
|
||||
kvm_arch_commit_memory_region(kvm, mem, old, user_alloc);
|
||||
kvm_arch_commit_memory_region(kvm, mem, old);
|
||||
|
||||
kvm_free_physmem_slot(&old, &new);
|
||||
kfree(old_memslots);
|
||||
|
|
|
|||
Loading…
Reference in a new issue