]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Drop x86_set_memory_region()
authorPeter Xu <peterx@redhat.com>
Thu, 9 Jan 2020 14:57:16 +0000 (09:57 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2020 18:59:53 +0000 (19:59 +0100)
commit1f5075ecd122b26826d0b562445aff8ae7e90cf1
tree1805da9fd12c36337dbedd046b924012e31ad324
parent0fc589b7cbcaf5158ff408f71278cbb834bdf78e
KVM: X86: Drop x86_set_memory_region()

The helper x86_set_memory_region() is only used in vmx_set_tss_addr()
and kvm_arch_destroy_vm().  Push the lock upper in both cases.  With
that, drop x86_set_memory_region().

This prepares to allow __x86_set_memory_region() to return a HVA
mapped, because the HVA will need to be protected by the lock too even
after __x86_set_memory_region() returns.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c