diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-10-01 15:28:45 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-02 17:06:40 +0100 |
| commit | e188a901e4bc585a170ee4235c6b55ebcf07b592 (patch) | |
| tree | 9df9fea0d9ee3161cf5f1ae288085129d7f9c00d /tools/perf/scripts/python | |
| parent | 324397c85d1dde38e5d4805d8b79bfc549af4252 (diff) | |
KVM: arm64: Alloc pkvm_hyp_vcpu using pKVM heap allocator
Transition the allocation of the hypervisor vCPU state structure
(pkvm_hyp_vcpu) from the host to the hypervisor using the new pKVM heap
allocator (hyp_alloc()).
Previously, the host was responsible for calculating the size of,
allocating, and donating memory for pkvm_hyp_vcpu during vCPU creation.
With the heap allocator in place, the hypervisor now allocates this
structure dynamically at EL2.
Use the pkvm_call_hyp_req() wrapper in the host to invoke
__pkvm_create_hyp_vcpu, which automatically handles any top-up requests
if the hypervisor runs out of heap memory during allocation.
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261001142849.3367614-15-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
