diff options
author | Brett Creeley <brett.creeley@amd.com> | 2023-11-17 03:12:04 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-12-05 00:33:21 +0300 |
commit | 3f5898133a706402180908b671d5e781fc48f548 (patch) | |
tree | cca703785153c2b58ac6d7402cf4ecfb51b89ec4 /drivers/vfio/pci/pds/dirty.h | |
parent | 3b8f7a24d1fe79cc3fa1da9be5610b9c3aedbc2a (diff) | |
download | linux-3f5898133a706402180908b671d5e781fc48f548.tar.xz |
vfio/pds: Move and rename region specific info
An upcoming change in this series will add support
for multiple regions. To prepare for that, move
region specific information into struct pds_vfio_region
and rename the members for readability. This will
reduce the size of the patch that actually implements
multiple region support.
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://lore.kernel.org/r/20231117001207.2793-4-brett.creeley@amd.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/pci/pds/dirty.h')
-rw-r--r-- | drivers/vfio/pci/pds/dirty.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/vfio/pci/pds/dirty.h b/drivers/vfio/pci/pds/dirty.h index 9de5aac58190..07662d369e7c 100644 --- a/drivers/vfio/pci/pds/dirty.h +++ b/drivers/vfio/pci/pds/dirty.h @@ -9,15 +9,19 @@ struct pds_vfio_bmp_info { u32 bmp_bytes; }; -struct pds_vfio_dirty { +struct pds_vfio_region { struct pds_vfio_bmp_info host_seq; struct pds_vfio_bmp_info host_ack; - u64 region_size; - u64 region_start; - u64 region_page_size; + u64 size; + u64 start; + u64 page_size; struct pds_lm_sg_elem *sgl; dma_addr_t sgl_addr; u16 num_sge; +}; + +struct pds_vfio_dirty { + struct pds_vfio_region region; bool is_enabled; }; |