summaryrefslogtreecommitdiff
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2012-08-28 13:54:14 +0200
committerRusty Russell <rusty@rustcorp.com.au>2012-09-28 15:05:15 +0930
commit75a0a52be3c27b58654fbed2c8f2ff401482b9a4 (patch)
tree01c2815aa913b714f4d11869d56941717737646e /drivers/remoteproc
parent17bb6d40880d4178f5f8a75900ed8c9ff47d3fb2 (diff)
virtio: introduce an API to set affinity for a virtqueue
Sometimes, virtio device need to configure irq affinity hint to maximize the performance. Instead of just exposing the irq of a virtqueue, this patch introduce an API to set the affinity for a virtqueue. The api is best-effort, the affinity hint may not be set as expected due to platform support, irq sharing or irq type. Currently, only pci method were implemented and we set the affinity according to: - if device uses INTX, we just ignore the request - if device has per vq vector, we force the affinity hint - if the virtqueues share MSI, make the affinity OR over all affinities requested Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/remoteproc')
0 files changed, 0 insertions, 0 deletions