From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ7mW-0003OF-H0 for qemu-devel@nongnu.org; Tue, 23 Jun 2009 11:19:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ7mV-0003NN-QJ for qemu-devel@nongnu.org; Tue, 23 Jun 2009 11:19:31 -0400 Received: from [199.232.76.173] (port=46176 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ7mV-0003Mv-Gr for qemu-devel@nongnu.org; Tue, 23 Jun 2009 11:19:31 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:5711) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJ7mV-0001U0-3p for qemu-devel@nongnu.org; Tue, 23 Jun 2009 11:19:31 -0400 Received: by fg-out-1718.google.com with SMTP id e21so48961fga.8 for ; Tue, 23 Jun 2009 08:19:30 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1245760953-32139-3-git-send-email-amit.shah@redhat.com> References: <1245760953-32139-1-git-send-email-amit.shah@redhat.com> <1245760953-32139-2-git-send-email-amit.shah@redhat.com> <1245760953-32139-3-git-send-email-amit.shah@redhat.com> Date: Tue, 23 Jun 2009 18:19:30 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH] virtio-serial: virtio device for simple host <-> guest communication From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org On 6/23/09, Amit Shah 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.