virtio-mmio: cleanup reset
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jun 2022 06:54:54 +0000 (08:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2022 14:50:30 +0000 (16:50 +0200)
commit26cfd679816a515bb50eeda151e706244633a62b
treef4ea29d195e22e5cb5d1b23ae6d8986612ee0f00
parent9e43a83041ab0e334425c7a1f2309453011224ec
virtio-mmio: cleanup reset

Make virtio_mmio_soft_reset reset the virtio device, which is performed by
both the "soft" and the "hard" reset; and then call virtio_mmio_soft_reset
from virtio_mmio_reset to emphasize that the latter is a superset of the
former.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/virtio-mmio.c