diff options
author | Sean Christopherson <[email protected]> | 2021-04-06 15:49:52 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-04-21 12:20:07 -0400 |
commit | 238eca821cee90e91139da84ef4f38c74d7cf0d9 (patch) | |
tree | 559925f1aabb8ce350b21d5e7437390adedfdb29 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a402e35177797d736dd3dc2d8537c1c9ac90d54a (diff) |
KVM: SVM: Allocate SEV command structures on local stack
Use the local stack to "allocate" the structures used to communicate with
the PSP. The largest struct used by KVM, sev_data_launch_secret, clocks
in at 52 bytes, well within the realm of reasonable stack usage. The
smallest structs are a mere 4 bytes, i.e. the pointer for the allocation
is larger than the allocation itself.
Now that the PSP driver plays nice with vmalloc pointers, putting the
data on a virtually mapped stack (CONFIG_VMAP_STACK=y) will not cause
explosions.
Cc: Brijesh Singh <[email protected]>
Cc: Tom Lendacky <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Brijesh Singh <[email protected]>
Acked-by: Tom Lendacky <[email protected]>
[Apply same treatment to PSP migration commands. - Paolo]
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions