diff options
author | 2018-11-06 14:53:56 -0800 | |
---|---|---|
committer | 2018-12-14 18:00:08 +0100 | |
commit | b666a4b697397f8492dc11a2a1877557d3e0af56 (patch) | |
tree | d79fd9e812f8b3fc6adf74fd587de062a062ca6b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kvm: x86: Use task structs fpu field for user (diff) | |
download | linux-dev-b666a4b697397f8492dc11a2a1877557d3e0af56.tar.xz linux-dev-b666a4b697397f8492dc11a2a1877557d3e0af56.zip |
kvm: x86: Dynamically allocate guest_fpu
Previously, the guest_fpu field was embedded in the kvm_vcpu_arch
struct. Unfortunately, the field is quite large, (e.g., 4352 bytes on my
current setup). This bloats the kvm_vcpu_arch struct for x86 into an
order 3 memory allocation, which can become a problem on overcommitted
machines. Thus, this patch moves the fpu state outside of the
kvm_vcpu_arch struct.
With this patch applied, the kvm_vcpu_arch struct is reduced to 15168
bytes for vmx on my setup when building the kernel with kvmconfig.
Suggested-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Marc Orr <marcorr@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions