David Gibson f2f6e00b2e virtio_serial: Don't use vser->config.max_nr_ports internally
A number of places in the virtio_serial driver retrieve the number of ports
from vser->config.max_nr_ports, which is guest-endian.  But for internal
users, we already have a host-endian copy of the number of ports in
vser->serial.max_virtserial_ports.  Using that instead of the config field
removes the need for easy-to-forget byteswapping.

In particular this fixes a bug on incoming migration, where we don't adjust
the endianness vser->config correctly, because it hasn't yet been loaded
from the migration stream when virtio_serial_load_device() is called.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
2015-01-05 12:49:58 +05:30
2014-12-15 17:34:44 +01:00
…
2014-11-14 12:15:40 +01:00
2014-12-17 14:11:39 +01:00
…
2014-06-16 13:24:35 +02:00
…
2014-06-23 11:12:28 -04:00
…
…
…
…
…
2014-10-24 12:19:11 +01:00
2014-09-26 13:37:06 -04:00
2014-09-26 09:34:39 +01:00
2014-12-10 10:31:12 +01:00
2014-12-12 15:48:26 +00:00
…
…
…
…
…
2014-12-22 09:54:51 -07:00
2014-06-05 16:10:33 +02:00
2014-12-09 21:48:34 +00:00
2014-12-22 23:12:27 +00:00
2014-07-07 10:37:40 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
727 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%