[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aFsUs7-cRCWJ_xc3@google.com>
Date: Tue, 24 Jun 2025 14:12:19 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
Vipin Sharma <vipinsh@...gle.com>, James Houghton <jthoughton@...gle.com>
Subject: Re: [PATCH v4 0/4] KVM: x86: Dynamically allocate hashed page list
On Tue, Jun 24, 2025, Sean Christopherson wrote:
> On Thu, 22 May 2025 17:11:34 -0700, Sean Christopherson wrote:
> > Allocate the hashed list of shadow pages dynamically (separate from
> > struct kvm), and on-demand. The hashed list is 32KiB, i.e. absolutely
> > belongs in a separate allocation, and is worth skipping if KVM isn't
> > shadowing guest PTEs for the VM.
> >
> > I double checked that padding kvm_arch with a 4KiB array trips the assert,
> > but padding with 2KiB does not. So knock on wood, I finally got the assert
> > right. Maybe.
> >
> > [...]
>
> Applied to kvm-x86 mmu, thanks!
>
> [1/4] KVM: TDX: Move TDX hardware setup from main.c to tdx.c
> https://github.com/kvm-x86/linux/commit/1f287a4e7b90
> [2/4] KVM: x86/mmu: Dynamically allocate shadow MMU's hashed page list
> https://github.com/kvm-x86/linux/commit/02c6bea57d0d
> [3/4] KVM: x86: Use kvzalloc() to allocate VM struct
> https://github.com/kvm-x86/linux/commit/97ad7dd0e53d
> [4/4] KVM: x86/mmu: Defer allocation of shadow MMU's hashed page list
> https://github.com/kvm-x86/linux/commit/59ce4bd2996b
New hashes after a force push to fixup the typeof() oddity:
[1/4] KVM: TDX: Move TDX hardware setup from main.c to tdx.c
https://github.com/kvm-x86/linux/commit/1f287a4e7b90
[2/4] KVM: x86/mmu: Dynamically allocate shadow MMU's hashed page list
https://github.com/kvm-x86/linux/commit/039ef33e2f93
[3/4] KVM: x86: Use kvzalloc() to allocate VM struct
https://github.com/kvm-x86/linux/commit/ac777fbf064f
[4/4] KVM: x86/mmu: Defer allocation of shadow MMU's hashed page list
https://github.com/kvm-x86/linux/commit/9c4fe6d1509b
Powered by blists - more mailing lists