mirror of https://gitee.com/openkylin/qemu.git
Fixing WHPX casing to match SDK
Fixes an issue where the SDK that was releases had a different casing for the *.h and *.lib files causing a build break if linked directly from Windows Kits. Signed-off-by: Justin Terry (VM) <juterry@microsoft.com> Message-Id: <1519665216-1078-2-git-send-email-juterry@microsoft.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Justin Terry (VM) via Qemu-devel <qemu-devel@nongnu.org>
This commit is contained in:
parent
48e56d503e
commit
53537bb18c
|
@ -2486,20 +2486,20 @@ fi
|
||||||
if test "$whpx" != "no" ; then
|
if test "$whpx" != "no" ; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winhvplatform.h>
|
#include <WinHvPlatform.h>
|
||||||
#include <winhvemulation.h>
|
#include <WinHvEmulation.h>
|
||||||
int main(void) {
|
int main(void) {
|
||||||
WHV_CAPABILITY whpx_cap;
|
WHV_CAPABILITY whpx_cap;
|
||||||
WHvGetCapability(WHvCapabilityCodeFeatures, &whpx_cap, sizeof(whpx_cap));
|
WHvGetCapability(WHvCapabilityCodeFeatures, &whpx_cap, sizeof(whpx_cap));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "" "-lwinhvplatform -lwinhvemulation" ; then
|
if compile_prog "" "-lWinHvPlatform -lWinHvEmulation" ; then
|
||||||
libs_softmmu="$libs_softmmu -lwinhvplatform -lwinhvemulation"
|
libs_softmmu="$libs_softmmu -lWinHvPlatform -lWinHvEmulation"
|
||||||
whpx="yes"
|
whpx="yes"
|
||||||
else
|
else
|
||||||
if test "$whpx" = "yes"; then
|
if test "$whpx" = "yes"; then
|
||||||
feature_not_found "winhvplatform" "winhvemulation is not installed"
|
feature_not_found "WinHvPlatform" "WinHvEmulation is not installed"
|
||||||
fi
|
fi
|
||||||
whpx="no"
|
whpx="no"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "migration/blocker.h"
|
#include "migration/blocker.h"
|
||||||
|
|
||||||
#include <winhvplatform.h>
|
#include <WinHvPlatform.h>
|
||||||
#include <winhvemulation.h>
|
#include <WinHvEmulation.h>
|
||||||
|
|
||||||
struct whpx_state {
|
struct whpx_state {
|
||||||
uint64_t mem_quota;
|
uint64_t mem_quota;
|
||||||
|
|
Loading…
Reference in New Issue