From: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Francesco Cipollone
<francesco.cipo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: need some help with shared memory
Date: Tue, 06 Nov 2007 00:10:45 +0200 [thread overview]
Message-ID: <472F94E5.503@qumranet.com> (raw)
In-Reply-To: <d269bda00711051154w122ef528n7e3ee07ed1daf44e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Francesco Cipollone wrote:
> Hy,
> i'm trying to do somthing like a shared memory for communication
> between host and guest
> now i'v implemented something very trivial:
> a buffer in guest kernel of dimension sizeof(STRING)+10*sizeof(char)
> where i put a STRING.
> i search from host kernel the STRING in qemu memory space (from task
> struct) and use the remaining 10 chars as a buffer.
> the problem is that when i find the string in the qemu address space i
> can't see the changes in the buffer.
> if i do some changes in buffer in GUEST i can't see these changes in
> the HOST...
> if someone is interested to this problem let me know.
> thanks
> Francesco
>
i dont understand how such thing can happn,
how do you access the guest memory?, (from task_struct ?!!?)
changing the the memory phys_ram_base is poiting to, will change the
memory the guest will see
i suggest for you to start with:
allocate in the guest block of memory,
give to the host the physical (the virtual is useless) address of this
memory, and start to play and see how each see
every change
another thing you might want to look at is:
cpu_physical_memory_rw() in qemu/exec.c
(note that this function do iomem as well as physical memory write)
(this really not going to be easy if you not familier with qemu, so feel
free to ask any "look like trivial question" you have!)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
prev parent reply other threads:[~2007-11-05 22:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 19:54 need some help with shared memory Francesco Cipollone
[not found] ` <d269bda00711051154w122ef528n7e3ee07ed1daf44e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-11-05 22:10 ` Izik Eidus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=472F94E5.503@qumranet.com \
--to=izike-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=francesco.cipo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox