target/i386: Check kvm_hyperv_expand_features() return value
commit652a5f22d8312231a50d64ad4c1826947ac5b9a6
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 13 Sep 2023 09:30:03 +0000 (13 11:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Sep 2023 10:16:40 +0000 (13 12:16 +0200)
tree46ee40a103e0e4fd08fb5bf0783605cfec109279
parentfb0a8b0e238277296907ffe765bf76874cfc1df6
target/i386: Check kvm_hyperv_expand_features() return value

In case more code is added after the kvm_hyperv_expand_features()
call, check its return value (since it can fail).

Fixes: 071ce4b03b ("i386: expand Hyper-V features during CPU feature expansion time")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230913093009.83520-2-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c