diff options
author | Jason Wang <jasowang@redhat.com> | 2012-08-28 13:54:14 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-09-28 07:35:15 +0200 |
commit | 75a0a52be3c27b58654fbed2c8f2ff401482b9a4 (patch) | |
tree | 01c2815aa913b714f4d11869d56941717737646e /drivers/remoteproc | |
parent | virtio-ring: move queue_index to vring_virtqueue (diff) | |
download | linux-75a0a52be3c27b58654fbed2c8f2ff401482b9a4.tar.xz linux-75a0a52be3c27b58654fbed2c8f2ff401482b9a4.zip |
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