valgrind/i386: avoid false positives on KVM_SET_VCPU_EVENTS ioctl
struct kvm_vcpu_events contains reserved fields. Let's use a designated initializer to avoid false positives in valgrind. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d19ae73e98
commit
076796f8fd
|
@ -1884,7 +1884,7 @@ static int kvm_put_apic(X86CPU *cpu)
|
||||||
static int kvm_put_vcpu_events(X86CPU *cpu, int level)
|
static int kvm_put_vcpu_events(X86CPU *cpu, int level)
|
||||||
{
|
{
|
||||||
CPUX86State *env = &cpu->env;
|
CPUX86State *env = &cpu->env;
|
||||||
struct kvm_vcpu_events events;
|
struct kvm_vcpu_events events = {};
|
||||||
|
|
||||||
if (!kvm_has_vcpu_events()) {
|
if (!kvm_has_vcpu_events()) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue