diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2019-12-18 13:55:09 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-24 09:19:07 +0100 |
commit | 897cc38eaab96d006ab17edd0f50a2f432f584cf (patch) | |
tree | 4424da47ceebcd43cd400d7b71572b57abe938c5 /arch/mips/kvm/mips.c | |
parent | fe931f12277186d1a9d38ba6729b42e8edb68988 (diff) | |
download | linux-stable-897cc38eaab96d006ab17edd0f50a2f432f584cf.tar.gz linux-stable-897cc38eaab96d006ab17edd0f50a2f432f584cf.tar.bz2 linux-stable-897cc38eaab96d006ab17edd0f50a2f432f584cf.zip |
KVM: Add kvm_arch_vcpu_precreate() to handle pre-allocation issues
Add a pre-allocation arch hook to handle checks that are currently done
by arch specific code prior to allocating the vCPU object. This paves
the way for moving the allocation to common KVM code.
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/mips.c')
-rw-r--r-- | arch/mips/kvm/mips.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c index d72bceb10439..2e14455aec4e 100644 --- a/arch/mips/kvm/mips.c +++ b/arch/mips/kvm/mips.c @@ -280,6 +280,11 @@ static inline void dump_handler(const char *symbol, void *start, void *end) pr_debug("\tEND(%s)\n", symbol); } +int kvm_arch_vcpu_precreate(struct kvm *kvm, unsigned int id) +{ + return 0; +} + struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) { int err, size; |