[If this is in the wrong StackExchange feel free to redirect me.]

I've been interested in using QEMU for a while but also wish to use Hyper-V for Docker on Windows. I discovered that the new WHPX accelerator is available in QEMU 2.12 experimentally.

However, I have not found instructions on how to build with --enable-whpx configured. I copied the WinHvEmulation, WinHvPlatform, and WinHvPlatformDefs header files from the v1803 Windows SDK include headers to my MinGW64 include file, which is necessary for configure to "work." After configuring successfully, during the make step, I get the error:

C:/Users/lmcdougald/qemu_build/qemu/target/i386/whpx-all.c:27:10: fatal error: whp-dispatch.h: No such file or directory
#include "whp-dispatch.h"
compilation terminated.

I haven't found any resources to resolve this issue, including my best attempt at reading QEMU mailing lists.

Note: I lack the reputation to create a "whpx" tag, if necessary please assist with that as well.

  • 1
    Based on the error, you are missing, one of the required header files needed to build the project. – Ramhound Jul 5 '18 at 19:03
  • Feel free to post that as an answer since I specified 2.12 in the question explicitly, and the file is clearly not present nor generated from the tagged 2.12 qemu repository. Thank you for finding that correspondence, surprised that didn't turn up in my searches. – lmcdo Jul 5 '18 at 19:35
  • I don't feel submitting an answer that only indicates that the make/configure file isn't correct, should be considered an answer to this question unless I am willing to determine the problem then provide a fix. Since I cannot make heads or tails of the repository since 2.11.2 and 2.12.0 configuration file appears to be identical. I am left scratching my head. – Ramhound Jul 5 '18 at 20:30
  • Make/configure files are correct in the master branch. There isn't a release with the file yet and the file was only finally committed less than a week ago (which explains why I didn't find it, it wasn't there when I was looking). – lmcdo Jul 5 '18 at 21:32

Courtesy a link from Ramhound, it turns out this file was mistakenly not included in time for the 2.12 release. This file is included as of a June 28 commit (github / git.qemu.org). Building with --enable-whpx configured works as long as WinHvEmulation, WinHvPlatform, and WinHvPlatformDefs are included.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.