]> xenbits.xensource.com Git - people/dariof/xen.git/commit
libxc: panic when trying to create a PVH guest without kernel support
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 6 Oct 2017 13:51:59 +0000 (14:51 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 9 Oct 2017 14:43:35 +0000 (15:43 +0100)
commit96edb111dde9ad7698a6fc2eaf2e49db507b0ed4
tree2578360339928aa62abd0748c9ea90a3b8713e00
parent265dabbc6f77982a8f2fdbae77353b70507e4e48
libxc: panic when trying to create a PVH guest without kernel support

Previously when trying to boot a PV capable but not PVH capable kernel
inside of a PVH container xc_dom_guest_type would succeed and return a
PV guest type, which would lead to failures later on in the build
process.

Instead provide a clear error message when trying to create a PVH
guest using a kernel that doesn't support PVH.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_dom_elfloader.c