Re: [Qemu-devel] [PATCH 3/3] i386/kvm: initialize struct at full before ioctl call

Paolo Bonzini
2019-07-30T19:22:22Z

On 30/07/19 18:44, Philippe Mathieu-Daudé wrote:
>> +++ b/target/i386/kvm.c
>> @@ -190,6 +190,7 @@ static int kvm_get_tsc(CPUState *cs)
>> return 0;
>> }
>>
>> + memset(&msr_data, 0, sizeof(msr_data));
> I wonder the overhead of this one...
>

There is just one MSR in the struct so it is okay.

Paolo