Re: [PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Jason Wang
On 2021/1/6 上午10:55, Xuan Zhuo wrote: On Wed, 6 Jan 2021 10:46:43 +0800, Jason Wang wrote: On 2021/1/5 下午8:42, Xuan Zhuo wrote: On Tue, 5 Jan 2021 17:32:19 +0800, Jason Wang wrote: On 2021/1/5 下午5:11, Xuan Zhuo wrote: The first patch made some adjustments to xsk. Thanks a lot for the

Re: [PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Jason Wang
On 2021/1/5 下午8:42, Xuan Zhuo wrote: On Tue, 5 Jan 2021 17:32:19 +0800, Jason Wang wrote: On 2021/1/5 下午5:11, Xuan Zhuo wrote: The first patch made some adjustments to xsk. Thanks a lot for the work. It's rather interesting. The second patch itself can be used as an independent patch to

Re: [GIT PULL] vhost: bugfix

2021-01-05 Thread pr-tracker-bot
The pull request you sent on Tue, 5 Jan 2021 07:21:45 -0500: > https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9f1abbe97c08ba7ed609791627533a805a1b2c66 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH linux-next v3 6/6] vdpa_sim_net: Add support for user supported devices

2021-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2021 at 12:30:15PM +, Parav Pandit wrote: > > > > From: Michael S. Tsirkin > > Sent: Tuesday, January 5, 2021 5:45 PM > > > > On Tue, Jan 05, 2021 at 12:02:33PM +, Parav Pandit wrote: > > > > > > > > > > From: Michael S. Tsirkin > > > > Sent: Tuesday, January 5, 2021

Re: [PATCH netdev 5/5] virtio-net, xsk: virtio-net support xsk zero copy tx

2021-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2021 at 05:11:43PM +0800, Xuan Zhuo wrote: > Virtio net support xdp socket. > > We should open the module param "napi_tx" for using this feature. what does this imply exactly? > In fact, various virtio implementations have some problems: > 1. The tx interrupt may be lost > 2.

Re: [PATCH] x86/vmware: avoid TSC recalibration

2021-01-05 Thread Vitaly Kuznetsov
Alexey Makhalov writes: > When TSC frequency is known (retrieved from hypervisor), we should skip > TSC refined calibration by setting X86_FEATURE_TSC_KNOWN_FREQ. > > Signed-off-by: Alexey Makhalov > --- > arch/x86/kernel/cpu/vmware.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

[RFC PATCH 2/7] vhost: support for hash report virtio-net feature

2021-01-05 Thread Yuri Benditovich
According to the virtio specification if VIRTIO_NET_F_HASH_REPORT feature acked the virtio-net header is extended to hold the hash value and hash report type. Signed-off-by: Yuri Benditovich --- drivers/vhost/net.c | 37 + 1 file changed, 29 insertions(+), 8

RE: [PATCH linux-next v3 6/6] vdpa_sim_net: Add support for user supported devices

2021-01-05 Thread Parav Pandit
> From: Michael S. Tsirkin > Sent: Tuesday, January 5, 2021 5:45 PM > > On Tue, Jan 05, 2021 at 12:02:33PM +, Parav Pandit wrote: > > > > > > > From: Michael S. Tsirkin > > > Sent: Tuesday, January 5, 2021 5:19 PM > > > > > > On Tue, Jan 05, 2021 at 12:32:03PM +0200, Parav Pandit wrote:

Re: [PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2021 at 05:11:38PM +0800, Xuan Zhuo wrote: > The first patch made some adjustments to xsk. > > The second patch itself can be used as an independent patch to solve the > problem > that XDP may fail to load when the number of queues is insufficient. > > The third to last patch

[GIT PULL] vhost: bugfix

2021-01-05 Thread Michael S. Tsirkin
The following changes since commit 418eddef050d5f6393c303a94e3173847ab85466: vdpa: Use simpler version of ida allocation (2020-12-18 16:14:31 -0500) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes

Re: [PATCH linux-next v3 6/6] vdpa_sim_net: Add support for user supported devices

2021-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2021 at 12:02:33PM +, Parav Pandit wrote: > > > > From: Michael S. Tsirkin > > Sent: Tuesday, January 5, 2021 5:19 PM > > > > On Tue, Jan 05, 2021 at 12:32:03PM +0200, Parav Pandit wrote: > > > Enable user to create vdpasim net simulate devices. > > > > > > > > > > $ vdpa

RE: [PATCH linux-next v3 6/6] vdpa_sim_net: Add support for user supported devices

2021-01-05 Thread Parav Pandit
> From: Michael S. Tsirkin > Sent: Tuesday, January 5, 2021 5:19 PM > > On Tue, Jan 05, 2021 at 12:32:03PM +0200, Parav Pandit wrote: > > Enable user to create vdpasim net simulate devices. > > > > > > $ vdpa dev add mgmtdev vdpasim_net name foo2 > > > > Show the newly created vdpa device by

Re: [PATCH linux-next v3 6/6] vdpa_sim_net: Add support for user supported devices

2021-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2021 at 12:32:03PM +0200, Parav Pandit wrote: > Enable user to create vdpasim net simulate devices. > > Show vdpa management device that supports creating, deleting vdpa devices. > > $ vdpa mgmtdev show > vdpasim_net: > supported_classes > net > > $ vdpa mgmtdev show -jp >

[PATCH linux-next v3 6/6] vdpa_sim_net: Add support for user supported devices

2021-01-05 Thread Parav Pandit
Enable user to create vdpasim net simulate devices. Show vdpa management device that supports creating, deleting vdpa devices. $ vdpa mgmtdev show vdpasim_net: supported_classes net $ vdpa mgmtdev show -jp { "show": { "vdpasim_net": { "supported_classes": {

[PATCH linux-next v3 5/6] vdpa: Enable user to query vdpa device info

2021-01-05 Thread Parav Pandit
Enable user to query vdpa device information. $ vdpa dev add mgmtdev vdpasim_net name foo2 Show the newly created vdpa device by its name: $ vdpa dev show foo2 foo2: type network mgmtdev vdpasim_net vendor_id 0 max_vqs 2 max_vq_size 256 $ vdpa dev show foo2 -jp { "dev": { "foo2": {

[PATCH linux-next v3 4/6] vdpa: Enable a user to add and delete a vdpa device

2021-01-05 Thread Parav Pandit
Add the ability to add and delete a vdpa device. Examples: Create a vdpa device of type network named "foo2" from the management device vdpasim: $ vdpa dev add mgmtdev vdpasim_net name foo2 Delete the vdpa device after its use: $ vdpa dev del foo2 Signed-off-by: Parav Pandit Reviewed-by: Eli

[PATCH linux-next v3 2/6] vdpa: Extend routine to accept vdpa device name

2021-01-05 Thread Parav Pandit
In a subsequent patch, when user initiated command creates a vdpa device, the user chooses the name of the vdpa device. To support it, extend the device allocation API to consider this name specified by the caller driver. Signed-off-by: Parav Pandit Reviewed-by: Eli Cohen Acked-by: Jason Wang

[PATCH linux-next v3 1/6] vdpa_sim_net: Make mac address array static

2021-01-05 Thread Parav Pandit
MAC address array is used only in vdpa_sim_net.c. Hence, keep it static. Signed-off-by: Parav Pandit Acked-by: Jason Wang --- Changelog: v1->v2: - new patch --- drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH linux-next v3 3/6] vdpa: Define vdpa mgmt device, ops and a netlink interface

2021-01-05 Thread Parav Pandit
To add one or more VDPA devices, define a management device which allows adding or removing vdpa device. A management device defines set of callbacks to manage vdpa devices. To begin with, it defines add and remove callbacks through which a user defined vdpa device can be added or removed. A

[PATCH linux-next v3 0/6] Introduce vdpa management tool

2021-01-05 Thread Parav Pandit
This patchset covers user requirements for managing existing vdpa devices, using a tool and its internal design notes for kernel drivers. Background and user requirements: -- (1) Currently VDPA device is created by driver when driver is loaded. However, user should

Re: [RFC v2 PATCH 0/4] speed up page allocation for __GFP_ZERO

2021-01-05 Thread David Hildenbrand
On 05.01.21 11:22, Liang Li wrote: That‘s mostly already existing scheduling logic, no? (How many vms can I put onto a specific machine eventually) >>> >>> It depends on how the scheduling component is designed. Yes, you can put >>> 10 VMs with 4C8G(4CPU, 8G RAM) on a host and 20 VMs

Re: [RFC v2 PATCH 0/4] speed up page allocation for __GFP_ZERO

2021-01-05 Thread David Hildenbrand
On 05.01.21 03:14, Liang Li wrote: > In our production environment, there are three main applications have such > requirement, one is QEMU [creating a VM with SR-IOV passthrough device], > anther other two are DPDK related applications, DPDK OVS and SPDK vhost, > for best

Re: [PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Jason Wang
On 2021/1/5 下午5:11, Xuan Zhuo wrote: The first patch made some adjustments to xsk. Thanks a lot for the work. It's rather interesting. The second patch itself can be used as an independent patch to solve the problem that XDP may fail to load when the number of queues is insufficient.

Re: [RFC v2 PATCH 4/4] mm: pre zero out free pages to speed up page allocation for __GFP_ZERO

2021-01-05 Thread David Hildenbrand
On 05.01.21 10:20, Michal Hocko wrote: > On Mon 04-01-21 15:00:31, Dave Hansen wrote: >> On 1/4/21 12:11 PM, David Hildenbrand wrote: Yeah, it certainly can't be the default, but it *is* useful for thing where we know that there are no cache benefits to zeroing close to where the

Re: [PATCH linux-next v2 4/7] vdpa: Define vdpa mgmt device, ops and a netlink interface

2021-01-05 Thread Jason Wang
On 2021/1/5 下午2:33, Parav Pandit wrote: From: Jason Wang Sent: Tuesday, January 5, 2021 9:40 AM On 2021/1/4 下午3:24, Parav Pandit wrote: From: Jason Wang Sent: Monday, January 4, 2021 12:33 PM On 2021/1/4 上午11:31, Parav Pandit wrote: To add one or more VDPA devices, define a management