libxc: allow HVM guest to have modules
authorWei Liu <wei.liu2@citrix.com>
Mon, 16 Jul 2018 14:02:52 +0000 (15:02 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 16 Jul 2018 15:08:56 +0000 (16:08 +0100)
commit2cae31dd472a9677949f55c15f108de9685b96b1
treecd7a15ced7df4580ec70178814389fcf0df10123
parent53a26ef563ab0b018cbd3f55c38ff9168a7a6ca5
libxc: allow HVM guest to have modules

Lift the loading code out of PVH specific branch. Take the chance to
make the debug message more useful.

Now the code needs to handle virt_base being UNSET_ADDR, which it is
for HVM guest.  In case virt_base is not set, it should be treated as
zero.  In case PVH and PV, virt_base is set by the respective loader
by parsing the binary.

IPXE will be loaded as a module of Rombios.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_dom_x86.c