David Marchand 5a5a72a875 vhost: make NUMA reallocation code more robust
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 reallocating the device and queue, the code already made
sure it will return a pointer to a valid device. The checks on such
returned pointer can be removed.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2022-09-15 17:56:04 +02:00
..
2022-02-22 13:10:39 +01:00
2022-02-22 13:10:39 +01:00
2022-07-01 15:49:49 +02:00
2022-01-27 09:44:31 +01:00
2022-02-22 14:47:49 +01:00
2022-07-01 15:49:49 +02:00
2022-06-01 11:50:10 +02:00
2022-07-01 15:49:49 +02:00
2022-07-21 12:13:48 +02:00
2022-07-01 15:49:49 +02:00
2022-07-01 15:49:49 +02:00