Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtio-serial: fix virtio config size
commit 9b70c17 virtio-serial: switch to standard-headers changes virtio_console_config size from 8 to 12 bytes: it adds an optional 4 byte emerg_wr field. As this crosses a power of two boundary, this changes the PCI BAR size, which breaks migration compatibility with old qemu machine types. It's probably a problem for other transports as well. As a temporary fix, as we don't yet support this new field anyway, simply make the config size smaller at init time. Long terms we probably want something along the lines of virtio_net_set_config_size. Reported-by: Cole Robinson <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Tested-by: Cole Robinson <[email protected]>
- Loading branch information