Revision baf0b55a
b/hw/s390-virtio-bus.c | ||
---|---|---|
56 | 56 |
static const VirtIOBindings virtio_s390_bindings; |
57 | 57 |
|
58 | 58 |
static ram_addr_t s390_virtio_device_num_vq(VirtIOS390Device *dev); |
59 |
static void s390_virtio_device_sync(VirtIOS390Device *dev); |
|
60 | 59 |
|
61 | 60 |
VirtIOS390Bus *s390_virtio_bus_init(ram_addr_t *ram_size) |
62 | 61 |
{ |
... | ... | |
185 | 184 |
return r; |
186 | 185 |
} |
187 | 186 |
|
188 |
static void s390_virtio_device_sync(VirtIOS390Device *dev)
|
|
187 |
void s390_virtio_device_sync(VirtIOS390Device *dev) |
|
189 | 188 |
{ |
190 | 189 |
VirtIOS390Bus *bus = DO_UPCAST(VirtIOS390Bus, bus, dev->qdev.parent_bus); |
191 | 190 |
ram_addr_t cur_offs; |
b/hw/s390-virtio-bus.h | ||
---|---|---|
65 | 65 |
int *vq_num); |
66 | 66 |
extern VirtIOS390Device *s390_virtio_bus_find_mem(VirtIOS390Bus *bus, |
67 | 67 |
ram_addr_t mem); |
68 |
extern void s390_virtio_device_sync(VirtIOS390Device *dev); |
b/hw/s390-virtio.c | ||
---|---|---|
99 | 99 |
break; |
100 | 100 |
case KVM_S390_VIRTIO_RESET: |
101 | 101 |
{ |
102 |
/* Virtio_reset resets the internal addresses, so we'd have to sync |
|
103 |
them up again. We don't want to reallocate a vring though, so let's |
|
104 |
just not reset. */ |
|
105 |
/* virtio_reset(dev->vdev); */ |
|
102 |
VirtIOS390Device *dev; |
|
103 |
|
|
104 |
dev = s390_virtio_bus_find_mem(s390_bus, mem); |
|
105 |
virtio_reset(dev->vdev); |
|
106 |
s390_virtio_device_sync(dev); |
|
106 | 107 |
break; |
107 | 108 |
} |
108 | 109 |
case KVM_S390_VIRTIO_SET_STATUS: |
Also available in: Unified diff