diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2022-10-13 18:18:17 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-10-27 10:27:23 +0100 |
commit | 7764963b9239dc966122617cc8b61d4530d6ce2a (patch) | |
tree | c1acd60aa208d60217fd70e1f2cecb06705c8046 /hw | |
parent | 310616d3677aad709d3eaf8f5f08683f2853f227 (diff) | |
download | qemu-7764963b9239dc966122617cc8b61d4530d6ce2a.zip qemu-7764963b9239dc966122617cc8b61d4530d6ce2a.tar.gz qemu-7764963b9239dc966122617cc8b61d4530d6ce2a.tar.bz2 |
hw/hyperv/hyperv.c: Use device_cold_reset() instead of device_legacy_reset()
The semantic difference between the deprecated device_legacy_reset()
function and the newer device_cold_reset() function is that the new
function resets both the device itself and any qbuses it owns,
whereas the legacy function resets just the device itself and nothing
else. In hyperv_synic_reset() we reset a SynICState, which has no
qbuses, so for this purpose the two functions behave identically and
we can stop using the deprecated one.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-id: 20221013171817.1447562-1-peter.maydell@linaro.org
Diffstat (limited to 'hw')
-rw-r--r-- | hw/hyperv/hyperv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/hyperv/hyperv.c b/hw/hyperv/hyperv.c index 4a1b59c..57b402b 100644 --- a/hw/hyperv/hyperv.c +++ b/hw/hyperv/hyperv.c @@ -157,7 +157,7 @@ void hyperv_synic_reset(CPUState *cs) SynICState *synic = get_synic(cs); if (synic) { - device_legacy_reset(DEVICE(synic)); + device_cold_reset(DEVICE(synic)); } } |