Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-24 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > - Original Message - >> On 11/23/2015 07:46 AM, Markus Armbruster wrote: >> >> >>> If it's not broken, please explain to me how the guest should find out >> >>> whether its ivshmem device sports a doorbell. >> >> >> >> If you have

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-24 Thread Markus Armbruster
Andrew James writes: > On 11/20/2015 01:18 PM, Marc-André Lureau wrote: >> Hi >> >> - Original Message - > Hash ivshmem been used in anger? If yes, how? >>> >>> Still the question to answer. >> >> I don't expect users to read this ML everyday (anybody >>

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-24 Thread Marc-André Lureau
Hi On Tue, Nov 24, 2015 at 2:50 PM, Markus Armbruster wrote: > Facts: > > * We have a half-initialized state that is visible to the guest. > > * To detect the doorbell, you have to wait for the device to exit this > state. > > * Recognizing this state is cumbersome unless

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-24 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Tue, Nov 24, 2015 at 2:50 PM, Markus Armbruster wrote: > >> Facts: >> >> * We have a half-initialized state that is visible to the guest. >> >> * To detect the doorbell, you have to wait for the device to exit

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-24 Thread Marc-André Lureau
Hi On Tue, Nov 24, 2015 at 10:56 AM, Markus Armbruster wrote: > Marc-André Lureau writes: > >> Hi >> >> - Original Message - >>> On 11/23/2015 07:46 AM, Markus Armbruster wrote: >>> >>> >>> If it's not broken, please explain to me how the guest

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-24 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Tue, Nov 24, 2015 at 10:56 AM, Markus Armbruster wrote: >> Marc-André Lureau writes: >> >>> Hi >>> >>> - Original Message - On 11/23/2015 07:46 AM, Markus Armbruster wrote:

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Eric Blake
On 11/23/2015 07:46 AM, Markus Armbruster wrote: >>> If it's not broken, please explain to me how the guest should find out >>> whether its ivshmem device sports a doorbell. >> >> If you have received ID, you should be good to use the doorbell. > > That's not a complete answer, so let me try a

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Markus Armbruster
Markus Armbruster writes: > Marc-André Lureau writes: [...] >>> * shm appears to be the same as memdev, just less flexible. Why does it >>> exist? >> >> It was there before. > > Not only is memdev more flexible, it also provides the clean split >

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Marc-André Lureau
Hi - Original Message - > On 11/23/2015 07:46 AM, Markus Armbruster wrote: > > >>> If it's not broken, please explain to me how the guest should find out > >>> whether its ivshmem device sports a doorbell. > >> > >> If you have received ID, you should be good to use the doorbell. > > >

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > - Original Message - >> >> Hash ivshmem been used in anger? If yes, how? >> >> Still the question to answer. > > I don't expect users to read this ML everyday (anybody > actually). Personally, I have no clue how widespread ivshmem

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Marc-André Lureau
Hi - Original Message - > > >> qemu-doc documents role only with chardev. The code doesn't care. > > > > yeah, role is only really useful with a server. Another missing warning. > > I think it makes sense only when we can migrate the shared memory > contents out-of-band. Vaguely

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > - Original Message - >> >> >> qemu-doc documents role only with chardev. The code doesn't care. >> > >> > yeah, role is only really useful with a server. Another missing warning. >> >> I think it makes sense only when we can

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Marc-André Lureau
Hi - Original Message - > > "role" was designed to only migrate the master. Ability to migrate a pool > > of > > peer would be a significant new feature. I am not aware of such request. > > I see. But how is this supposed to work? > > Before migration: one master and N peers connected

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > - Original Message - >> > "role" was designed to only migrate the master. Ability to migrate a pool >> > of >> > peer would be a significant new feature. I am not aware of such request. >> >> I see. But how is this supposed to

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Marc-André Lureau
Hi - Original Message - > > > > You can't migrate the peers. > > Then explain the case N'=0 to me: how can you migrate the master so that > it's connected to a server afterwards? Dest qemu: -incoming.. -chardev socket,path=dest-server That is, start your destination qemu with a

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > - Original Message - >> > >> > You can't migrate the peers. >> >> Then explain the case N'=0 to me: how can you migrate the master so that >> it's connected to a server afterwards? > > Dest qemu: -incoming.. -chardev

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Andrew James
On 11/20/2015 01:18 PM, Marc-André Lureau wrote: > Hi > > - Original Message - Hash ivshmem been used in anger? If yes, how? >> >> Still the question to answer. > > I don't expect users to read this ML everyday (anybody actually). Personally, > I have no clue how widespread

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Markus Armbruster
Marc-André Lureau writes: > - Original Message - >> Marc-André Lureau writes: >> >> > Hi >> > >> > - Original Message - >> >> > >> >> > You can't migrate the peers. >> >> >> >> Then explain the case N'=0 to me: how can you migrate the

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Marc-André Lureau
- Original Message - > Marc-André Lureau writes: > > > Hi > > > > - Original Message - > >> > > >> > You can't migrate the peers. > >> > >> Then explain the case N'=0 to me: how can you migrate the master so that > >> it's connected to a server afterwards?

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-23 Thread Bruce Rogers
>>> On 11/20/2015 at 09:07 AM, Markus Armbruster wrote: > Everybody's favourite device model has "size" property. It's declared > as *string* > > DEFINE_PROP_STRING("size", IVShmemState, sizearg), > > which gets converted to a size manually in the realize method: > >

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-20 Thread Marc-André Lureau
Hi - Original Message - > Everybody's favourite device model has "size" property. It's declared > as *string* > > DEFINE_PROP_STRING("size", IVShmemState, sizearg), > > which gets converted to a size manually in the realize method: > > } else if (s->sizearg == NULL) { >

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-20 Thread Eric Blake
On 11/20/2015 09:23 AM, Marc-André Lureau wrote: > Hi > > - Original Message - >> Everybody's favourite device model has "size" property. It's declared >> as *string* >> >> DEFINE_PROP_STRING("size", IVShmemState, sizearg), >> >> >> * In QMP, the size must be given as JSON string

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-20 Thread Marc-André Lureau
- Original Message - > Eric Blake writes: > > > On 11/20/2015 09:23 AM, Marc-André Lureau wrote: > >> Hi > >> > >> - Original Message - > >>> Everybody's favourite device model has "size" property. It's declared > >>> as *string* > >>> > >>>

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-20 Thread Markus Armbruster
Eric Blake writes: > On 11/20/2015 09:23 AM, Marc-André Lureau wrote: >> Hi >> >> - Original Message - >>> Everybody's favourite device model has "size" property. It's declared >>> as *string* >>> >>> DEFINE_PROP_STRING("size", IVShmemState, sizearg), >>> >>> >>>

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-20 Thread Markus Armbruster
Marc-André Lureau writes: > - Original Message - >> Eric Blake writes: >> >> > On 11/20/2015 09:23 AM, Marc-André Lureau wrote: >> >> Hi >> >> >> >> - Original Message - >> >>> Everybody's favourite device model has "size" property. It's

Re: [Qemu-devel] ivshmem property size should be a size, not a string

2015-11-20 Thread Marc-André Lureau
Hi - Original Message - > >> Hash ivshmem been used in anger? If yes, how? > > Still the question to answer. I don't expect users to read this ML everyday (anybody actually). Personally, I have no clue how widespread ivshmem usage is. > Besides the usual PCI properties, we have: > >