summaryrefslogtreecommitdiffstats
path: root/drivers/uio/uio_aec.c
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/uio/uio_aec.c
parent17bb6d40880d4178f5f8a75900ed8c9ff47d3fb2 (diff)
downloadop-kernel-dev-75a0a52be3c27b58654fbed2c8f2ff401482b9a4.zip
op-kernel-dev-75a0a52be3c27b58654fbed2c8f2ff401482b9a4.tar.gz
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/uio/uio_aec.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud