virtio-serial: convert to virtio_map
commitbff712dc223f685c684f9caf960e6460e84a96f0
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 27 Oct 2015 08:19:43 +0000 (27 10:19 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 29 Oct 2015 09:05:24 +0000 (29 11:05 +0200)
tree9cd14b06df6f74bd35dbca7336388dc556edd5df
parent3d8db153b4b4e12b6d11590ccd318fff0eafd688
virtio-serial: convert to virtio_map

This also fixes a minor bug:
-                virtqueue_map_sg(port->elem.out_sg, port->elem.out_addr,
-                                 port->elem.out_num, 1);
is wrong: out_sg is not written so should not be marked dirty.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
hw/char/virtio-serial-bus.c