Re: [PATCH RFC 0/8] virtio: add guest MSI-X support

2009-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2009 at 02:56:15PM -0500, Anthony Liguori wrote: > Michael S. Tsirkin wrote: >> So to map vq 0 to vector 0, vq 1 to vector 1 and vq 2 to vector 2 the driver >> would do: >> >> struct virtio_interrupt_mapping mapping[3] = { {0, 0}, {1, 1}, {2, 2} }; >> vec = map_vqs_to_interrupt(dev

Re: [PATCH RFC 0/8] virtio: add guest MSI-X support

2009-04-28 Thread Anthony Liguori
Michael S. Tsirkin wrote: > So to map vq 0 to vector 0, vq 1 to vector 1 and vq 2 to vector 2 the driver > would do: > > struct virtio_interrupt_mapping mapping[3] = { {0, 0}, {1, 1}, {2, 2} }; > vec = map_vqs_to_interrupt(dev, mapping, 3); > if (vec) { > error handling > } > > and then find_vq

Re: [PATCH RFC 0/8] virtio: add guest MSI-X support

2009-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2009 at 08:51:08PM +0300, Avi Kivity wrote: > Michael S. Tsirkin wrote: >> This does not work for MSIX - in linux, you must map all MSI-X entries >> to interrupt vectors upfront. >> > > What? that's very inflexible. > > Can you point me at the code? See pci_enable_msix in inclu

Re: [PATCH RFC 0/8] virtio: add guest MSI-X support

2009-04-28 Thread Avi Kivity
Michael S. Tsirkin wrote: > This does not work for MSIX - in linux, you must map all MSI-X entries > to interrupt vectors upfront. > What? that's very inflexible. Can you point me at the code? > So what I see is transports providing something like: > > struct virtio_interrupt_mapping { >

Re: [PATCH RFC 0/8] virtio: add guest MSI-X support

2009-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2009 at 09:47:14AM +0300, Avi Kivity wrote: > Michael S. Tsirkin wrote: >>> That saves us the new API (at the expense of a lot more code, but >>> with added flexibility). >>> >> >> So we'll probably need to rename request_vqs to request_vectors, >> but we probably still need

[PATCH 7/7] blkio-cgroup: Fast page tracking

2009-04-28 Thread Ryo Tsuruta
This is an extra patch which reduces the overhead of IO tracking but increases the size of struct page_cgroup. Based on 2.6.30-rc3-git3 Signed-off-by: Hirokazu Takahashi Signed-off-by: Ryo Tsuruta --- include/linux/biotrack.h|5 - include/linux/page_cgroup.h | 26 mm/biotrac

[PATCH 6/7] blkio-cgroup: Add a cgroup support to dm-ioband

2009-04-28 Thread Ryo Tsuruta
With this patch, dm-ioband can work with the blkio-cgroup. Based on 2.6.30-rc3-git3 Signed-off-by: Hirokazu Takahashi Signed-off-by: Ryo Tsuruta --- drivers/md/dm-ioband-type.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) Index: linux-2.6.30-rc3-git3/drivers/md/dm-ioband

[PATCH 5/7] blkio-cgroup: Page tracking hooks

2009-04-28 Thread Ryo Tsuruta
This patch contains several hooks that let the blkio-cgroup framework to know which blkio-cgroup is the owner of a page before starting I/O against the page. Based on 2.6.30-rc3-git3 Signed-off-by: Hirokazu Takahashi Signed-off-by: Ryo Tsuruta --- fs/buffer.c |2 ++ fs/direct-io.c

[PATCH 4/7] blkio-cgroup: The body of blkio-cgroup

2009-04-28 Thread Ryo Tsuruta
The body of bio-cgroup. Based on 2.6.30-rc3-git3 Signed-off-by: Hirokazu Takahashi Signed-off-by: Ryo Tsuruta --- include/linux/biotrack.h | 97 + include/linux/cgroup_subsys.h |6 include/linux/page_cgroup.h | 23 +++ init/Kconfig | 13 + mm/Make

[PATCH 3/7] blkio-cgroup: Refactoring io-context initialization

2009-04-28 Thread Ryo Tsuruta
This patch refactors io_context initialization. Based on 2.6.30-rc3-git3 Signed-off-by: Hirokazu Takahashi Signed-off-by: Ryo Tsuruta --- block/blk-ioc.c | 30 +- include/linux/iocontext.h |1 + 2 files changed, 18 insertions(+), 13 deletions(-) Ind

[PATCH 2/7] blkio-cgroup: The new page_cgroup framework

2009-04-28 Thread Ryo Tsuruta
This patch makes the page_cgroup framework be able to be used even if the compile option of the cgroup memory controller is off. So blkio-cgroup can use this framework without the memory controller. Based on 2.6.30-rc3-git3 Signed-off-by: Hirokazu Takahashi Signed-off-by: Ryo Tsuruta --- inclu

[PATCH 1/7] blkio-cgroup: Introduction

2009-04-28 Thread Ryo Tsuruta
Hi all, This is a new release of blkio-cgroup which provides an IO tracking mechanism. You can also download this series of patches from http://people.valinux.co.jp/~ryov/blkio-cgroup/ Changes from the previous release = - bio-cgroup renamed to blkio-cgroup. - Use