Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-14 Thread Anthony Liguori
On 12/14/2011 04:33 AM, Kevin Wolf wrote: Am 13.12.2011 17:02, schrieb Anthony Liguori: static TypeInfo e1000_device_info = { .name = TYPE_E1000, .parent = TYPE_PCI_DEVICE, .instance_size = sizeof(E1000State), .class_init = pci_generic_class_init, .class_data =&e100

Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-14 Thread Kevin Wolf
Am 13.12.2011 17:02, schrieb Anthony Liguori: > On 12/13/2011 09:05 AM, Kevin Wolf wrote: >> Am 13.12.2011 14:43, schrieb Anthony Liguori: >>> On 12/13/2011 05:35 AM, Stefan Hajnoczi wrote: On Mon, Dec 12, 2011 at 7:36 PM, Anthony Liguori wrote: > I choose the serial device to show

Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-13 Thread Anthony Liguori
On 12/13/2011 09:05 AM, Kevin Wolf wrote: Am 13.12.2011 14:43, schrieb Anthony Liguori: On 12/13/2011 05:35 AM, Stefan Hajnoczi wrote: On Mon, Dec 12, 2011 at 7:36 PM, Anthony Liguori wrote: I choose the serial device to showcase what we'll eventually be able to do. The three relevant fil

Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-13 Thread Kevin Wolf
Am 13.12.2011 14:43, schrieb Anthony Liguori: > On 12/13/2011 05:35 AM, Stefan Hajnoczi wrote: >> On Mon, Dec 12, 2011 at 7:36 PM, Anthony Liguori >> wrote: >>> I choose the serial device to showcase what we'll eventually be able to do. >>> The three relevant files are: >>> >>> https://github.c

Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-13 Thread Anthony Liguori
On 12/13/2011 05:35 AM, Stefan Hajnoczi wrote: On Mon, Dec 12, 2011 at 7:36 PM, Anthony Liguori wrote: I choose the serial device to showcase what we'll eventually be able to do. The three relevant files are: https://github.com/aliguori/qemu/blob/qom-next/hw/isa-serial.c https://github.com/

Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-13 Thread Stefan Hajnoczi
On Mon, Dec 12, 2011 at 7:36 PM, Anthony Liguori wrote: > I choose the serial device to showcase what we'll eventually be able to do. >  The three relevant files are: > > https://github.com/aliguori/qemu/blob/qom-next/hw/isa-serial.c > > https://github.com/aliguori/qemu/blob/qom-next/hw/mm-serial.

[Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-12 Thread Anthony Liguori
Hi, I've spent the past week aggressively converting the tree to QEMU Object Model and was successful in doing a mostly complete conversion. There are a couple of outstanding issues regarding devices that are doing Bad Things but they aren't that hard to fix up. This is my development head:

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-22 Thread Anthony Liguori
On 07/22/2011 08:15 AM, Kevin Wolf wrote: Am 22.07.2011 14:40, schrieb Anthony Liguori: On 07/22/2011 02:46 AM, Kevin Wolf wrote: Am 21.07.2011 18:32, schrieb Anthony Liguori: Just as we're now realizing that we need to do dramatic things in the block layer to make -blockdev work, I'm sure we'

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-22 Thread Kevin Wolf
Am 22.07.2011 14:40, schrieb Anthony Liguori: > On 07/22/2011 02:46 AM, Kevin Wolf wrote: >> Am 21.07.2011 18:32, schrieb Anthony Liguori: >>> Just as we're now realizing that we need to do dramatic things in the >>> block layer to make -blockdev work, I'm sure we're going to realize that >>> we wa

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-22 Thread Anthony Liguori
On 07/22/2011 02:46 AM, Kevin Wolf wrote: Am 21.07.2011 18:32, schrieb Anthony Liguori: Just as we're now realizing that we need to do dramatic things in the block layer to make -blockdev work, I'm sure we're going to realize that we want to do PCI hotplug of virtio-serial and therefore we need

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-22 Thread Kevin Wolf
Am 21.07.2011 18:32, schrieb Anthony Liguori: > Just as we're now realizing that we need to do dramatic things in the > block layer to make -blockdev work, I'm sure we're going to realize that > we want to do PCI hotplug of virtio-serial and therefore we need to do > dynamic creation/destruction

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Anthony Liguori
On 07/21/2011 10:57 AM, Avi Kivity wrote: On 07/21/2011 06:45 PM, Anthony Liguori wrote: See git://git.codemonkey.ws/kvm++.git Connection refused.. Sorry, stupid EC2. Try http://git.codemonkey.ws/git/kvm++.git You don't have permission to access /git/kvm++.git/ on this server. git clon

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Anthony Liguori
On 07/21/2011 08:38 AM, Avi Kivity wrote: On 07/21/2011 04:20 PM, Anthony Liguori wrote: static TypeInfo tcp_server_type_info = { .name = TYPE_TCP_SERVER, .parent = TYPE_SOCKET_SERVER, .instance_size = sizeof(TcpServer), .instance_init = tcp_server_init, .class_init = tcp_server_class_init, };

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Avi Kivity
On 07/21/2011 05:49 PM, Anthony Liguori wrote: On 07/21/2011 08:38 AM, Avi Kivity wrote: On 07/21/2011 04:20 PM, Anthony Liguori wrote: static TypeInfo tcp_server_type_info = { .name = TYPE_TCP_SERVER, .parent = TYPE_SOCKET_SERVER, .instance_size = sizeof(TcpServer), .instance_init = tcp_serv

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Avi Kivity
On 07/21/2011 06:45 PM, Anthony Liguori wrote: See git://git.codemonkey.ws/kvm++.git Connection refused.. Sorry, stupid EC2. Try http://git.codemonkey.ws/git/kvm++.git You don't have permission to access /git/kvm++.git/ on this server. It's exactly the same object model, but in C++.

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Anthony Liguori
On 07/21/2011 10:19 AM, Luca Tettamanti wrote: On Thu, Jul 21, 2011 at 4:49 PM, Anthony Liguori wrote: [cut] And it's really not that much nicer than the C version. The problem with C++ is that even though the type system is much, much nicer, it still doesn't have introspection or decorators.

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Anthony Liguori
On 07/21/2011 10:04 AM, Avi Kivity wrote: On 07/21/2011 05:49 PM, Anthony Liguori wrote: On 07/21/2011 08:38 AM, Avi Kivity wrote: On 07/21/2011 04:20 PM, Anthony Liguori wrote: static TypeInfo tcp_server_type_info = { .name = TYPE_TCP_SERVER, .parent = TYPE_SOCKET_SERVER, .instance_size = s

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Avi Kivity
On 07/21/2011 06:19 PM, Luca Tettamanti wrote: On Thu, Jul 21, 2011 at 4:49 PM, Anthony Liguori wrote: [cut] > And it's really not that much nicer than the C version. The problem with > C++ is that even though the type system is much, much nicer, it still > doesn't have introspection or deco

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Luca Tettamanti
On Thu, Jul 21, 2011 at 4:49 PM, Anthony Liguori wrote: [cut] > And it's really not that much nicer than the C version.  The problem with > C++ is that even though the type system is much, much nicer, it still > doesn't have introspection or decorators.  These two things would be the > killer feat

[Qemu-devel] [RFC] QEMU Object Model

2011-07-19 Thread Anthony Liguori
Hi, I've started an effort to introduce a consistent object model to QEMU. Today, every subsystem implements an ad-hoc object model. These object models all have the same basic properties but do things in arbitrarily different ways: 1) Factory interface for object creation - Objects usuall