]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: build kvm_userspace_memory_region in x86_set_memory_region
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Oct 2015 11:38:32 +0000 (13:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Oct 2015 16:28:46 +0000 (18:28 +0200)
commitf3d6b5362d27fd542ff44d92d5ddbac3071b1395
tree282870ab57659afefbddfc32e5e81e7812889c4b
parent8e18ab1b0a7b71d40edd2fb47a7dffe356e7a729
KVM: x86: build kvm_userspace_memory_region in x86_set_memory_region

The next patch will make x86_set_memory_region fill the
userspace_addr.  Since the struct is not used untouched
anymore, it makes sense to build it in x86_set_memory_region
directly; it also simplifies the callers.

Reported-by: Alexandre DERUMIER <aderumier@odiso.com>
Cc: stable@vger.kernel.org
Fixes: fa6d11aebd472c25d64c3372bd54f274d9fece48
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c