qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/8] virtio-console: qdev conversion, new virtio


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 2/8] virtio-console: qdev conversion, new virtio-serial-bus
Date: Tue, 05 Jan 2010 18:04:27 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Lightning/1.0pre Thunderbird/3.0b4

  Hi,

- .driver = "virtio-console-pci",
+ .driver = "virtio-serial-pci",

I don't think we can eliminate the virtio-console-pci device name. If
someone used -writeconfig and -virtconsole in 0.12, this change would
break their written config files.

It wouldn't. virtio-console-pci was never fully converted to qdev because of the multichannel work in flight. Thus you can't create a functional device using '-device virtio-console-pci,<properties>' because the driver lacks a chardev property.

CharDriverState *qdev_init_chardev(DeviceState *dev)
{
static int next_serial;
- static int next_virtconsole;
+
/* FIXME: This is a nasty hack that needs to go away. */

Minor nit, this comment is no longer needed.

The whole function is a nasty hack which needs to go away. The RightWay[tm] is to use a chardev property instead of this function.

So the comment is still correct. Maybe some rewording is helpful though to make this more clear as the comment got a big bunch of review comments already ;)

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]