diff options
author | Shmulik Ladkani | 2015-06-16 10:24:39 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2015-06-19 12:17:49 +0200 |
commit | 74de5504fd063019433ec0746105da774ede790d (patch) | |
tree | 9db5bf51507079300aa0a5f10bad08d32b6bc37f /hw/net/virtio-net.c | |
parent | hw/core: rebase sysbus_get_fw_dev_path() to g_strdup_printf() (diff) | |
download | qemu-74de5504fd063019433ec0746105da774ede790d.tar.gz qemu-74de5504fd063019433ec0746105da774ede790d.tar.xz qemu-74de5504fd063019433ec0746105da774ede790d.zip |
pci: Don't register a specialized 'config_write' if default behavior is intended
Few devices have their specialized 'config_write' methods which simply
call 'pci_default_write_config' followed by a 'msix_write_config' or
'msi_write_config' calls, using exact same arguments.
This is unnecessary as 'pci_default_write_config' already invokes
'msi_write_config' and 'msix_write_config'.
Also, since 'pci_default_write_config' is the default 'config_write'
handler, we can simply avoid the registration of these specialized
versions.
Cc: Leonid Shatz <leonid.shatz@ravellosystems.com>
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions