Skip to content

Commit

Permalink
Merge pull request #106 from crogers1/oxt-1220-s7
Browse files Browse the repository at this point in the history
STABLE-7: [xenmgr] Hook up passthrough-mmio/io for xl
  • Loading branch information
eric-ch authored Oct 4, 2017
2 parents d0293d4 + 540aa25 commit 3a04bb9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xenmgr/Vm/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,10 @@ miscSpecs cfg = do
, ("seclabel" , vmFlaskLabel)
, ("serial" , vmSerial)
, ("stubdom_cmdline" , vmStubdomCmdline)
, ("stubdom_memory" , vmStubdomMemory)
]
, ("stubdom_memory" , vmStubdomMemory) --OXT-1220: iomem and ioports should be reworked to support specifying multiple
, ("iomem" , vmPassthroughMmio) --ranges at a finer granularity. Few ways to implement, likely as a db-node with
, ("ioports" , vmPassthroughIo) --each range as an entry beneath it, which is read and parsed during xl cfg generation.
] --Remove this comment block when implemented.

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

0 comments on commit 3a04bb9

Please sign in to comment.