[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <878vcojbbf.fsf@rustcorp.com.au>
Date: Thu, 06 Sep 2012 09:02:04 +0930
From: Rusty Russell <rusty@...tcorp.com.au>
To: Paolo Bonzini <pbonzini@...hat.com>, linux-kernel@...r.kernel.org
Cc: linux-scsi@...r.kernel.org, kvm@...r.kernel.org,
jasowang@...hat.com, mst@...hat.com,
virtualization@...ts.linux-foundation.org
Subject: Re: [PATCH 2/5] virtio: introduce an API to set affinity for a virtqueue
Paolo Bonzini <pbonzini@...hat.com> writes:
> From: Jason Wang <jasowang@...hat.com>
>
> 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@...hat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@...hat.com>
Applied, thanks.
Acked-by: Rusty Russell <rusty@...tcorp.com.au>
Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists