[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types
From: |
Luiz Capitulino |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types |
Date: |
Tue, 2 Oct 2012 12:27:58 -0300 |
On Tue, 02 Oct 2012 16:24:48 +0200
Paolo Bonzini <address@hidden> wrote:
> Il 02/10/2012 14:27, Luiz Capitulino ha scritto:
> >>>> > >> for a port range, all because of the possibility of named ports;
> >>>> > >> should
> >>>> > >> '*to' be a 'str' if only for symmetry in the output? But it's
> >>>> > >> bike-shedding, so I'll live with whatever works (that is, I'm not
> >>>> > >> requesting a v3 on this patch).
> >>> > >
> >>> > > Would it be better if I changed 'to' to 'count'?
> >> >
> >> > That does look a little better:
> >> >
> >> > 'host':'localhost', 'port':'1000', 'count':2
> >> >
> >> > for the 2-port range 1000-1001. But it's all the same information, so
> >> > I'm not strongly tied to any particular representation, as long as
> >> > libvirt can parse it when querying and produce it when starting NBD.
> > Wouldn't it be cleaner to pass a list of port numbers? We could have:
> >
> > *port-list: [ 'int' ]
> > *service: 'str'
>
> A list of ports doesn't work too well for say 5900-5999. I think the
> port + count is the simplest.
True, but consider making it a union then, so that we can have service
as a string and port as an integer.
- [Qemu-devel] [PATCH v2 0/9] Embedded NBD server, Paolo Bonzini, 2012/10/01
- [Qemu-devel] [PATCH v2 1/9] build: add QAPI files to the tools, Paolo Bonzini, 2012/10/01
- [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Paolo Bonzini, 2012/10/01
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Eric Blake, 2012/10/01
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Paolo Bonzini, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Eric Blake, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Luiz Capitulino, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Paolo Bonzini, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types,
Luiz Capitulino <=
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Paolo Bonzini, 2012/10/02
Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Luiz Capitulino, 2012/10/02
[Qemu-devel] [PATCH v2 3/9] qemu-sockets: add error propagation to inet_parse, Paolo Bonzini, 2012/10/01
[Qemu-devel] [PATCH v2 4/9] qemu-sockets: add error propagation to Unix socket functions, Paolo Bonzini, 2012/10/01
[Qemu-devel] [PATCH v2 7/9] block: add close notifiers, Paolo Bonzini, 2012/10/01