Thread (127 messages) 127 messages, 14 authors, 2022-12-01

Re: [PATCH 17/44] KVM: arm64: Do arm/arch initialiation without bouncing through kvm_init()

From: Philippe Mathieu-Daudé <hidden>
Date: 2022-11-03 07:25:50
Also in: kvm, kvm-riscv, kvmarm, linux-mips, linux-riscv, linux-s390, linuxppc-dev, lkml

Hi Sean,

On 3/11/22 00:18, Sean Christopherson wrote:
Move arm/arch specific initialization directly in arm's module_init(),
now called kvm_arm_init(), instead of bouncing through kvm_init() to
reach kvm_arch_init().  Invoking kvm_arch_init() is the very first action
performed by kvm_init(), i.e. this is a glorified nop.

Making kvm_arch_init() a nop will allow dropping it entirely once all
other architectures follow suit.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
---
  arch/arm64/kvm/arm.c | 25 ++++++++++++++++---------
  1 file changed, 16 insertions(+), 9 deletions(-)
  /* NOP: Compiling as a module not supported */
  void kvm_arch_exit(void)
  {
-	kvm_unregister_perf_callbacks();
Doesn't this belong to the previous patch?
+
  }

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help