Re: [PATCH v3 5/6] libvhost-user: prevent over-running max RAM slots

2022-01-17 Thread Philippe Mathieu-Daudé via
On 1/17/22 09:20, David Hildenbrand wrote: > On 17.01.22 05:12, Raphael Norwitz wrote: >> When VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS support was added to >> libvhost-user, no guardrails were added to protect against QEMU >> attempting to hot-add too many RAM slots to a VM with a libvhost-user >

Re: [PATCH v3 5/6] libvhost-user: prevent over-running max RAM slots

2022-01-17 Thread David Hildenbrand
On 17.01.22 05:12, Raphael Norwitz wrote: > When VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS support was added to > libvhost-user, no guardrails were added to protect against QEMU > attempting to hot-add too many RAM slots to a VM with a libvhost-user > based backed attached. > > This change adds th

[PATCH v3 5/6] libvhost-user: prevent over-running max RAM slots

2022-01-16 Thread Raphael Norwitz
When VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS support was added to libvhost-user, no guardrails were added to protect against QEMU attempting to hot-add too many RAM slots to a VM with a libvhost-user based backed attached. This change adds the missing error handling by introducing a check on the