mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
Implement virtio reset
The guest may issue a RESET command for virtio. So far we didn't bother to implement it, but with my new bootloader we actually need it for Linux to get back to a safe state. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
73cdf3f2c9
commit
baf0b55a9e
3 changed files with 7 additions and 6 deletions
|
@ -56,7 +56,6 @@ typedef struct {
|
|||
static const VirtIOBindings virtio_s390_bindings;
|
||||
|
||||
static ram_addr_t s390_virtio_device_num_vq(VirtIOS390Device *dev);
|
||||
static void s390_virtio_device_sync(VirtIOS390Device *dev);
|
||||
|
||||
VirtIOS390Bus *s390_virtio_bus_init(ram_addr_t *ram_size)
|
||||
{
|
||||
|
@ -185,7 +184,7 @@ static ram_addr_t s390_virtio_next_ring(VirtIOS390Bus *bus)
|
|||
return r;
|
||||
}
|
||||
|
||||
static void s390_virtio_device_sync(VirtIOS390Device *dev)
|
||||
void s390_virtio_device_sync(VirtIOS390Device *dev)
|
||||
{
|
||||
VirtIOS390Bus *bus = DO_UPCAST(VirtIOS390Bus, bus, dev->qdev.parent_bus);
|
||||
ram_addr_t cur_offs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue