<Second Try>: mapping xen pages into a domain
Hi Folks,
I posted this question a few days ago. Could someone please help me with this?
Thanks,
Sanjay
Quoted 27 lines · sanjay kumar
Hi Folks,
I want to allocate a page in xen and share it with a domain so that I can use it for shared memory communication.I have allocated a page in Xen using
** base = _xmalloc(PAGE_SIZE, 0); base_pa = virt_to_phys(base);I pass this physical address of the page i.e.
base_pato dom0. I also permit access to this page to dom0 usingret = iomem_permit_access(d, base_pa, 1);from dom0, I try to ioremap this page in dom0 using the
base_paand ioremap functionbase = (unsigned long) ioremap(base_pa, PAGE_SIZE);but the call to ioremap fails. Could anyone please tell me what I am doing wrong? What is the correct way to do this.
Thanks,
Sanjay
Quoted 5 lines
--
----------------------
PhD Student, Georgia Tech
http://www.cc.gatech.edu/~ksanjay/ <http://www.cc.gatech.edu/%7Eksanjay/>
--
----------------------
PhD Student, Georgia Tech
http://www.cc.gatech.edu/~ksanjay/
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
It's not an I/O page so your method won't work. You should use share_xen_page_with_guest() in Xen, and then the guest can map that page just like any other that it owns.
-- Keir
Quoted 48 lines · sanjay kumar
Hi Folks,
I posted this question a few days ago. Could someone please help me
with this?Thanks,
SanjayOn 3/16/06, sanjay kumar <[email protected]> wrote:Hi Folks,
Quoted 29 lines
I want to allocate a page in xen and share it with a domain so that
I can use it for shared memory communication.I have allocated a page in Xen using
base =_xmalloc(PAGE_SIZE, 0);
base_pa=virt_to_phys(base);I pass this physical address of the page i.e.
base_pato dom0. I
also permit access to this page to dom0 usingret =
iomem_permit_access(d, base_pa, 1);from dom0, I try to ioremap this page in dom0 using the
base_paand
ioremap functionbase = (unsigned long)
ioremap(base_pa, PAGE_SIZE);but the call to ioremap fails. Could anyone please tell me what I am
doing wrong? What is the correct way to do this.Thanks,
SanjaySignature · 3 lines
---------------------- PhD Student, Georgia Tech http://www.cc.gatech.edu/~ksanjay/Signature · 7 lines
---------------------- PhD Student, Georgia Tech http://www.cc.gatech.edu/~ksanjay/ _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
Hi Keir,
I am kind of stuck here. Could you or someone please point me to an example code where guest (or dom0) kernel is mapping the page (allocated by Xen using share_xen_page_with_guest()) in its own memory.
Thanks,
Sanjay
Quoted 60 lines · Keir Fraser
It's not an I/O page so your method won't work. You should use
share_xen_page_with_guest()in Xen, and then the guest can map that page just like any other that it owns.-- Keir
Quoted 48 lines · sanjay kumar
Hi Folks,
I posted this question a few days ago. Could someone please help me
with this?Thanks,
SanjayOn 3/16/06, sanjay kumar <[email protected]> wrote:Hi Folks,
Quoted 25 lines
I want to allocate a page in xen and share it with a domain so that
I can use it for shared memory communication.I have allocated a page in Xen using
base =_xmalloc(PAGE_SIZE, 0);
base_pa=virt_to_phys(base);I pass this physical address of the page i.e.
base_pato dom0. I
also permit access to this page to dom0 usingret = iomem_permit_access(d, base_pa, 1);from dom0, I try to ioremap this page in dom0 using the
base_paand
ioremap functionbase = (unsigned long) ioremap(base_pa, PAGE_SIZE);but the call to ioremap fails. Could anyone please tell me what I am
doing wrong? What is the correct way to do this.Thanks,
SanjayQuoted 4 lines
--
----------------------
PhD Student, Georgia Tech
http://www.cc.gatech.edu/~ksanjay/--
----------------------
PhD Student, Georgia Tech
http://www.cc.gatech.edu/~ksanjay/
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
--
----------------------
PhD Student, Georgia Tech
http://www.cc.gatech.edu/~ksanjay/
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel