This nice cache needs to be outside apf to reduce complexity forWill look into it.
reviewers and since it is useful for others.
Would be good to have memslot-cached kvm_put_guest() and kvm_get_guest().
Number of kernel threads are limited by other means. Slow work subsystem+ struct kvm_arch_async_pf *arch)100 == too high. At 16 vcpus, this allows 1600 kernel threads to
+{
+ struct kvm_async_pf *work;
+
+ if (vcpu->async_pf_queued>= ASYNC_PF_PER_VCPU)
+ return 0;
wait for I/O.
has its own knobs to tune that. Here we limit how much slow work items
can be queued per vcpu.
Would have been best if we could ask for a page to be paged inYou mean to have core kernel facility for that? I agree it would be
asynchronously.
nice, but much harder.