libxc/x86: do not unconditionally set the module cmdline address
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 28 Mar 2018 11:55:16 +0000 (12:55 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 28 Mar 2018 12:54:46 +0000 (13:54 +0100)
commitfb5ab45739c6b3e410bd51d04b1e6d7b032ea1b2
tree98fb6bd9e584a38c0e661035a62266c705ab643a
parentd00385d80f151ee17eba35064a85769338ad6a74
libxc/x86: do not unconditionally set the module cmdline address

This will lead to writing a wrong module command line physical memory
address if no command line is actually provided.

This hasn't caused problems so far because hvmloader is the only
consumer of the modules command line, and it's unconditionally set
in that case.

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