]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/kvm.c
kvm-irqchip: simplify kvm_irqchip_add_msi_route
authorPeter Xu <peterx@redhat.com>
Thu, 14 Jul 2016 05:56:30 +0000 (13:56 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Jul 2016 17:44:18 +0000 (20:44 +0300)
commitd1f6af6a17a66f58c238e1c26b928cf71c0c11da
tree5ba4a4d466df886dce2c0857ce92cfb3620ffbb9
parentede9c94acf6cd1968de4188c0228b714ab871a86
kvm-irqchip: simplify kvm_irqchip_add_msi_route

Changing the original MSIMessage parameter in kvm_irqchip_add_msi_route
into the vector number. Vector index provides more information than the
MSIMessage, we can retrieve the MSIMessage using the vector easily. This
will avoid fetching MSIMessage every time before adding MSI routes.

Meanwhile, the vector info will be used in the coming patches to further
enable gsi route update notifications.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/kvm/pci-assign.c
hw/misc/ivshmem.c
hw/vfio/pci.c
hw/virtio/virtio-pci.c
include/sysemu/kvm.h
kvm-all.c
kvm-stub.c
target-i386/kvm.c