All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] vhost-scsi: fix max_io_vqs handling
@ 2026-08-02 17:24 Dongli Zhang
  2026-08-02 17:24 ` [PATCH v2 1/2] vhost-scsi: use kvzalloc for vq array allocation Dongli Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Dongli Zhang @ 2026-08-02 17:24 UTC (permalink / raw)
  To: virtualization
  Cc: mst, jasowangio, michael.christie, pbonzini, stefanha, eperezma,
	kvm, joe.jin

Avoid high-order kmalloc() allocations for the vhost-scsi virtqueue array,
and clamp out-of-range max_io_vqs updates so the stored value remains
within the supported range.

v1->v2:
  - Access vhost_scsi_max_io_vqs with READ_ONCE().
  - Clamp out-of-range max_io_vqs values instead of rejecting them.

Dongli Zhang (2):
  vhost-scsi: use kvzalloc for vq array allocation
  vhost-scsi: vhost-scsi: clamp max_io_vqs module parameter

 drivers/vhost/scsi.c | 49 ++++++++++++++++++++++++++++++++++-------------
 1 file changed, 36 insertions(+), 13 deletions(-)

base-commit: 2d2338c93da79b3bfe4b6099a931d9468d539952

Thank you very much!

Dongli Zhang


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-11 13:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-02 17:24 [PATCH v2 0/2] vhost-scsi: fix max_io_vqs handling Dongli Zhang
2026-08-02 17:24 ` [PATCH v2 1/2] vhost-scsi: use kvzalloc for vq array allocation Dongli Zhang
2026-08-06 18:30   ` Mike Christie
2026-08-02 17:24 ` [PATCH v2 2/2] vhost-scsi: clamp max_io_vqs module parameter Dongli Zhang
2026-08-06 19:30   ` Mike Christie
2026-08-11 13:51 ` [PATCH v2 0/2] vhost-scsi: fix max_io_vqs handling Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.