[PATCH 2/4] vdpa: pass initial config to _vdpa_register_device()

2022-10-14 Thread Si-Wei Liu
Just as _vdpa_register_device taking @nvqs as the number of queues to feed userspace inquery via vdpa_dev_fill(), we can follow the same to stash config attributes in struct vdpa_device at the time of vdpa registration. Signed-off-by: Si-Wei Liu --- drivers/vdpa/ifcvf/ifcvf_main.c | 2 +-

[PATCH 4/4] vdpa: fix improper error message when adding vdpa dev

2022-10-14 Thread Si-Wei Liu
In below example, before the fix, mtu attribute is supported by the parent mgmtdev, but the error message showing "All provided are not supported" is just misleading. $ vdpa mgmtdev show vdpasim_net: supported_classes net max_supported_vqs 3 dev_features MTU MAC CTRL_VQ CTRL_MAC_ADDR ANY_LAY

[PATCH 0/4] vDPA: dev config export via "vdpa dev show" command

2022-10-14 Thread Si-Wei Liu
Live migration of vdpa would typically require re-instate vdpa device with an idential set of configs on the destination node, same way as how source node created the device in the first place. In order to allow live migration orchestration software to export the initial set of vdpa attributes wi

[PATCH 3/4] vdpa: show dev config as-is in "vdpa dev show" output

2022-10-14 Thread Si-Wei Liu
Live migration of vdpa would typically require re-instate vdpa device with an idential set of configs on the destination node, same way as how source node created the device in the first place. In order to save orchestration software from memorizing and keeping track of vdpa config, it will be help

[PATCH 1/4] vdpa: save vdpa_dev_set_config in struct vdpa_device

2022-10-14 Thread Si-Wei Liu
In order to allow live migration orchestration software to export the initial set of vdpa attributes with which the device was created, it will be useful if the vdpa tool can report the config on demand with simple query. This will ease the orchestration software implementation so that it doesn't h

Re: [PATCH 2/4] vhost-vdpa: Introduce RESUME backend feature bit

2022-10-14 Thread Michael S. Tsirkin
On Fri, Oct 14, 2022 at 09:48:57AM +, Boeuf, Sebastien wrote: > Ok thanks for the clarification. So I can remove this piece of > validation from the code, and ultimately, each backend implementation > could decide to complain (or not) if the userspace calls resume() when > suspend() isn't suppo

Re: [RFC PATCH] virtio: document virtio hardening status and TODO

2022-10-14 Thread Jonathan Corbet
Jason Wang writes: > This patch summarizes the status of hardening and TODO of hardening > virtio core and drivers. > > Signed-off-by: Jason Wang > --- > Documentation/security/virtio/core.rst | 49 ++ > MAINTAINERS| 1 + > 2 files changed, 5

Re: RFC [PATCH v4 2/7] Enable balloon drivers to report inflated memory

2022-10-14 Thread David Hildenbrand
Other problem is that there are drivers that do not use adjust_managed_page_count(). Which ones? Do we care? VMWare and Virtio balloon drivers. I recently proposed to unify them and the objection was that it would break existing users - which is valid so we must care i guess. I'm confused,

Re: [PATCH v2] vsock: replace virtio_vsock_pkt with sk_buff

2022-10-14 Thread Stefano Garzarella
On Wed, Oct 05, 2022 at 06:19:44PM -0700, Bobby Eshleman wrote: This patch replaces the struct virtio_vsock_pkt with struct sk_buff. Using sk_buff in vsock benefits it by a) allowing vsock to be extended for socket-related features like sockmap, b) vsock may in the future use other sk_buff-depen

Re: RFC [PATCH v4 2/7] Enable balloon drivers to report inflated memory

2022-10-14 Thread David Hildenbrand
On 14.10.22 14:50, Alexander Atanasov wrote: Hello, On 11.10.22 12:23, David Hildenbrand wrote: Sounds to me that all you want is some notifier to be called from adjust_managed_page_count(). What am I missing? Notifier will act as an accumulator to report size of change and it will make thing

WorldCIST'23 - World Conference on Information Systems and Technologies | Pisa, Italy | Deadline: November 6

2022-10-14 Thread WorldCIST-2023
* Google Scholar H-Index = 25 * Indexed in WoS, Scopus, DBLP, etc. ---- --- WorldCIST'23 - 11st World Conference on Information Systems and Technologies Pisa, Italy, 4 - 6 April 2023 h

Re: [PATCH 2/4] vhost-vdpa: Introduce RESUME backend feature bit

2022-10-14 Thread Michael S. Tsirkin
On Fri, Oct 14, 2022 at 09:40:46AM +, Boeuf, Sebastien wrote: > On Fri, 2022-10-14 at 05:37 -0400, Michael S. Tsirkin wrote: > > On Fri, Oct 14, 2022 at 08:07:08AM +, Boeuf, Sebastien wrote: > > > On Fri, 2022-10-14 at 02:11 -0400, Michael S. Tsirkin wrote: > > > > On Fri, Oct 14, 2022 at 0

Re: [syzbot] usb-testing boot error: WARNING in cpumask_next_wrap

2022-10-14 Thread Michael S. Tsirkin
On Wed, Oct 12, 2022 at 07:03:39AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:49da07006239 Merge tag 'memblock-v6.1-rc1' of git://git.ke.. > git tree: > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing > console outp

Re: [PATCH 2/4] vhost-vdpa: Introduce RESUME backend feature bit

2022-10-14 Thread Michael S. Tsirkin
On Fri, Oct 14, 2022 at 08:07:08AM +, Boeuf, Sebastien wrote: > On Fri, 2022-10-14 at 02:11 -0400, Michael S. Tsirkin wrote: > > On Fri, Oct 14, 2022 at 02:09:02PM +0800, Jason Wang wrote: > > > On Fri, Oct 14, 2022 at 2:05 PM Michael S. Tsirkin > > > wrote: > > > > > > > > On Fri, Oct 14, 20