diff options
author | Marc Orr <[email protected]> | 2018-05-15 04:37:37 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2018-06-01 19:18:26 +0200 |
commit | d1e5b0e98ea27b4f17871dc4e8ea4b0447e35221 (patch) | |
tree | b0e6a402dc55ae6809456f40b690360cc8b687ca /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 1499fa809e9e6713952ef84a7e9d51606881681f (diff) |
kvm: Make VM ioctl do valloc for some archs
The kvm struct has been bloating. For example, it's tens of kilo-bytes
for x86, which turns out to be a large amount of memory to allocate
contiguously via kzalloc. Thus, this patch does the following:
1. Uses architecture-specific routines to allocate the kvm struct via
vzalloc for x86.
2. Switches arm to __KVM_HAVE_ARCH_VM_ALLOC so that it can use vzalloc
when has_vhe() is true.
Other architectures continue to default to kalloc, as they have a
dependency on kalloc or have a small-enough struct kvm.
Signed-off-by: Marc Orr <[email protected]>
Reviewed-by: Marc Zyngier <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions