Re: [PATCH 11/19] drivers/hv: set up synic pages for intercept messages

2021-08-06 Thread kernel test robot
Hi Nuno, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asm-generic/master] [cannot apply to tip/master linux/master linus/master tip/x86/core v5.14-rc4 next-20210806] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH 10/19] drivers/hv: get and set vcpu registers ioctls

2021-08-06 Thread kernel test robot
Hi Nuno, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asm-generic/master] [cannot apply to tip/master linux/master linus/master tip/x86/core v5.14-rc4 next-20210806] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH v4 1/2] tty: hvc: pass DMA capable memory to put_chars()

2021-08-06 Thread Arnd Bergmann
On Fri, Aug 6, 2021 at 5:01 AM Xianting Tian wrote: > @@ -163,6 +155,13 @@ static void hvc_console_print(struct console *co, const > char *b, > if (vtermnos[index] == -1) > return; > > + list_for_each_entry(hp, _structs, next) > + if (hp->vtermno ==

[PATCH v3 9/9] mm/memory_hotplug: improved dynamic memory group aware "auto-movable" online policy

2021-08-06 Thread David Hildenbrand
Currently, the "auto-movable" online policy does not allow for hotplugged KERNEL (ZONE_NORMAL) memory to increase the amount of MOVABLE memory we can have, primarily, because there is no coordiantion across memory devices and we don't want to create zone-imbalances accidentially when unplugging

[PATCH v3 8/9] mm/memory_hotplug: memory group aware "auto-movable" online policy

2021-08-06 Thread David Hildenbrand
Use memory groups to improve our "auto-movable" onlining policy: 1. For static memory groups (e.g., a DIMM), online a memory block MOVABLE only if all other memory blocks in the group are either MOVABLE or could be onlined MOVABLE. A DIMM will either be MOVABLE or not, not a mixture. 2.

[PATCH v3 7/9] virtio-mem: use a single dynamic memory group for a single virtio-mem device

2021-08-06 Thread David Hildenbrand
Let's use a single dynamic memory group. Signed-off-by: David Hildenbrand --- drivers/virtio/virtio_mem.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c index 774986695dc4..8945f248ce69 100644

[PATCH v3 6/9] dax/kmem: use a single static memory group for a single probed unit

2021-08-06 Thread David Hildenbrand
Although dax/kmem users often disable auto-onlining and instead online memory manually (usually to ZONE_MOVABLE), there is still value in having auto-onlining be aware of the relationship of memory blocks. Let's treat one probed unit as a single static memory device, similar to a single ACPI

[PATCH v3 5/9] ACPI: memhotplug: use a single static memory group for a single memory device

2021-08-06 Thread David Hildenbrand
Let's group all memory we add for a single memory device - we want a single node for that (which also seems to be the sane thing to do). We won't care for now about memory that was already added to the system (e.g., via e820) -- usually *all* memory of a memory device was already added and we'll

[PATCH v3 4/9] mm/memory_hotplug: track present pages in memory groups

2021-08-06 Thread David Hildenbrand
Let's track all present pages in each memory group. Especially, track memory present in ZONE_MOVABLE and memory present in one of the kernel zones (which really only is ZONE_NORMAL right now as memory groups only apply to hotplugged memory) separately within a memory group, to prepare for making

[PATCH v3 3/9] drivers/base/memory: introduce "memory groups" to logically group memory blocks

2021-08-06 Thread David Hildenbrand
In our "auto-movable" memory onlining policy, we want to make decisions across memory blocks of a single memory device. Examples of memory devices include ACPI memory devices (in the simplest case a single DIMM) and virtio-mem. For now, we don't have a connection between a single memory block

[PATCH v3 2/9] mm/memory_hotplug: introduce "auto-movable" online policy

2021-08-06 Thread David Hildenbrand
When onlining without specifying a zone (using "online" instead of "online_kernel" or "online_movable"), we currently select a zone such that existing zones are kept contiguous. This online policy made sense in the past, where contiguous zones where required. We'd like to implement smarter

[PATCH v3 1/9] mm: track present early pages per zone

2021-08-06 Thread David Hildenbrand
For implementing a new memory onlining policy, which determines when to online memory blocks to ZONE_MOVABLE semi-automatically, we need the number of present early (boot) pages -- present pages excluding hotplugged pages. Let's track these pages per zone. Pass a page instead of the zone to

[PATCH v3 0/9] mm/memory_hotplug: "auto-movable" online policy and memory groups

2021-08-06 Thread David Hildenbrand
Hi, this series is based on v5.14-rc3, with [2] on top. I. Goal The goal of this series is improving in-kernel auto-online support. It tackles the fundamental problems that: 1) We can create zone imbalances when onlining all memory blindly to ZONE_MOVABLE, in the worst case crashing the

RE: [PATCH linux-next v3 0/6] vdpa: enable user to set mac, mtu

2021-08-06 Thread Parav Pandit via Virtualization
> From: Michael S. Tsirkin > Sent: Friday, August 6, 2021 2:12 PM > > enum vdpa_attr { > > @@ -33,6 +34,16 @@ enum vdpa_attr { > > VDPA_ATTR_DEV_MAX_VQS, /* u32 */ > > VDPA_ATTR_DEV_MAX_VQ_SIZE, /* u16 */ > > + VDPA_ATTR_DEV_NET_CFG_MACADDR,

Re: [RFC PATCH v1 3/7] vhost/vsock: support MSG_EOR bit processing

2021-08-06 Thread Stefano Garzarella
On Fri, Aug 06, 2021 at 11:40:38AM +0300, Arseny Krasnov wrote: On 06.08.2021 10:28, Stefano Garzarella wrote: Caution: This is an external email. Be cautious while opening links or attachments. On Mon, Jul 26, 2021 at 07:33:38PM +0300, Arseny Krasnov wrote: It works in the same way as

Re: [PATCH linux-next v3 0/6] vdpa: enable user to set mac, mtu

2021-08-06 Thread Michael S. Tsirkin
On Fri, Aug 06, 2021 at 10:50:27AM +0800, Jason Wang wrote: > > 在 2021/8/5 下午5:57, Michael S. Tsirkin 写道: > > On Wed, Jun 16, 2021 at 10:11:49PM +0300, Parav Pandit wrote: > > > Currently user cannot set the mac address and mtu of the vdpa device. > > > This patchset enables users to set the mac

Re: [Stratos-dev] [PATCH V4 2/2] gpio: virtio: Add IRQ support

2021-08-06 Thread Viresh Kumar
On 05-08-21, 15:10, Arnd Bergmann wrote: > I hope this can still be simplified by working out better which state > transitions are needed exactly. In particular, I would expect that we > can get away with not sending a VIRTIO_GPIO_MSG_IRQ_TYPE > for 'mask' state changes at all, but use that only

Re: [RFC PATCH v1 3/7] vhost/vsock: support MSG_EOR bit processing

2021-08-06 Thread Stefano Garzarella
On Mon, Jul 26, 2021 at 07:33:38PM +0300, Arseny Krasnov wrote: It works in the same way as 'end-of-message' bit: if packet has 'EOM' bit, also check for 'EOR' bit. Signed-off-by: Arseny Krasnov --- drivers/vhost/vsock.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff

Re: [RFC PATCH v1 2/7] vsock: rename implementation from 'record' to 'message'

2021-08-06 Thread Stefano Garzarella
On Mon, Jul 26, 2021 at 07:33:25PM +0300, Arseny Krasnov wrote: As 'record' is not same as 'message', rename current variables, comments and defines from 'record' concept to 'message'. Signed-off-by: Arseny Krasnov --- drivers/vhost/vsock.c | 18 +-

Re: [RFC PATCH v1 1/7] virtio/vsock: add 'VIRTIO_VSOCK_SEQ_EOM' bit

2021-08-06 Thread Stefano Garzarella
On Mon, Jul 26, 2021 at 07:33:04PM +0300, Arseny Krasnov wrote: This bit is used to mark end of messages('EOM' - end of message), while 'VIRIO_VSOCK_SEQ_EOR' is used to pass MSG_EOR. Signed-off-by: Arseny Krasnov --- include/uapi/linux/virtio_vsock.h | 1 + 1 file changed, 1 insertion(+) diff

Re: [!!Mass Mail KSE][MASSMAIL KLMS] Re: [RFC PATCH v1 0/7] virtio/vsock: introduce MSG_EOR flag for SEQPACKET

2021-08-06 Thread Stefano Garzarella
On Thu, Aug 05, 2021 at 12:21:57PM +0300, Arseny Krasnov wrote: On 05.08.2021 12:06, Stefano Garzarella wrote: Caution: This is an external email. Be cautious while opening links or attachments. On Thu, Aug 05, 2021 at 11:33:12AM +0300, Arseny Krasnov wrote: On 04.08.2021 15:57, Stefano