[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250124152802.93279-2-pbonzini@redhat.com>
Date: Fri, 24 Jan 2025 10:28:03 -0500
From: Paolo Bonzini <pbonzini@...hat.com>
To: Keith Busch <kbusch@...a.com>
Cc: kvm@...r.kernel.org,
x86@...nel.org,
linux-kernel@...r.kernel.org,
Vlad Poenaru <thevlad@...a.com>,
tj@...nel.org,
Keith Busch <kbusch@...nel.org>,
Sean Christopherson <seanjc@...gle.com>,
Alyssa Ross <hi@...ssa.is>
Subject: Re: [PATCH] kvm: defer huge page recovery vhost task to later
> Defer the task to after the first VM_RUN call, which occurs after the
> parent process has forked all its jailed processes. This needs to happen
> only once for the kvm instance, so this patch introduces infrastructure
> to do that (Suggested-by Paolo).
Queued for 6.13; in the end I moved the new data structure to include/linux,
since it is generally usable and not limited to KVM.
> int kvm_arch_post_init_vm(struct kvm *kvm)
> {
> - return kvm_mmu_post_init_vm(kvm);
> + once_init(&kvm->arch.nx_once);
> + return 0;
> }
This could have been in kvm_arch_init_vm(), but then the last user of
kvm_arch_post_init_vm() goes away and more cleanup is in order. I'll
post the obvious patch shortly.
Thanks Keith and Alyssa.
Paolo
Powered by blists - more mailing lists