summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJustin Terry (VM) <juterry@microsoft.com>2018-03-14 07:52:41 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-26 14:37:12 +0200
commit3907e6318eae2668712bba04edc10e3648292508 (patch)
treed792ec045612ae8e596919d92371e8d1fefe17c1 /configure
parent36b4cf19348c98fa070dbb99e4bb2eb190ff4cef (diff)
downloadqemu-3907e6318eae2668712bba04edc10e3648292508.tar.gz
WHPX fix WHvGetCapability out WrittenSizeInBytes
This fixes a breaking change to WHvGetCapability to include the 'out' WrittenSizeInBytes introduced in Windows Insider SDK 17110. This specifies on return the safe length to read into the WHV_CAPABILITY structure passed to the call. Signed-off-by: Justin Terry (VM) <juterry@microsoft.com> Message-Id: <1521039163-138-2-git-send-email-juterry@microsoft.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 8376cb151a..4d0e92c96c 100755
--- a/configure
+++ b/configure
@@ -2496,7 +2496,9 @@ if test "$whpx" != "no" ; then
#include <WinHvEmulation.h>
int main(void) {
WHV_CAPABILITY whpx_cap;
- WHvGetCapability(WHvCapabilityCodeFeatures, &whpx_cap, sizeof(whpx_cap));
+ UINT32 writtenSize;
+ WHvGetCapability(WHvCapabilityCodeFeatures, &whpx_cap, sizeof(whpx_cap),
+ &writtenSize);
return 0;
}
EOF