Thread (24 messages) 24 messages, 6 authors, 2021-11-16

Re: [PATCH 0/5] KVM: Turn the vcpu array into an xarray

From: Marc Zyngier <maz@kernel.org>
Date: 2021-11-16 15:41:27
Also in: kvm, kvmarm, linux-mips

On Tue, 16 Nov 2021 15:03:40 +0000,
Paolo Bonzini [off-list ref] wrote:
On 11/5/21 20:20, Marc Zyngier wrote:
quoted
The kvm structure is pretty large. A large portion of it is the vcpu
array, which is 4kB on x86_64 and arm64 as they deal with 512 vcpu
VMs. Of course, hardly anyone runs VMs this big, so this is often a
net waste of memory and cache locality.

A possible approach is to turn the fixed-size array into an xarray,
which results in a net code deletion after a bit of cleanup.

This series is on top of the current linux/master as it touches the
RISC-V implementation. Only tested on arm64.
Queued, only locally until I get a review for my replacement of patch
4 (see
https://lore.kernel.org/kvm/20211116142205.719375-1-pbonzini@redhat.com/T/ (local)).
In which case, let me send a v2 with the changes that we discussed
with Sean. It will still have my version of patch 4, but that's
nothing you can't fix.

	M.

-- 
Without deviation from the norm, progress is not possible.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help