Re: [PATCH] fix kvmclock bug

2010-09-24 Thread Jan Kiszka
Am 19.09.2010 02:15, Zachary Amsden wrote: For CPUs with unstable TSC, we null time offset between not just VCPU switches, but all preemptions of the kvm thread. This makes a bug much more likely where the kvmclock values are updated before a successful exit from virt, causing an underflow.

Re: [Autotest] [PATCH 07/18] KVM test: Add a subtest jumbo

2010-09-24 Thread pradeep
On Tue, 14 Sep 2010 19:25:32 -0300 Lucas Meneghel Rodrigues l...@redhat.com wrote: +session.close() +logging.info(Removing the temporary ARP entry) +utils.run(arp -d %s -i %s % (ip, ifname)) Hi Lucas Tried different combinations for this jumbo test case. it dint

[PATCH 1/2] make-release: don't use --tmpdir mktemp option

2010-09-24 Thread Eduardo Habkost
This allows the script to work on older systems, where 'mktemp --tmpdir' is not available. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- kvm/scripts/make-release |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kvm/scripts/make-release b/kvm/scripts/make-release

[PATCH 2/2] make-release: don't use --mtime and --transform tar options

2010-09-24 Thread Eduardo Habkost
Those options are not available on older systems. Instead of --transform, just create the file inside the expected directory. Instead of --mtime, use 'touch' to set file mtime before running tar. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- kvm/scripts/make-release | 18

[PATCH 0/2] qemu-kvm: make make-release work on older systems

2010-09-24 Thread Eduardo Habkost
Hi, The following patches allow make-release to be run on older systems (such as RHEL5), where mktemp doesn't have the --tmpdir option and tar doesn't have the --transform and --mtime options. I made those changes on the scripts for my own use (to help testing and packaging of qemu-kvm), but I

Re: [PATCH 0/3] VFIO V4: VFIO driver: Non-privileged user level PCI drivers

2010-09-24 Thread Jesse Barnes
On Wed, 22 Sep 2010 14:15:57 -0700 Tom Lyon p...@cisco.com wrote: After a long summer break, it's tanned, it's rested, and it's ready to rumble! In this version: *** REBASE to 2.6.35 *** There's new code using generic netlink messages which allows the kernel to notify the user level

inconsistent use of $TMP vs. $TMPDIR

2010-09-24 Thread Eric Blake
I noticed today that various kvm source files are inconsistent on the use of $TMP vs. $TMPDIR: $ git grep -l '\$TMP\b' | cat scripts/Kbuild.include tools/perf/feature-tests.mak $ git grep -l '\$TMPDIR\b' | cat Documentation/lguest/extract According to POSIX, you should probably be using

[PATCH v11 05/17] Add a function to indicate if device use external buffer.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- include/linux/netdevice.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[PATCH v11 13/17] Add mp(mediate passthru) device.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com The patch add mp(mediate passthru) device, which now based on vhost-net backend driver and provides proto_ops to send/receive guest buffers data from/to guest vitio-net driver. Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu

[PATCH v11 12/17] Add a kconfig entry and make entry for mp device.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com Signed-off-by: Xin Xiaohui xiaohui@intel.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- drivers/vhost/Kconfig | 10 ++ drivers/vhost/Makefile |2 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git

[PATCH v11 14/17]Provides multiple submits and asynchronous notifications.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com The vhost-net backend now only supports synchronous send/recv operations. The patch provides multiple submits and asynchronous notifications. This is needed for zero-copy case. Signed-off-by: Xin Xiaohui xiaohui@intel.com --- drivers/vhost/net.c |

[PATCH v11 17/17]add two new ioctls for mp device.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com The patch add two ioctls for mp device. One is for userspace to query how much memory locked to make mp device run smoothly. Another one is for userspace to set how much meory locked it really wants. --- drivers/vhost/mpassthru.c | 103

[PATCH v11 15/17]An example how to modifiy NIC driver to use napi_gro_frags() interface

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com This example is made on ixgbe driver. It provides API is_rx_buffer_mapped_as_page() to indicate if the driver use napi_gro_frags() interface or not. The example allocates 2 pages for DMA for one ring descriptor using netdev_alloc_page(). When packets is

[PATCH v11 00/17] Provide a zero-copy method on KVM virtio-net.

2010-09-24 Thread xiaohui . xin
We provide an zero-copy method which driver side may get external buffers to DMA. Here external means driver don't use kernel space to allocate skb buffers. Currently the external buffer can be from guest virtio-net driver. The idea is simple, just to pin the guest VM user space and then let host

[PATCH v11 01/17] Add a new structure for skb buffer from external.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- include/linux/skbuff.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git

[PATCH v11 11/17] Add header file for mp device.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- include/linux/mpassthru.h | 25 + 1 files changed, 25 insertions(+), 0 deletions(-)

[PATCH v11 10/17] Add a hook to intercept external buffers from NIC driver.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com The hook is called in netif_receive_skb(). Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- net/core/dev.c | 35 +++ 1 files

[PATCH v11 09/17] Don't do skb recycle, if device use external buffer.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- net/core/skbuff.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/net/core/skbuff.c

[PATCH v11 07/17] Modify netdev_alloc_page() to get external buffer

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com Currently, it can get external buffers from mp device. Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- net/core/skbuff.c | 27 +++ 1

[PATCH v11 08/17] Modify netdev_free_page() to release external buffer

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com Currently, it can get external buffers from mp device. Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- include/linux/skbuff.h |4 +++- net/core/skbuff.c

[PATCH v11 06/17]Use callback to deal with skb_release_data() specially.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com If buffer is external, then use the callback to destruct buffers. Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- include/linux/skbuff.h |3 ++-

[PATCH v11 02/17] Add a new struct for device to manipulate external buffer.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com Signed-off-by: Xin Xiaohui xiaohui@intel.com Signed-off-by: Zhao Yu yzhao81...@gmail.com Reviewed-by: Jeff Dike jd...@linux.intel.com --- include/linux/netdevice.h | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) diff

[PATCH v11 03/17] Add a ndo_mp_port_prep pointer to net_device_ops.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com If the driver want to allocate external buffers, then it can export it's capability, as the skb buffer header length, the page length can be DMA, etc. The external buffers owner may utilize this. Signed-off-by: Xin Xiaohui xiaohui@intel.com

[PATCH v11 04/17]Add a function make external buffer owner to query capability.

2010-09-24 Thread xiaohui . xin
From: Xin Xiaohui xiaohui@intel.com The external buffer owner can use the functions to get the capability of the underlying NIC driver. --- include/linux/netdevice.h |2 + net/core/dev.c| 49 + 2 files changed, 51 insertions(+),