Re: [Qemu-devel] [PATCH] virtio-serial: virtio device for simple host <-> guest communication

Blue Swirl
2009-06-23T15:19:32Z

On 6/23/09, Amit Shah <amit.shah@redhat.com> wrote:
> This interface presents a char device from which bits can be
> sent and read.

> +struct virtio_serial_config
> +{
> + uint32_t nr_ports;
> + uint16_t status;
> +} __attribute__((packed));

Obviously this has to match the kernel structure if you go for 16 bit nr_ports.