virtio-serial: Disallow generic ports at id 0
commit0b8b716d6c43b5a1d4e0293df1c77af4fff21bab
authorAmit Shah <amit.shah@redhat.com>
Thu, 3 Feb 2011 07:35:07 +0000 (3 13:05 +0530)
committerAmit Shah <amit.shah@redhat.com>
Mon, 21 Mar 2011 11:25:11 +0000 (21 16:55 +0530)
treec09371742388c8fb5121d42ed14216a6c4de6977
parent6b331efb733a0f913ddc0b7762a1307dec304061
virtio-serial: Disallow generic ports at id 0

Port 0 is reserved for virtconsole devices for backward compatibility
with the old -virtioconsole (from qemu 0.12) device type.

libvirt prior to commit 8e28c5d40200b4c5d483bd585d237b9d870372e5 used
port 0 for generic ports.  libvirt will no longer do that, but disallow
instantiating generic ports at id 0 from qemu as well.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-console.c