[PATCHv7 0/4] virtio_console: Add rproc_serial driver

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland sjur.brandel...@stericsson.com This patch-set introduces a new virtio type rproc_serial for communicating with remote processors over shared memory. The driver depends on the the remoteproc framework. As preparation for introducing rproc_serial I've done a refactoring of the

[PATCHv7 1/4] virtio_console: Free buffer if splice fails

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland sjur.brandel...@stericsson.com Free the allocated scatter list if send_pages fails in function port_splice_write. Signed-off-by: Sjur Brændeland sjur.brandel...@stericsson.com --- drivers/char/virtio_console.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

[PATCHv7 2/4] virtio_console: Use kmalloc instead of kzalloc

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland sjur.brandel...@stericsson.com Avoid the more cpu expensive kzalloc when allocating buffers. Originally kzalloc was intended for isolating the guest from the host by not sending random guest data to the host. But device isolation is not yet in place so kzalloc is not really

[PATCHv7 3/4] virtio_console: Merge struct buffer_token into struct port_buffer

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland sjur.brandel...@stericsson.com Refactoring the splice functionality by unifying the approach for sending scatter-lists and regular buffers. This simplifies buffer handling and reduces code size. Splice will now allocate a port_buffer and send_buf() and free_buf() can always

[PATCHv7 4/4] virtio_console: Add support for remoteproc serial

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland sjur.brandel...@stericsson.com Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds

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

2012-10-15 Thread Asias He
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 image, e.g. /dev/sda, /dev/ram0. We

Re: memory corruption in HYPERVISOR_physdev_op()

2012-10-15 Thread Ian Campbell
On Fri, 2012-09-14 at 14:24 +0300, Dan Carpenter wrote: Hi Jeremy, Jeremy doesn't work on Xen much any more. Adding Konrad and the xen-devel@ list. My static analyzer complains about potential memory corruption in HYPERVISOR_physdev_op() arch/x86/include/asm/xen/hypercall.h 389 static

Re: potential integer overflow in xenbus_file_write()

2012-10-15 Thread Ian Campbell
On Thu, 2012-09-13 at 19:00 +0300, Dan Carpenter wrote: Hi, Thanks Dan. I'm not sure anyone from Xen-land really monitors virtualization@. Adding xen-devel and Konrad. I was reading some code and had a question in xenbus_file_write() drivers/xen/xenbus/xenbus_dev_frontend.c 461

Re: [Xen-devel] memory corruption in HYPERVISOR_physdev_op()

2012-10-15 Thread Jan Beulich
On 15.10.12 at 12:27, Ian Campbell ian.campb...@citrix.com wrote: On Fri, 2012-09-14 at 14:24 +0300, Dan Carpenter wrote: My static analyzer complains about potential memory corruption in HYPERVISOR_physdev_op() arch/x86/include/asm/xen/hypercall.h 389 static inline int 390

Re: [Xen-devel] memory corruption in HYPERVISOR_physdev_op()

2012-10-15 Thread Ian Campbell
On Mon, 2012-10-15 at 11:48 +0100, Jan Beulich wrote: On 15.10.12 at 12:27, Ian Campbell ian.campb...@citrix.com wrote: On Fri, 2012-09-14 at 14:24 +0300, Dan Carpenter wrote: My static analyzer complains about potential memory corruption in HYPERVISOR_physdev_op()

Re: [Xen-devel] memory corruption in HYPERVISOR_physdev_op()

2012-10-15 Thread Jan Beulich
On 15.10.12 at 12:58, Ian Campbell ian.campb...@citrix.com wrote: On Mon, 2012-10-15 at 11:48 +0100, Jan Beulich wrote: On 15.10.12 at 12:27, Ian Campbell ian.campb...@citrix.com wrote: On Fri, 2012-09-14 at 14:24 +0300, Dan Carpenter wrote: My static analyzer complains about potential

Re: [PATCH] xen/xenbus: silence GCC warning

2012-10-15 Thread Konrad Rzeszutek Wilk
On Mon, Oct 15, 2012 at 12:03:09PM +0200, Paul Bolle wrote: Compiling xenbus_xs.o triggers this GCC warning: drivers/xen/xenbus/xenbus_xs.c:628:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes] Add the obvious and trivial fix. I already got the fix for this in

[PATCH for-3.7] vhost: fix mergeable bufs on BE hosts

2012-10-15 Thread Michael S. Tsirkin
We copy head count to a 16 bit field, this works by chance on LE but on BE guest gets 0. Fix it up. Signed-off-by: Michael S. Tsirkin m...@redhat.com Tested-by: Alexander Graf ag...@suse.de Cc: sta...@kernel.org --- drivers/vhost/net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 00/10] VMCI for Linux upstreaming

2012-10-15 Thread George Zhang
* * * In an effort to improve the out-of-the-box experience with Linux kernels for VMware users, VMware is working on readying the Virtual Machine Communication Interface (vmw_vmci) and VMCI Sockets (vmw_vsock) kernel modules for inclusion in the Linux kernel. The purpose of this post is to

[PATCH 02/10] VMCI: datagram implementation.

2012-10-15 Thread George Zhang
VMCI datagram Implements datagrams to allow data to be sent between host and guest. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_datagram.c | 522 + drivers/misc/vmw_vmci/vmci_datagram.h | 55 +++ 2 files changed, 577

[PATCH 01/10] VMCI: context implementation.

2012-10-15 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 | 1291 ++ drivers/misc/vmw_vmci/vmci_context.h | 177 + 2 files

[PATCH 03/10] VMCI: doorbell implementation.

2012-10-15 Thread George Zhang
VMCI doorbell code allows for notifcations between host and guest. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_doorbell.c | 674 + drivers/misc/vmw_vmci/vmci_doorbell.h | 53 +++ 2 files changed, 727 insertions(+), 0

[PATCH 05/10] VMCI: event handling implementation.

2012-10-15 Thread George Zhang
VMCI event code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: George Zhang georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_event.c | 415 drivers/misc/vmw_vmci/vmci_event.h | 25 ++ 2 files changed, 440

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

2012-10-15 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 | 162 + drivers/misc/vmw_vmci/vmci_handle_array.h | 46 2 files changed, 208

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

2012-10-15 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 | 237 + drivers/misc/vmw_vmci/vmci_resource.h | 59 2 files changed, 296 insertions(+), 0

[PATCH 09/10] VMCI: routing implementation.

2012-10-15 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 | 237 drivers/misc/vmw_vmci/vmci_route.h | 30

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

2012-10-15 Thread George Zhang
VMCI header 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-10-15 Thread George Zhang
* * * In an effort to improve the out-of-the-box experience with Linux kernels for VMware users, VMware is working on readying the Virtual Machine Communication Interface (vmw_vmci) and VMCI Sockets (VSOCK) (vmw_vsock) kernel modules for inclusion in the Linux kernel. The purpose of this post is

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

2012-10-15 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-10-15 Thread George Zhang
VSOCK control notifications for VMCI Stream Sockets protocol. Signed-off-by: George Zhang georgezh...@vmware.com --- net/vmw_vsock/notify.c | 1041 net/vmw_vsock/notify.h | 130 ++ 2 files changed, 1171 insertions(+), 0 deletions(-) create

[PATCH 4/6] VSOCK: statistics implementation.

2012-10-15 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 | 222 + 2 files changed, 259 insertions(+), 0 deletions(-) create mode 100644

[PATCH 5/6] VSOCK: utility functions.

2012-10-15 Thread George Zhang
VSOCK utility functions for Linux VSocket module. Signed-off-by: George Zhang georgezh...@vmware.com --- net/vmw_vsock/util.c | 694 ++ net/vmw_vsock/util.h | 331 2 files changed, 1025 insertions(+), 0 deletions(-)

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

2012-10-15 Thread George Zhang
VSOCK header files, Makefiles and Kconfig systems for Linux VSocket module. Signed-off-by: George Zhang georgezh...@vmware.com --- net/Kconfig |1 net/Makefile|1 net/vmw_vsock/Kconfig | 14 + net/vmw_vsock/Makefile