Introduce struct jailhouse_pio_whitelist, and a macro PIO_RANGE that helps to
fill lists in config files.

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

diff --git a/include/jailhouse/cell-config.h b/include/jailhouse/cell-config.h
index 76c9e56f..a95db470 100644
--- a/include/jailhouse/cell-config.h
+++ b/include/jailhouse/cell-config.h
@@ -206,6 +206,17 @@ struct jailhouse_iommu {
        __u32 amd_features;
 } __attribute__((packed));
 
+struct jailhouse_pio {
+       __u16 base;
+       __u16 length;
+} __attribute__((packed));
+
+#define PIO_RANGE(__base, __length)    \
+       {                               \
+               .base = __base,         \
+               .length = __length,     \
+       }
+
 #define JAILHOUSE_SYSTEM_SIGNATURE     "JHSYST"
 
 /*
-- 
2.22.0

-- 
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/20190725171123.9266-3-ralf.ramsauer%40oth-regensburg.de.

Reply via email to