projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7131636
)
KVM/x86: assign hva with the right value to vm_munmap the pages
author
Zheng Zhan Liang
<zhengzhanliang@huorong.cn>
Mon, 1 Feb 2021 05:53:10 +0000
(13:53 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 1 Feb 2021 17:43:01 +0000
(12:43 -0500)
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Wanpeng Li <wanpengli@tencent.com>
Cc: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Zheng Zhan Liang <zhengzhanliang@huorong.cn>
Message-Id: <
20210201055310
.267029-1-zhengzhanliang@huorong.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index
b05a1fe
..
42b28d0
100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-10502,7
+10502,7
@@
void __user * __x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
return 0;
old_npages = slot->npages;
- hva =
0
;
+ hva =
slot->userspace_addr
;
}
for (i = 0; i < KVM_ADDRESS_SPACE_NUM; i++) {