Re: [PATCH v3 2/4] vhost: make NUMA reallocation code more robust

2022-07-26 Thread Maxime Coquelin
On 7/25/22 22:32, David Marchand wrote: translate_ring_addresses and numa_realloc may change a virtio device and virtio queue. Callers of those helpers must be extra careful and refresh any reference to old data. Change those functions prototype as a way to hint about this issue and always as

[PATCH v3 2/4] vhost: make NUMA reallocation code more robust

2022-07-25 Thread David Marchand
translate_ring_addresses and numa_realloc may change a virtio device and virtio queue. Callers of those helpers must be extra careful and refresh any reference to old data. Change those functions prototype as a way to hint about this issue and always ask for an indirect pointer. Besides, when rea