[hyperv] Check for required features
authorMichael Brown <mcb30@ipxe.org>
Thu, 19 Feb 2015 14:47:07 +0000 (14:47 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 20 Feb 2015 11:00:52 +0000 (11:00 +0000)
commitb6889eaa1ea5685a06b13a03337c0e0d7e3bd251
tree1ca6ba0f1640a82b834621f2d850287ab0ab66c4
parenta32b1e9e3557393d60fb4805cd74d8ba357b66cb
[hyperv] Check for required features

Other hypervisors (e.g. KVM) may provide an unusable subset of the
Hyper-V features, and our attempts to use these non-existent features
cause the guest to reboot.

Fix by explicitly checking for the Hyper-V features that we use.

Reported-by: Ján ONDREJ (SAL) <ondrejj@salstar.sk>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/drivers/hyperv/hyperv.c
src/arch/x86/drivers/hyperv/hyperv.h