]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: refactor msr permission bitmap allocation
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 27 Aug 2020 17:11:40 +0000 (20:11 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:11 +0000 (07:57 -0400)
commitfd432cd603937658b34c750c2e488b258d834869
tree23cad63940f3a61bbe5ab706271fc76af67df550
parentee15d68d8e55bc5532b96b07b45b2ec076f35434
KVM: SVM: refactor msr permission bitmap allocation

Replace svm_vcpu_init_msrpm with svm_vcpu_alloc_msrpm, that also allocates
the msr bitmap and add svm_vcpu_free_msrpm to free it.

This will be used later to move the nested msr permission bitmap allocation
to nested.c

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20200827171145.374620-4-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c