virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* Help - KVM TODO_NOV2008_Sharing Memory between guests
@ 2009-02-21 13:35 PICT PUNE
  2009-02-25 13:38 ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: PICT PUNE @ 2009-02-21 13:35 UTC (permalink / raw)
  To: virtualization


[-- Attachment #1.1: Type: text/plain, Size: 344 bytes --]

In reference to the November 2008 todo list on Qumranet Website
we are a group of college students working on this todo:

*Add a qemu interface for sharing memory between guests. Using a pci device
to expose the shared memory is probably a good starting point.
*
Can anyone suggest us some starting point or a possible approach for the
same...

[-- Attachment #1.2: Type: text/html, Size: 396 bytes --]

[-- Attachment #2: Type: text/plain, Size: 184 bytes --]

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization

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

* Re: Help - KVM TODO_NOV2008_Sharing Memory between guests
  2009-02-21 13:35 Help - KVM TODO_NOV2008_Sharing Memory between guests PICT PUNE
@ 2009-02-25 13:38 ` Avi Kivity
  2009-02-25 15:41   ` Anthony Liguori
  0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2009-02-25 13:38 UTC (permalink / raw)
  To: PICT PUNE; +Cc: virtualization

PICT PUNE wrote:
> In reference to the November 2008 todo list on Qumranet Website
>
> we are a group of college students working on this todo:
>
> *Add a qemu interface for sharing memory between guests. Using a pci 
> device to expose the shared memory is probably a good starting point.
> *
> Can anyone suggest us some starting point or a possible approach for 
> the same...

Write a PCI device that exposes a BAR containing RAM.  Implement the RAM 
by mapping a shared memory segment or a file.  Write a guest driver to 
use this shared RAM.

-- 
error compiling committee.c: too many arguments to function

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

* Re: Help - KVM TODO_NOV2008_Sharing Memory between guests
  2009-02-25 13:38 ` Avi Kivity
@ 2009-02-25 15:41   ` Anthony Liguori
  2009-03-04 14:12     ` PICT PUNE
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Liguori @ 2009-02-25 15:41 UTC (permalink / raw)
  To: Avi Kivity; +Cc: PICT PUNE, virtualization

Avi Kivity wrote:
> PICT PUNE wrote:
>> In reference to the November 2008 todo list on Qumranet Website
>>
>> we are a group of college students working on this todo:
>>
>> *Add a qemu interface for sharing memory between guests. Using a pci 
>> device to expose the shared memory is probably a good starting point.
>> *
>> Can anyone suggest us some starting point or a possible approach for 
>> the same...
> 
> Write a PCI device that exposes a BAR containing RAM.  Implement the RAM 
> by mapping a shared memory segment or a file.  Write a guest driver to 
> use this shared RAM.
>

Or implement a virtio device that can advertise available shared memory 
segments.  Have guest allocate its own memory to send to host that 
becomes the shared memory segment.

Expose shared memory mappings via a virtual file system (similar to 
hugetlbfs or ramfs).

Using PCI BARs implies static shared memory mappings.  For a long 
running VM, you're likely to want to support dynamic shared memory mappings.

Also exposing a simple signaling mechanism with this too would allow for 
shared ring queues to be implemented in userspace between guests.

Regards,

Anthony Liguori

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

* Re: Help - KVM TODO_NOV2008_Sharing Memory between guests
  2009-02-25 15:41   ` Anthony Liguori
@ 2009-03-04 14:12     ` PICT PUNE
  2009-03-08 14:21       ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: PICT PUNE @ 2009-03-04 14:12 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Avi Kivity, virtualization


[-- Attachment #1.1: Type: text/plain, Size: 1739 bytes --]

On Wed, Feb 25, 2009 at 9:11 PM, Anthony Liguori <anthony@codemonkey.ws>wrote:

> Avi Kivity wrote:
>
>> PICT PUNE wrote:
>>
>>> In reference to the November 2008 todo list on Qumranet Website
>>>
>>> we are a group of college students working on this todo:
>>>
>>> *Add a qemu interface for sharing memory between guests. Using a pci
>>> device to expose the shared memory is probably a good starting point.
>>> *
>>> Can anyone suggest us some starting point or a possible approach for the
>>> same...
>>>
>>
>> Write a PCI device that exposes a BAR containing RAM.  Implement the RAM
>> by mapping a shared memory segment or a file.  Write a guest driver to use
>> this shared RAM.
>>
>>
> Or implement a virtio device that can advertise available shared memory
> segments.  Have guest allocate its own memory to send to host that becomes
> the shared memory segment.
>
> Expose shared memory mappings via a virtual file system (similar to
> hugetlbfs or ramfs).
>
> Using PCI BARs implies static shared memory mappings.  For a long running
> VM, you're likely to want to support dynamic shared memory mappings.
>
> Also exposing a simple signaling mechanism with this too would allow for
> shared ring queues to be implemented in userspace between guests.
>
> Regards,
>
> Anthony Liguori
>

Hello Mr. Avi Kivity  and Mr. Anthony Liguori

Thanks for your early reply. We expecting the same approach. We are in
process of making clusters of free memory  and reserve these memory as a
fake PCI device for the guest  OS. this device will be then passed using PCI
passthrough  to the guest from the host. Can you please help us in faking
the free memory cluster as a PCI device. Thanking in anticipation.


Regards,

PICT Pune BE Students

[-- Attachment #1.2: Type: text/html, Size: 2418 bytes --]

[-- Attachment #2: Type: text/plain, Size: 184 bytes --]

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization

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

* Re: Help - KVM TODO_NOV2008_Sharing Memory between guests
  2009-03-04 14:12     ` PICT PUNE
@ 2009-03-08 14:21       ` Avi Kivity
  0 siblings, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2009-03-08 14:21 UTC (permalink / raw)
  To: PICT PUNE; +Cc: Anthony Liguori, virtualization

PICT PUNE wrote:
>
>
> On Wed, Feb 25, 2009 at 9:11 PM, Anthony Liguori 
> <anthony@codemonkey.ws <mailto:anthony@codemonkey.ws>> wrote:
>
>     Avi Kivity wrote:
>
>         PICT PUNE wrote:
>
>             In reference to the November 2008 todo list on Qumranet
>             Website
>
>             we are a group of college students working on this todo:
>
>             *Add a qemu interface for sharing memory between guests.
>             Using a pci device to expose the shared memory is probably
>             a good starting point.
>             *
>             Can anyone suggest us some starting point or a possible
>             approach for the same...
>
>
>         Write a PCI device that exposes a BAR containing RAM.
>          Implement the RAM by mapping a shared memory segment or a
>         file.  Write a guest driver to use this shared RAM.
>
>
>     Or implement a virtio device that can advertise available shared
>     memory segments.  Have guest allocate its own memory to send to
>     host that becomes the shared memory segment.
>
>     Expose shared memory mappings via a virtual file system (similar
>     to hugetlbfs or ramfs).
>
>     Using PCI BARs implies static shared memory mappings.  For a long
>     running VM, you're likely to want to support dynamic shared memory
>     mappings.
>
>     Also exposing a simple signaling mechanism with this too would
>     allow for shared ring queues to be implemented in userspace
>     between guests.
>
>     Regards,
>
>     Anthony Liguori
>
>
> Hello Mr. Avi Kivity  and Mr. Anthony Liguori
>
> Thanks for your early reply. We expecting the same approach.

There were two approaches outlined above.  Which one do you mean?

> We are in process of making clusters of free memory  and reserve these 
> memory as a fake PCI device for the guest  OS. this device will be 
> then passed using PCI passthrough  to the guest from the host.

PCI passthrough does not make much sense in this context, is this what 
you meant?

> Can you please help us in faking the free memory cluster as a PCI 
> device. Thanking in anticipation.
>

I suggest reading the code of framebuffer devices such as vga.c.

-- 
error compiling committee.c: too many arguments to function

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

end of thread, other threads:[~2009-03-08 14:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-21 13:35 Help - KVM TODO_NOV2008_Sharing Memory between guests PICT PUNE
2009-02-25 13:38 ` Avi Kivity
2009-02-25 15:41   ` Anthony Liguori
2009-03-04 14:12     ` PICT PUNE
2009-03-08 14:21       ` Avi Kivity

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).