Skip to content

Commit 3a04bb9

Browse files
authored
Merge pull request #106 from crogers1/oxt-1220-s7
STABLE-7: [xenmgr] Hook up passthrough-mmio/io for xl
2 parents d0293d4 + 540aa25 commit 3a04bb9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

xenmgr/Vm/Config.hs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,10 @@ miscSpecs cfg = do
835835
, ("seclabel" , vmFlaskLabel)
836836
, ("serial" , vmSerial)
837837
, ("stubdom_cmdline" , vmStubdomCmdline)
838-
, ("stubdom_memory" , vmStubdomMemory)
839-
]
838+
, ("stubdom_memory" , vmStubdomMemory) --OXT-1220: iomem and ioports should be reworked to support specifying multiple
839+
, ("iomem" , vmPassthroughMmio) --ranges at a finer granularity. Few ways to implement, likely as a db-node with
840+
, ("ioports" , vmPassthroughIo) --each range as an entry beneath it, which is read and parsed during xl cfg generation.
841+
] --Remove this comment block when implemented.
840842

841843
-- xl config handles certain options different than others (eg. quotes, brackets)
842844
-- we format them on a case by case basis here before sending them off to xl.
@@ -852,6 +854,8 @@ miscSpecs cfg = do
852854
_ -> case name of
853855
"viridian" -> name ++ "=" ++ (wrapBrackets $ wrapQuotes v)
854856
"serial" -> name ++ "=" ++ (wrapBrackets $ wrapQuotes v)
857+
"iomem" -> name ++ "=" ++ (wrapBrackets $ wrapQuotes v)
858+
"ioports" -> name ++ "=" ++ (wrapBrackets $ wrapQuotes v)
855859
"extra" -> case v of
856860
"" -> []
857861
_ -> name ++ "=" ++ (wrapQuotes v)

0 commit comments

Comments
 (0)