diff options
author | Avihai Horon <avihaih@nvidia.com> | 2023-03-07 12:54:39 +0000 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-03-07 07:20:32 -0700 |
commit | 725ccd7e419d640ebee4c3869235efea070764de (patch) | |
tree | 328839532edf51148dc11c5bf53ad59887539b18 /audio | |
parent | 236e0a45f507f1e4130fce9c8edb615bf5e0b00e (diff) | |
download | qemu-725ccd7e419d640ebee4c3869235efea070764de.zip qemu-725ccd7e419d640ebee4c3869235efea070764de.tar.gz qemu-725ccd7e419d640ebee4c3869235efea070764de.tar.bz2 |
vfio/common: Add VFIOBitmap and alloc function
There are already two places where dirty page bitmap allocation and
calculations are done in open code.
To avoid code duplication, introduce VFIOBitmap struct and corresponding
alloc function and use them where applicable.
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20230307125450.62409-5-joao.m.martins@oracle.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'audio')
0 files changed, 0 insertions, 0 deletions