Re: [PATCH] xen/events: xen/events: fix RCU warning

2012-11-07 Thread 邱模炯
Thanks Konrad. You are right, commit 98ad1cc14 missed the xen case. And before merging, please modify the title a bit. one redundant xen/events there. xen/events: xen/events: fix RCU warning - xen/events: fix RCU warning Cc: sta...@kernel.org (at least to 3.0.y) ^^^-

Re: [PATCH 1/1] vhost-blk: Add vhost-blk support v4

2012-11-07 Thread Michael S. Tsirkin
On Mon, Oct 15, 2012 at 05:57:03PM +0800, Asias He wrote: vhost-blk is an in-kernel virito-blk device accelerator. Due to lack of proper in-kernel AIO interface, this version converts guest's I/O request to bio and use submit_bio() to submit I/O directly. So this version any supports raw

[PATCH -next] tcm_vhost: remove unused variable in vhost_scsi_allocate_cmd()

2012-11-07 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The variable se_sess is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn ---

[no subject]

2012-11-07 Thread sjur . brandeland
From 0ce16d6a0270daebd9972e94a834034a093228b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sjur=20Br=C3=A6ndeland?= sjur.brandel...@stericsson.com Date: Wed, 7 Nov 2012 12:20:07 +0100 Subject: [PATCH] virtio_console:Free buffers from out-queue upon close MIME-Version: 1.0 Content-Type: text/plain;

[PATCH resend] virtio_console: Free buffers from out-queue upon close

2012-11-07 Thread sjur . brandeland
From: Sjur Brændeland sjur.brandel...@stericsson.com Free pending output buffers from the virtio out-queue when host has acknowledged port_close. Also removed WARN_ON() in remove_port_data(). Signed-off-by: Sjur Brændeland sjur.brandel...@stericsson.com --- Resending, this time including a

[PATCH v2] virtio-mmio: Fix irq parsing in the command line

2012-11-07 Thread Pawel Moll
On 64-bit machines resource_size_t is a 64-bit value, while sscanf() format for this argument was defined as %u. Fixed by using an intermediate local value of a known length. Also added cleaned up the resource creation and adde extra comments to make the parameters parsing easier to follow.

[PATCH 00/12] VMCI for Linux upstreaming

2012-11-07 Thread George Zhang
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware. Summary of changes: - Fix some new sparse issues. - Remove some unneeded casts for VMCI. - add more __user annotations for VMCI. - Remove kernel version-specific bits from

[PATCH 01/12] VMCI: context implementation.

2012-11-07 Thread George Zhang
VMCI Context code maintains state for vmci and allows the driver to communicate with multiple VMs. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_context.c | 1246 ++ drivers/misc/vmw_vmci/vmci_context.h | 183 + 2 files

[PATCH 04/12] VMCI: device driver implementaton.

2012-11-07 Thread George Zhang
VMCI driver code implementes both the host and guest personalities of the VMCI driver. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_driver.c | 116 +++ drivers/misc/vmw_vmci/vmci_driver.h | 50 +++ 2 files

[PATCH 06/12] VMCI: handle array implementation.

2012-11-07 Thread George Zhang
VMCI handle code adds support for dynamic arrays that will grow if they need to. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_handle_array.c | 142 + drivers/misc/vmw_vmci/vmci_handle_array.h | 52 +++ 2 files changed,

[PATCH 08/12] VMCI: resource object implementation.

2012-11-07 Thread George Zhang
VMCI resource tracks all used resources within the vmci code. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_resource.c | 232 + drivers/misc/vmw_vmci/vmci_resource.h | 59 2 files changed, 291 insertions(+), 0

[PATCH 09/12] VMCI: routing implementation.

2012-11-07 Thread George Zhang
VMCI routing code is responsible for routing between various hosts/guests as well as routing in nested scenarios. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_route.c | 229 drivers/misc/vmw_vmci/vmci_route.h | 30

[PATCH 10/12] VMCI: guest side driver implementation.

2012-11-07 Thread George Zhang
VMCI guest side driver code implementation. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_guest.c | 762 1 files changed, 762 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_guest.c diff

[PATCH 11/12] VMCI: host side driver implementation.

2012-11-07 Thread George Zhang
VMCI host side driver code implementation. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_host.c | 1033 + 1 files changed, 1033 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_host.c diff --git

[PATCH 12/12] VMCI: Some header and config files.

2012-11-07 Thread George Zhang
VMCI head config patch Adds all the necessary files to enable building of the VMCI module with the Linux Makefiles and Kconfig systems. Also adds the header files used for building modules against the driver. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/Kconfig

[PATCH 0/6] VSOCK for Linux upstreaming

2012-11-07 Thread George Zhang
* * * This series of VSOCK linux upstreaming patches include latest udpate from VMware. Summary of changes: - Fix some new sparse issues. - Remove some unneeded casts for VMCI. - add more __user annotations for VMCI. - Remove kernel version-specific bits from

[PATCH 2/6] VSOCK: vsock address implementaion.

2012-11-07 Thread George Zhang
VSOCK linux address code implementation. Signed-off-by: George Zhang georgezh...@vmware.com --- net/vmw_vsock/vsock_addr.c | 264 net/vmw_vsock/vsock_addr.h | 40 +++ 2 files changed, 304 insertions(+), 0 deletions(-) create mode 100644

[PATCH 3/6] VSOCK: notification implementation.

2012-11-07 Thread George Zhang
VSOCK control notifications for VMCI Stream Sockets protocol. Signed-off-by: George Zhang georgezh...@vmware.com --- net/vmw_vsock/notify.c | 984 net/vmw_vsock/notify.h | 130 ++ 2 files changed, 1114 insertions(+), 0 deletions(-) create

[PATCH 4/6] VSOCK: statistics implementation.

2012-11-07 Thread George Zhang
VSOCK stats for VMCI Stream Sockets protocol. Signed-off-by: George Zhang georgezh...@vmware.com --- net/vmw_vsock/stats.c | 37 net/vmw_vsock/stats.h | 219 + 2 files changed, 256 insertions(+), 0 deletions(-) create mode 100644

[PATCH 5/6] VSOCK: utility functions.

2012-11-07 Thread George Zhang
VSOCK utility functions for Linux VSocket module. Signed-off-by: George Zhang georgezh...@vmware.com --- net/vmw_vsock/util.c | 626 ++ net/vmw_vsock/util.h | 312 + 2 files changed, 938 insertions(+), 0 deletions(-)

[PATCH 6/6] VSOCK: header and config files.

2012-11-07 Thread George Zhang
VSOCK header files, Makefiles and Kconfig systems for Linux VSocket module. Signed-off-by: George Zhang georgezh...@vmware.com --- include/linux/socket.h |4 net/Kconfig |1 net/Makefile|1 net/vmw_vsock/Kconfig

Re: [PATCH v11 1/7] mm: adjust address_space_operations.migratepage() return code

2012-11-07 Thread Andrew Morton
On Wed, 7 Nov 2012 01:05:48 -0200 Rafael Aquini aqu...@redhat.com wrote: This patch introduces MIGRATEPAGE_SUCCESS as the default return code for address_space_operations.migratepage() method and documents the expected return code for the same method in failure cases. I hit a large number of

Re: [PATCH v11 5/7] virtio_balloon: introduce migration primitives to balloon pages

2012-11-07 Thread Andrew Morton
On Wed, 7 Nov 2012 01:05:52 -0200 Rafael Aquini aqu...@redhat.com wrote: Memory fragmentation introduced by ballooning might reduce significantly the number of 2MB contiguous memory blocks that can be used within a guest, thus imposing performance penalties associated with the reduced number

Re: [PATCH v11 3/7] mm: introduce a common interface for balloon pages mobility

2012-11-07 Thread Andrew Morton
On Wed, 7 Nov 2012 01:05:50 -0200 Rafael Aquini aqu...@redhat.com wrote: Memory fragmentation introduced by ballooning might reduce significantly the number of 2MB contiguous memory blocks that can be used within a guest, thus imposing performance penalties associated with the reduced number

Re: [PATCH v11 3/7] mm: introduce a common interface for balloon pages mobility

2012-11-07 Thread Rafael Aquini
On Wed, Nov 07, 2012 at 01:02:07PM -0800, Andrew Morton wrote: On Wed, 7 Nov 2012 01:05:50 -0200 Rafael Aquini aqu...@redhat.com wrote: Memory fragmentation introduced by ballooning might reduce significantly the number of 2MB contiguous memory blocks that can be used within a guest,

Re: [PATCH v11 1/7] mm: adjust address_space_operations.migratepage() return code

2012-11-07 Thread Rafael Aquini
On Wed, Nov 07, 2012 at 11:56:10AM -0800, Andrew Morton wrote: On Wed, 7 Nov 2012 01:05:48 -0200 Rafael Aquini aqu...@redhat.com wrote: This patch introduces MIGRATEPAGE_SUCCESS as the default return code for address_space_operations.migratepage() method and documents the expected

Re: [PATCH v11 5/7] virtio_balloon: introduce migration primitives to balloon pages

2012-11-07 Thread Rafael Aquini
On Wed, Nov 07, 2012 at 11:58:10AM -0800, Andrew Morton wrote: On Wed, 7 Nov 2012 01:05:52 -0200 Rafael Aquini aqu...@redhat.com wrote: Memory fragmentation introduced by ballooning might reduce significantly the number of 2MB contiguous memory blocks that can be used within a guest,

Re: [PATCH v11 5/7] virtio_balloon: introduce migration primitives to balloon pages

2012-11-07 Thread Rusty Russell
Rafael Aquini aqu...@redhat.com writes: + * virtballoon_migratepage - perform the balloon page migration on behalf of + *a compation thread. (called under page lock) + if (!mutex_trylock(vb-balloon_lock)) + return -EAGAIN; Erk, OK... + /*

Re: [PATCH resend] virtio_console: Free buffers from out-queue upon close

2012-11-07 Thread Rusty Russell
sjur.brandel...@stericsson.com writes: From: Sjur Brændeland sjur.brandel...@stericsson.com Free pending output buffers from the virtio out-queue when host has acknowledged port_close. Also removed WARN_ON() in remove_port_data(). Signed-off-by: Sjur Brændeland

Re: [PATCH v2] virtio-mmio: Fix irq parsing in the command line

2012-11-07 Thread Rusty Russell
Pawel Moll pawel.m...@arm.com writes: On 64-bit machines resource_size_t is a 64-bit value, while sscanf() format for this argument was defined as %u. Fixed by using an intermediate local value of a known length. Actually, on 32-bit machines, too (eg. x86 with PAE). Otherwise we'd just

Re: [PATCH 1/1] vhost-blk: Add vhost-blk support v4

2012-11-07 Thread Rusty Russell
Asias He as...@redhat.com writes: vhost-blk is an in-kernel virito-blk device accelerator. Due to lack of proper in-kernel AIO interface, this version converts guest's I/O request to bio and use submit_bio() to submit I/O directly. So this version any supports raw block device as guest's disk

Re: [PATCH] virtio-mmio: Fix irq parsing in command line parameter

2012-11-07 Thread Rusty Russell
Lee Jones lee.jo...@linaro.org writes: On Mon, 05 Nov 2012, Pawel Moll wrote: On 64-bit machines resource_size_t is a 64-bit value, while sscanf() format for this argument was defined as %u. Fixed by using an intermediate local value of a known length. Also added cleaned up the resource

Re: [PATCH v11 5/7] virtio_balloon: introduce migration primitives to balloon pages

2012-11-07 Thread Andrew Morton
On Thu, 08 Nov 2012 09:32:18 +1030 Rusty Russell ru...@rustcorp.com.au wrote: Rafael Aquini aqu...@redhat.com writes: + * virtballoon_migratepage - perform the balloon page migration on behalf of + * a compation thread. (called under page lock) + if

Re: [PATCH v11 5/7] virtio_balloon: introduce migration primitives to balloon pages

2012-11-07 Thread Rafael Aquini
On Wed, Nov 07, 2012 at 04:11:46PM -0800, Andrew Morton wrote: On Thu, 08 Nov 2012 09:32:18 +1030 Rusty Russell ru...@rustcorp.com.au wrote: Rafael Aquini aqu...@redhat.com writes: + * virtballoon_migratepage - perform the balloon page migration on behalf of + *

Re: [PATCH v11 5/7] virtio_balloon: introduce migration primitives to balloon pages

2012-11-07 Thread Rafael Aquini
On Thu, Nov 08, 2012 at 09:32:18AM +1030, Rusty Russell wrote: The first one can be delayed, the second one can be delayed if the host didn't ask for VIRTIO_BALLOON_F_MUST_TELL_HOST (qemu doesn't). We could implement a proper request queue for these, and return -EAGAIN if the queue fills.

Re: [PATCH 1/1] vhost-blk: Add vhost-blk support v4

2012-11-07 Thread Asias He
Hello Rusty, On Thu, Nov 8, 2012 at 7:47 AM, Rusty Russell ru...@rustcorp.com.au wrote: Asias He as...@redhat.com writes: vhost-blk is an in-kernel virito-blk device accelerator. Due to lack of proper in-kernel AIO interface, this version converts guest's I/O request to bio and use