diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2019-10-29 18:46:52 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-10-29 18:46:52 +0000 |
commit | 1cfe28cdcabd10e31b0e05db8a2cfd9993f315e2 (patch) | |
tree | 2b97e45c782fec15c303c8f906c1d69acb7f34e0 /hw/virtio | |
parent | 69f735179e064ba4e2c30653f681b616b4791aa7 (diff) | |
parent | 1e907a32b77e5d418538453df5945242e43224fa (diff) | |
download | qemu-1cfe28cdcabd10e31b0e05db8a2cfd9993f315e2.zip qemu-1cfe28cdcabd10e31b0e05db8a2cfd9993f315e2.tar.gz qemu-1cfe28cdcabd10e31b0e05db8a2cfd9993f315e2.tar.bz2 |
Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into staging
# gpg: Signature made Tue 29 Oct 2019 02:33:36 GMT
# gpg: using RSA key EF04965B398D6211
# gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <jasowang@redhat.com>" [marginal]
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg: It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 215D 46F4 8246 689E C77F 3562 EF04 965B 398D 6211
* remotes/jasowang/tags/net-pull-request:
COLO-compare: Fix incorrect `if` logic
virtio-net: prevent offloads reset on migration
virtio: new post_load hook
net: add tulip (dec21143) driver
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/virtio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 2e91dec..6348cd3 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -3089,6 +3089,13 @@ int virtio_load(VirtIODevice *vdev, QEMUFile *f, int version_id) } rcu_read_unlock(); + if (vdc->post_load) { + ret = vdc->post_load(vdev); + if (ret) { + return ret; + } + } + return 0; } |