diff options
author | 2015-12-16 17:06:42 -0200 | |
---|---|---|
committer | 2016-05-23 19:47:37 -0300 | |
commit | d71b62a165b6af463f376bd398cfc1aec4e2f213 (patch) | |
tree | df812ef1df50f2340f2df90094ceebcfbfe8a174 /io/channel-buffer.c | |
parent | target-i386: Call cpu_exec_init() on realize (diff) | |
download | qemu-d71b62a165b6af463f376bd398cfc1aec4e2f213.tar.xz qemu-d71b62a165b6af463f376bd398cfc1aec4e2f213.zip |
target-i386: kvm: Allocate kvm_msrs struct once per VCPU
Instead of using 2400 bytes in the stack for 150 MSR entries in
kvm_get_msrs() and kvm_put_msrs(), allocate a buffer once for
each VCPU.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'io/channel-buffer.c')
0 files changed, 0 insertions, 0 deletions