diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2013-06-04 14:52:32 +0300 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-03 10:38:19 +0200 |
| commit | 0fbc20740342713f282b118b4a446c4c43df3f4a (patch) | |
| tree | 4211adac6ccd8cd1bf7160acb56bbcdf1970bc3a /hw/net/cadence_gem.c | |
| parent | fa4ba923bd539647ace9d70d226a848bd6a89dac (diff) | |
| download | focaccia-qemu-0fbc20740342713f282b118b4a446c4c43df3f4a.tar.gz focaccia-qemu-0fbc20740342713f282b118b4a446c4c43df3f4a.zip | |
kvm: zero-initialize KVM_SET_GSI_ROUTING input
kvm_add_routing_entry makes an attempt to zero-initialize any new routing entry. However, it fails to initialize padding within the u field of the structure kvm_irq_routing_entry. Other functions like kvm_irqchip_update_msi_route also fail to initialize the padding field in kvm_irq_routing_entry. It's better to just make sure all input is initialized. Once it is, we can also drop complex field by field assignment and just do the simple *a = *b to update a route entry. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'hw/net/cadence_gem.c')
0 files changed, 0 insertions, 0 deletions