qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Seeking help on implementing sync over ivshmem shared memory
@ 2025-02-23 14:48 Jayakrishnan A
  2025-02-24  9:33 ` Philippe Mathieu-Daudé
  2025-02-25  9:34 ` Alex Bennée
  0 siblings, 2 replies; 4+ messages in thread
From: Jayakrishnan A @ 2025-02-23 14:48 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 573 bytes --]

Hi Team ,

Seeking help on implementing sync over ivshmem shared memory , As part of
internal project we could able to achieve shared ivshmem with doorbell
mechanism ,But in order to achieve shared memory synchronisation we are
trying to add atomic operation  over this shared memory area variables ,
Just wanted to analyse whether this atomic variable between VMs shared
memory will work as expected , If not is there any suggested way ahead to
implement synchronisation over ivshmem shared memory for threads running in
multiple VMs.

Thanks and Regards ,
Jayakrishnan A

[-- Attachment #2: Type: text/html, Size: 716 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Seeking help on implementing sync over ivshmem shared memory
  2025-02-23 14:48 Seeking help on implementing sync over ivshmem shared memory Jayakrishnan A
@ 2025-02-24  9:33 ` Philippe Mathieu-Daudé
  2025-02-25  7:02   ` Jayakrishnan A
  2025-02-25  9:34 ` Alex Bennée
  1 sibling, 1 reply; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-02-24  9:33 UTC (permalink / raw)
  To: Jayakrishnan A, qemu-devel; +Cc: Gustavo Romero

Cc'ing Gustavo who maintains the IVSHMEM device.

On 23/2/25 15:48, Jayakrishnan A wrote:
> Hi Team ,
> 
> Seeking help on implementing sync over ivshmem shared memory , As part 
> of internal project we could able to achieve shared ivshmem with 
> doorbell mechanism ,But in order to achieve shared memory 
> synchronisation we are trying to add atomic operation  over this shared 
> memory area variables , Just wanted to analyse whether this atomic 
> variable between VMs shared memory will work as expected , If not is 
> there any suggested way ahead to implement synchronisation over ivshmem 
> shared memory for threads running in multiple VMs.
> 
> Thanks and Regards ,
> Jayakrishnan A
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Seeking help on implementing sync over ivshmem shared memory
  2025-02-24  9:33 ` Philippe Mathieu-Daudé
@ 2025-02-25  7:02   ` Jayakrishnan A
  0 siblings, 0 replies; 4+ messages in thread
From: Jayakrishnan A @ 2025-02-25  7:02 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: qemu-devel, Gustavo Romero

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

Thanks for your support . It will be a great help for us .

On Mon, 24 Feb 2025 at 3:03 PM, Philippe Mathieu-Daudé <philmd@linaro.org>
wrote:

> Cc'ing Gustavo who maintains the IVSHMEM device.
>
> On 23/2/25 15:48, Jayakrishnan A wrote:
> > Hi Team ,
> >
> > Seeking help on implementing sync over ivshmem shared memory , As part
> > of internal project we could able to achieve shared ivshmem with
> > doorbell mechanism ,But in order to achieve shared memory
> > synchronisation we are trying to add atomic operation  over this shared
> > memory area variables , Just wanted to analyse whether this atomic
> > variable between VMs shared memory will work as expected , If not is
> > there any suggested way ahead to implement synchronisation over ivshmem
> > shared memory for threads running in multiple VMs.
> >
> > Thanks and Regards ,
> > Jayakrishnan A
> >
>
>

[-- Attachment #2: Type: text/html, Size: 1354 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Seeking help on implementing sync over ivshmem shared memory
  2025-02-23 14:48 Seeking help on implementing sync over ivshmem shared memory Jayakrishnan A
  2025-02-24  9:33 ` Philippe Mathieu-Daudé
@ 2025-02-25  9:34 ` Alex Bennée
  1 sibling, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2025-02-25  9:34 UTC (permalink / raw)
  To: Jayakrishnan A; +Cc: qemu-devel

Jayakrishnan A <jksoftdeveloper@gmail.com> writes:

> Hi Team ,
>
> Seeking help on implementing sync over ivshmem shared memory , As part of internal project we could able to achieve
> shared ivshmem with doorbell mechanism ,But in order to achieve shared memory synchronisation we are trying to add
> atomic operation  over this shared memory area variables , Just wanted to analyse whether this atomic variable between
> VMs shared memory will work as expected , If not is there any suggested way ahead to implement synchronisation over
> ivshmem shared memory for threads running in multiple VMs.

Atomic accesses are properly modelled for all QEMU TCG guests that
support MTTCG using the hosts underlying atomic support. The shared
memory region ivshmem_bar2/server_bar2 are just pages shared between the
two QEMU processes so atomic accesses should behave the same way.

I'm unfamiliar with if both sides see the MMIO region but there is no
intrinsic synchronisation for MMIO regions which are terminated by a
MemoryRegionOps structure although vCPUS on the same QEMU will be
serialised by the BQL.

>
> Thanks and Regards , 
> Jayakrishnan A

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-25  9:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-23 14:48 Seeking help on implementing sync over ivshmem shared memory Jayakrishnan A
2025-02-24  9:33 ` Philippe Mathieu-Daudé
2025-02-25  7:02   ` Jayakrishnan A
2025-02-25  9:34 ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).