diff options
author | Thomas Huth | 2014-12-11 14:25:12 +0100 |
---|---|---|
committer | Cornelia Huck | 2015-07-02 15:35:15 +0200 |
commit | c42767f2bbd18d4ec895395c01c64bbec16b5b84 (patch) | |
tree | ff35132585a52d362916a95a7cccd214337636a2 /hw/timer/mc146818rtc.c | |
parent | s390x/css: Add a callback for when subchannel gets disabled (diff) | |
download | qemu-c42767f2bbd18d4ec895395c01c64bbec16b5b84.tar.gz qemu-c42767f2bbd18d4ec895395c01c64bbec16b5b84.tar.xz qemu-c42767f2bbd18d4ec895395c01c64bbec16b5b84.zip |
s390x/virtio-ccw: add virtio set-revision call
Handle the virtio-ccw revision according to what the guest sets.
When revision 1 is selected, we have a virtio-1 standard device
with byteswapping for the virtio rings.
When a channel gets disabled, we have to revert to the legacy behavior
in case the next user of the device does not negotiate the revision 1
anymore (e.g. the boot firmware uses revision 1, but the operating
system only uses the legacy mode).
Note that revisions > 0 are still disabled.
[CH: assure memory accesses are always BE]
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/timer/mc146818rtc.c')
0 files changed, 0 insertions, 0 deletions