« Previous | Next » 

Revision 5c1c9bb2

ID5c1c9bb24b20fb5844d01ac67d51c26941db5af1

Added by Alexey Kardashevskiy almost 13 years ago

virtio-serial: Fix endianness bug in the config space

The virtio serial specification requres that the values in the config
space are encoded in native endian of the guest.

The qemu virtio-serial code did not do conversion to the guest endian
format what caused problems when host and guest use different format.

This patch corrects the qemu side, correctly doing host-native <->
guest-native conversions when accessing the config space. This won't
break any setups that aren't already broken, and fixes the case
of different host and guest endianness.

Signed-off-by: Alexey Kardashevskiy <>
Signed-off-by: David Gibson <>
Reviewed-by: Juan Quintela <>
Signed-off-by: Amit Shah <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences