Hi! I''m first in here. anyway I want to make kernel and hypervisor share there memory. which the kernal write memory, then hypervisor can read it. without any function like copy_from_user. I''ll use this memory very many time, so I want share memory like shmget. but using ring use push function every time. can I share memory like this way?
Konrad Rzeszutek Wilk
2011-Dec-14 21:30 UTC
Re: How to share memory with kernel and hypervisor?
On Thu, Dec 08, 2011 at 03:32:12AM +0900, DcMichael wrote:> Hi! > I''m first in here. > anyway I want to make kernel and hypervisor share there memory. > which the kernal write memory, then hypervisor can read it. > without any function like copy_from_user. > > I''ll use this memory very many time, so I want share memory like shmget. > but using ring use push function every time.Why would you want to do this? Maybe a better question is - what is your goal.> > can I share memory like this way?Sure.. You would have to setup the hypervisor to have a pagetable entry for the physical page.> > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel
On Wed, 2011-12-07 at 18:32 +0000, DcMichael wrote:> Hi! > I''m first in here. > anyway I want to make kernel and hypervisor share there memory. > which the kernal write memory, then hypervisor can read it. > without any function like copy_from_user. > > I''ll use this memory very many time, so I want share memory like shmget. > but using ring use push function every time. > > can I share memory like this way?Using share_xen_page_with_guest() might be one way. Ian.