aboutsummaryrefslogtreecommitdiff
path: root/include/hw/hyperv
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>2024-01-25 15:12:41 +0100
committerMaciej S. Szmigiero <maciej.szmigiero@oracle.com>2024-03-08 14:18:56 +0100
commit6093637b4d32875f98cd59696ffc5f26884aa0b4 (patch)
treec5d26abf310983d1414847f2a62984e5810f463e /include/hw/hyperv
parent546987284a7da9106bbead1063553cbfe7ddd697 (diff)
downloadqemu-6093637b4d32875f98cd59696ffc5f26884aa0b4.zip
qemu-6093637b4d32875f98cd59696ffc5f26884aa0b4.tar.gz
qemu-6093637b4d32875f98cd59696ffc5f26884aa0b4.tar.bz2
vmbus: Print a warning when enabled without the recommended set of features
Some Windows versions crash at boot or fail to enable the VMBus device if they don't see the expected set of Hyper-V features (enlightenments). Since this provides poor user experience let's warn user if the VMBus device is enabled without the recommended set of Hyper-V features. The recommended set is the minimum set of Hyper-V features required to make the VMBus device work properly in Windows Server versions 2016, 2019 and 2022. Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Diffstat (limited to 'include/hw/hyperv')
-rw-r--r--include/hw/hyperv/hyperv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/hyperv/hyperv.h b/include/hw/hyperv/hyperv.h
index 015c352..d717b4e 100644
--- a/include/hw/hyperv/hyperv.h
+++ b/include/hw/hyperv/hyperv.h
@@ -139,4 +139,8 @@ typedef struct HvSynDbgMsg {
} HvSynDbgMsg;
typedef uint16_t (*HvSynDbgHandler)(void *context, HvSynDbgMsg *msg);
void hyperv_set_syndbg_handler(HvSynDbgHandler handler, void *context);
+
+bool hyperv_are_vmbus_recommended_features_enabled(void);
+void hyperv_set_vmbus_recommended_features_enabled(void);
+
#endif