summaryrefslogtreecommitdiff
path: root/drivers/vfio/pci/pds/dirty.h
diff options
context:
space:
mode:
authorBrett Creeley <brett.creeley@amd.com>2023-11-17 03:12:06 +0300
committerAlex Williamson <alex.williamson@redhat.com>2023-12-05 00:33:21 +0300
commit0c320f223ee6892a413428051f35bebf85fe83d3 (patch)
tree51446e297f63f8bf6a6c639978a65349b8a5fcd5 /drivers/vfio/pci/pds/dirty.h
parent87bdf9807ed70f5d3a0f852f9d04ceb1c99ad9f6 (diff)
downloadlinux-0c320f223ee6892a413428051f35bebf85fe83d3.tar.xz
vfio/pds: Move seq/ack bitmaps into region struct
Since the host seq/ack bitmaps are part of a region move them into struct pds_vfio_region. Also, make use of the bmp_bytes value for validation purposes. 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-6-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.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/vfio/pci/pds/dirty.h b/drivers/vfio/pci/pds/dirty.h
index 07662d369e7c..a1f6d894f913 100644
--- a/drivers/vfio/pci/pds/dirty.h
+++ b/drivers/vfio/pci/pds/dirty.h
@@ -4,14 +4,10 @@
#ifndef _DIRTY_H_
#define _DIRTY_H_
-struct pds_vfio_bmp_info {
- unsigned long *bmp;
- u32 bmp_bytes;
-};
-
struct pds_vfio_region {
- struct pds_vfio_bmp_info host_seq;
- struct pds_vfio_bmp_info host_ack;
+ unsigned long *host_seq;
+ unsigned long *host_ack;
+ u64 bmp_bytes;
u64 size;
u64 start;
u64 page_size;