Re: [PATCH v5 19/36] vfio/migration: Convert bytes_transferred counter to atomic

2025-02-26 Thread Cédric Le Goater
On 2/19/25 21:34, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" So it can be safety accessed from multiple threads. This variable type needs to be changed to unsigned long since 32-bit host platforms lack the necessary addition atomics on 64-bit variables. Using 32-bit counters on 32

Re: [PATCH v5 19/36] vfio/migration: Convert bytes_transferred counter to atomic

2025-02-26 Thread Cédric Le Goater
On 2/26/25 14:55, Maciej S. Szmigiero wrote: On 26.02.2025 08:52, Cédric Le Goater wrote: On 2/19/25 21:34, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" So it can be safety accessed from multiple threads. This variable type needs to be changed to unsigned long since 32-bit host pla

Re: [PATCH v5 19/36] vfio/migration: Convert bytes_transferred counter to atomic

2025-02-26 Thread Maciej S. Szmigiero
On 26.02.2025 08:52, Cédric Le Goater wrote: On 2/19/25 21:34, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" So it can be safety accessed from multiple threads. This variable type needs to be changed to unsigned long since 32-bit host platforms lack the necessary addition atomics on

Re: [PATCH v5 19/36] vfio/migration: Convert bytes_transferred counter to atomic

2025-02-25 Thread Cédric Le Goater
On 2/19/25 21:34, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" So it can be safety accessed from multiple threads. This variable type needs to be changed to unsigned long since 32-bit host platforms lack the necessary addition atomics on 64-bit variables. Using 32-bit counters on 32

[PATCH v5 19/36] vfio/migration: Convert bytes_transferred counter to atomic

2025-02-19 Thread Maciej S. Szmigiero
From: "Maciej S. Szmigiero" So it can be safety accessed from multiple threads. This variable type needs to be changed to unsigned long since 32-bit host platforms lack the necessary addition atomics on 64-bit variables. Using 32-bit counters on 32-bit host platforms should not be a problem in