target-i386: kvm: Simplify MSR array construction
commit9c600a84544dfedff238f6e0cfac0d88c58654c0
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 16 Dec 2015 19:06:44 +0000 (16 17:06 -0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 23 May 2016 22:47:37 +0000 (23 19:47 -0300)
tree1dfd527ce52826fa704152a331651fe81b4630cb
parentd1138251bf712cc076cdbbfd68aae3c8792bfcf9
target-i386: kvm: Simplify MSR array construction

Add a helper function that appends new entries to the MSR buffer
and checks for the buffer size limit.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/kvm.c