diff options
| author | Eduardo Habkost <ehabkost@redhat.com> | 2015-12-16 17:06:43 -0200 |
|---|---|---|
| committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-05-23 19:47:37 -0300 |
| commit | d1138251bf712cc076cdbbfd68aae3c8792bfcf9 (patch) | |
| tree | e423e3ae89f6d4da6365760d99c254360408565a /linux-user/main.c | |
| parent | d71b62a165b6af463f376bd398cfc1aec4e2f213 (diff) | |
| download | focaccia-qemu-d1138251bf712cc076cdbbfd68aae3c8792bfcf9.tar.gz focaccia-qemu-d1138251bf712cc076cdbbfd68aae3c8792bfcf9.zip | |
target-i386: kvm: Increase MSR_BUF_SIZE
We are dangerously close to the array limits in kvm_put_msrs() and kvm_get_msrs(): with the default mcg_cap configuration, we can set up to 148 MSRs in kvm_put_msrs(), and if we allow mcg_cap to be changed, we can write up to 236 MSRs. Use 4096 bytes for the buffer, that can hold 255 kvm_msr_entry structs. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'linux-user/main.c')
0 files changed, 0 insertions, 0 deletions