Re: [PATCH 2/8] vfio/igd: canonicalize memory size calculations

2024-12-02 Thread Tomita Moeko
On 12/2/24 17:10, Corvin Köhne wrote: > On Sun, 2024-12-01 at 22:28 -0700, Alex Williamson wrote: >> CAUTION: External Email!! >> On Mon,  2 Dec 2024 00:09:32 +0800 >> Tomita Moeko wrote: >> >>> Add helper functions igd_gtt_memory_size() and igd_stolen_size() for >>> calculating GTT stolen memo

Re: [PATCH 2/8] vfio/igd: canonicalize memory size calculations

2024-12-02 Thread Corvin Köhne
On Sun, 2024-12-01 at 22:28 -0700, Alex Williamson wrote: > CAUTION: External Email!! > On Mon,  2 Dec 2024 00:09:32 +0800 > Tomita Moeko wrote: > > > Add helper functions igd_gtt_memory_size() and igd_stolen_size() for > > calculating GTT stolen memory and Data stolen memory size in bytes, > > a

Re: [PATCH 2/8] vfio/igd: canonicalize memory size calculations

2024-12-02 Thread Tomita Moeko
On 12/2/24 13:28, Alex Williamson wrote: > On Mon, 2 Dec 2024 00:09:32 +0800 > Tomita Moeko wrote: > >> Add helper functions igd_gtt_memory_size() and igd_stolen_size() for >> calculating GTT stolen memory and Data stolen memory size in bytes, >> and use macros to replace the hardware-related ma

Re: [PATCH 2/8] vfio/igd: canonicalize memory size calculations

2024-12-01 Thread Alex Williamson
On Mon, 2 Dec 2024 00:09:32 +0800 Tomita Moeko wrote: > Add helper functions igd_gtt_memory_size() and igd_stolen_size() for > calculating GTT stolen memory and Data stolen memory size in bytes, > and use macros to replace the hardware-related magic numbers for > better readability. > > Signed-