diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-10-01 15:28:44 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-02 17:06:40 +0100 |
| commit | 324397c85d1dde38e5d4805d8b79bfc549af4252 (patch) | |
| tree | 2ac3570021499d56e7b0960393e76a643ad8f404 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 85406921dc81ea7ccfb78c92cf79b0a4bcd2439c (diff) | |
KVM: arm64: Alloc pkvm_hyp_vm using pKVM heap allocator
Transition the allocation of the hypervisor VM state structure
(pkvm_hyp_vm) 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_vm during VM 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_init_vm, 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-14-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
