From: Nikhil Devshatwar <[email protected]>

When working with a kernel using 64k page sizes, the BARs
used for enumerating the IVSHMEM PCIe device should be
aligned with 64k page size.

Add new macros which describe 64k aligned BAR sizes.

Signed-off-by: Nikhil Devshatwar <[email protected]>
---
 include/jailhouse/cell-config.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/jailhouse/cell-config.h b/include/jailhouse/cell-config.h
index 47fc251f..6df4a745 100644
--- a/include/jailhouse/cell-config.h
+++ b/include/jailhouse/cell-config.h
@@ -226,6 +226,18 @@ struct jailhouse_pci_device {
                0x00000000, 0x00000000, 0x00000000,     \
        }
 
+#define JAILHOUSE_IVSHMEM_BAR_MASK_INTX_64K            \
+       {                                               \
+               0xffff0000, 0x00000000, 0x00000000,     \
+               0x00000000, 0x00000000, 0x00000000,     \
+       }
+
+#define JAILHOUSE_IVSHMEM_BAR_MASK_MSIX_64K            \
+       {                                               \
+               0xffff0000, 0xfffffe00, 0x00000000,     \
+               0x00000000, 0x00000000, 0x00000000,     \
+       }
+
 #define JAILHOUSE_PCI_EXT_CAP          0x8000
 
 #define JAILHOUSE_PCICAPS_WRITE                0x0001
-- 
2.17.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20200608104255.18358-2-nikhil.nd%40ti.com.

Reply via email to