On 30/10/2014 10:36, Christian Borntraeger wrote: > struct kvm_msrs contains a pad field. Lets initialize this pad > field. A designated initializer seems not appropriate here, as > struct kvm_msrs is embedded in the msr_data structure. > > Signed-off-by: Christian Borntraeger <borntrae...@de.ibm.com>
What about this: msr_data.info = (struct kvm_msrs) { .nmsrs = n }; ? It would also be applicable to other uses of kvm_msrs. Also, you're missing one occurrence in kvm_put_msr_feature_control. Paolo