[PATCH v3] IO: Intelligent device lookup on bus

2011-07-24 Thread Sasha Levin
Currently the method of dealing with an IO operation on a bus (PIO/MMIO) is to call the read or write callback for each device registered on the bus until we find a device which handles it. Since the number of devices on a bus can be significant due to ioeventfds and coalesced MMIO zones, this

Re: [PATCH v3] pci: correct pci config size default for cap version 2 endpoints

2011-07-24 Thread Michael S. Tsirkin
On Fri, Jul 22, 2011 at 02:35:47PM -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: On Fri, 2011-07-22 at 14:24 -0700, Chris Wright wrote: * Donald Dutile (ddut...@redhat.com) wrote: diff --git a/hw/device-assignment.c b/hw/device-assignment.c index

Re: [PATCH V2] device-assignment pci: correct pci config size default for cap version 2 endpoints

2011-07-24 Thread Michael S. Tsirkin
On Thu, Jul 21, 2011 at 11:02:53AM -0600, Alex Williamson wrote: This is crazy, why would we only test this for PCI_CAP_ID_EXP? If the test is going to go in device-assignment, we need to wrap pci_add_capability and do it for all callers. However, maybe we can get MST to take it in

Re: [PATCH v3] pci: correct pci config size default for cap version 2 endpoints

2011-07-24 Thread Michael S. Tsirkin
On Sun, Jul 24, 2011 at 11:12:44AM +0300, Michael S. Tsirkin wrote: On Fri, Jul 22, 2011 at 02:35:47PM -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: On Fri, 2011-07-22 at 14:24 -0700, Chris Wright wrote: * Donald Dutile (ddut...@redhat.com) wrote:

Re: [PATCH v3] pci: correct pci config size default for cap version 2 endpoints

2011-07-24 Thread Michael S. Tsirkin
On Sun, Jul 24, 2011 at 11:41:10AM +0300, Michael S. Tsirkin wrote: On Sun, Jul 24, 2011 at 11:12:44AM +0300, Michael S. Tsirkin wrote: On Fri, Jul 22, 2011 at 02:35:47PM -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: On Fri, 2011-07-22 at 14:24 -0700,

Re: [PATCH] cpu hotplug issue

2011-07-24 Thread Gleb Natapov
On Fri, Jul 22, 2011 at 12:56:58PM +0200, Jan Kiszka wrote: On 2011-07-21 14:45, Gleb Natapov wrote: On Thu, Jul 21, 2011 at 02:51:18PM +0300, Gleb Natapov wrote: Jan can you look at this please? I can't promise to do debugging myself. Also, as I never succeeded in getting anything

[GIT PULL] KVM updates for the Linux 3.1 merge window

2011-07-24 Thread Avi Kivity
Linus, please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-updates/3.1 to get the KVM updates for the current merge window. Major features include powerpc hypervisor-mode support and an initial version of VMX nesting. Other changes include steal time support (both host and

Re: [PATCH] cpu hotplug issue

2011-07-24 Thread Jan Kiszka
On 2011-07-24 13:56, Gleb Natapov wrote: On Fri, Jul 22, 2011 at 12:56:58PM +0200, Jan Kiszka wrote: On 2011-07-21 14:45, Gleb Natapov wrote: On Thu, Jul 21, 2011 at 02:51:18PM +0300, Gleb Natapov wrote: Jan can you look at this please? I can't promise to do debugging myself. Also, as I

[RFC/PATCH] kvm tools, qcow: Add support for writing to zero refcount clusters

2011-07-24 Thread Pekka Enberg
This patch adds support for writing to zero refcount clusters. Refcount blocks are cached in like L2 tables and flushed upon VIRTIO_BLK_T_FLUSH and when evicted from the LRU cache. With this patch applied, 'qemu-img check' no longer complains about referenced clusters with zero reference count

Re: [GIT PULL] Native Linux KVM tool for 3.1

2011-07-24 Thread Jan Kiszka
On 2011-07-24 22:37, Pekka Enberg wrote: Hi Linus, Please consider pulling from ssh://master.kernel.org/pub/scm/linux/kernel/git/penberg/linux.git kvm-tool-for-linus to merge the Native Linux KVM tool to Linux 3.1. [ The changes to 9p headers were already merged but show up in the

Re: [PATCH net-next] skbuff: clear tx zero-copy flag

2011-07-24 Thread Herbert Xu
Shirley Ma mashi...@us.ibm.com wrote: This patch clears tx zero-copy flag as needed. Sign-off-by: Shirley Ma x...@us.ibm.com I think we also need to copy and clear this flag on the splice read path as that takes a direct page reference. I hope there isn't any other path that does this.

Re: [GIT PULL] Native Linux KVM tool for 3.1

2011-07-24 Thread Anthony Liguori
On 07/24/2011 03:37 PM, Pekka Enberg wrote: Hi Linus, Please consider pulling from ssh://master.kernel.org/pub/scm/linux/kernel/git/penberg/linux.git kvm-tool-for-linus to merge the Native Linux KVM tool to Linux 3.1. [ The changes to 9p headers were already merged but show up in the pull

[PATCH v1 0/1] The draft of the codes for QEMU disk I/O limits

2011-07-24 Thread Zhi Yong Wu
The main goal of the patch is to effectively cap the disk I/O speed or counts of one single VM. It is only one draft, so it unavoidably has some drawbacks, if you catch them, please let me know. The patch will mainly introduce one global timer and one block queue for each I/O limits enabled

[PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-24 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu zwu.ker...@gmail.com --- Makefile.objs |2 +- block.c | 248 + block.h |1 - block/blk-queue.c | 99 + block/blk-queue.h | 73 block_int.h

Re: [PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-24 Thread Zhi Yong Wu
On Fri, Jul 22, 2011 at 6:54 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +static void bdrv_block_timer(void *opaque) +{ +    BlockDriverState *bs = opaque; +    BlockQueue *queue = bs-block_queue; +    uint64_t

Re: [PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-24 Thread Stefan Hajnoczi
On Mon, Jul 25, 2011 at 5:25 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Fri, Jul 22, 2011 at 6:54 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +static void bdrv_block_timer(void *opaque) +{ +    

Re: [PATCH v5 5/5] KVM: PPC: e500: MMU API

2011-07-24 Thread Alexander Graf
On 19.07.2011, at 13:20, Johannes Weiner wrote: On Tue, Jul 19, 2011 at 10:51:40AM +0200, Alexander Graf wrote: On 19.07.2011, at 10:36, Johannes Weiner wrote: On Mon, Jul 18, 2011 at 11:44:02PM +0200, Alexander Graf wrote: On 18.07.2011, at 20:08, Scott Wood wrote: On Mon, 18 Jul