diff options
| author | Tomita Moeko <tomitamoeko@gmail.com> | 2024-12-06 20:27:42 +0800 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2024-12-26 07:23:37 +0100 |
| commit | 1e1eac5f3dcd9836088d59ced0ba23337f49eb04 (patch) | |
| tree | cfcd002c51a57f7026a3f3a1c098509351f7f990 /rust/qemu-api/src/module.rs | |
| parent | 0bb758e97acec8c7bbd1c3d4d61ca20a050ae9b0 (diff) | |
| download | focaccia-qemu-1e1eac5f3dcd9836088d59ced0ba23337f49eb04.tar.gz focaccia-qemu-1e1eac5f3dcd9836088d59ced0ba23337f49eb04.zip | |
vfio/igd: canonicalize memory size calculations
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-off-by: Tomita Moeko <tomitamoeko@gmail.com> Reviewed-by: Alex Williamson <alex.williamson@redhat.com> Link: https://lore.kernel.org/r/20241206122749.9893-5-tomitamoeko@gmail.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/module.rs')
0 files changed, 0 insertions, 0 deletions