KVM: Drop arch hardware (un)setup hooks

Drop kvm_arch_hardware_setup() and kvm_arch_hardware_unsetup() now that
all implementations are nops.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>	# s390
Acked-by: Anup Patel <anup@brainfault.org>
Message-Id: <20221130230934.1014142-10-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Sean Christopherson
2022-11-30 23:08:53 +00:00
committed by Paolo Bonzini
parent b7483387e3
commit 63a1bd8ad1
12 changed files with 0 additions and 53 deletions

View File

@@ -5931,10 +5931,6 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
if (r)
return r;
r = kvm_arch_hardware_setup(opaque);
if (r < 0)
goto err_hw_setup;
if (!zalloc_cpumask_var(&cpus_hardware_enabled, GFP_KERNEL)) {
r = -ENOMEM;
goto err_hw_enabled;
@@ -6027,8 +6023,6 @@ out_free_3:
out_free_2:
free_cpumask_var(cpus_hardware_enabled);
err_hw_enabled:
kvm_arch_hardware_unsetup();
err_hw_setup:
kvm_arch_exit();
return r;
}
@@ -6057,7 +6051,6 @@ void kvm_exit(void)
on_each_cpu(hardware_disable_nolock, NULL, 1);
kvm_irqfd_exit();
free_cpumask_var(cpus_hardware_enabled);
kvm_arch_hardware_unsetup();
kvm_arch_exit();
}
EXPORT_SYMBOL_GPL(kvm_exit);