summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2014-12-19 14:57:27 +1100
committerAmit Shah <amit.shah@redhat.com>2015-01-05 12:50:27 +0530
commit08f432aa3eb62d6d781eaa085e161e8628a9a538 (patch)
tree3c888d6b0e8e568ac6be729b94102de1e1f8f871 /include
parentf2f6e00b2e27b65edaa6ce5cb01770c973cbf8fb (diff)
downloadhqemu-08f432aa3eb62d6d781eaa085e161e8628a9a538.zip
hqemu-08f432aa3eb62d6d781eaa085e161e8628a9a538.tar.gz
virtio-serial: Don't keep a persistent copy of config space
The 'config' field in the VirtIOSerial structure keeps a copy of the virtio console's config space as visible to the guest, that is to say, in guest endianness. This is fiddly to maintain, because on some targets, such as powerpc, the "guest endianness" can change when a new guest OS boots. In fact, there's no need to maintain such a guest view of config space - instead we can reconstruct it from host-format data when it is accessed with get_config. 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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/virtio/virtio-serial.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/virtio/virtio-serial.h b/include/hw/virtio/virtio-serial.h
index a679e54..11af978 100644
--- a/include/hw/virtio/virtio-serial.h
+++ b/include/hw/virtio/virtio-serial.h
@@ -207,8 +207,6 @@ struct VirtIOSerial {
/* bitmap for identifying active ports */
uint32_t *ports_map;
- struct virtio_console_config config;
-
struct VirtIOSerialPostLoad *post_load;
virtio_serial_conf serial;
OpenPOWER on IntegriCloud