i386/kvm: initialize struct at full before ioctl call
commit1f670a95b370651bcf3721aa0941d57e185478cf
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Tue, 30 Jul 2019 16:01:38 +0000 (30 19:01 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Aug 2019 15:26:19 +0000 (20 17:26 +0200)
treea3b79c4937d3df541fc6dc0a43607f1361ba86c5
parentf673174e3f62096f45b874fbe1cd469127d9c21c
i386/kvm: initialize struct at full before ioctl call

Not the whole structure is initialized before passing it to the KVM.
Reduce the number of Valgrind reports.

Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-Id: <1564502498-805893-4-git-send-email-andrey.shinkevich@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c