* Hypercall invoking @ 2016-05-10 6:49 tutu sky 2016-05-10 7:32 ` Dario Faggioli 0 siblings, 1 reply; 4+ messages in thread From: tutu sky @ 2016-05-10 6:49 UTC (permalink / raw) To: Xen-devel@lists.xen.org Hi, I added a new hypercall to xen successfully, but when i try to invoke it in dom0 using privcmd, i am unable to invoke (using XC), I must cd to /xen.x.y.z/tools/xcutils and then try to invoke hypercall by XC interface which i created for it. DO functions of hypercall is written in /xen/common/kernel.c. can you give me a clue? Regards. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hypercall invoking 2016-05-10 6:49 Hypercall invoking tutu sky @ 2016-05-10 7:32 ` Dario Faggioli 2016-05-10 10:12 ` tutu sky 0 siblings, 1 reply; 4+ messages in thread From: Dario Faggioli @ 2016-05-10 7:32 UTC (permalink / raw) To: tutu sky, Xen-devel@lists.xen.org [-- Attachment #1.1: Type: text/plain, Size: 1297 bytes --] On Tue, 2016-05-10 at 06:49 +0000, tutu sky wrote: > Hi, > I added a new hypercall to xen successfully, but when i try to invoke > it in dom0 using privcmd, i am unable to invoke (using XC), I must cd > to /xen.x.y.z/tools/xcutils and then try to invoke hypercall by XC > interface which i created for it. > DO functions of hypercall is written in /xen/common/kernel.c. > > can you give me a clue? > That depends on what you are trying to achieve, and on what you have implemented and how you have implemented it. Actually, this is not the first time we tell you this: without you being specific, we can't possibly help. In this case, "being specific" would have meant specifying: - what is your final end goal - what is your plan to reach it - what you have implemented already of such plan Showing the code of what you have already implemented is, in theory, not strictly necessary, but it would help a lot (and may become necessary, at some point, for being able to help you effectively). Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 819 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hypercall invoking 2016-05-10 7:32 ` Dario Faggioli @ 2016-05-10 10:12 ` tutu sky 2016-05-10 15:42 ` Meng Xu 0 siblings, 1 reply; 4+ messages in thread From: tutu sky @ 2016-05-10 10:12 UTC (permalink / raw) To: Dario Faggioli, Xen-devel@lists.xen.org ________________________________________ From: Dario Faggioli <dario.faggioli@citrix.com> Sent: Tuesday, May 10, 2016 7:32 AM To: tutu sky; Xen-devel@lists.xen.org Subject: Re: [Xen-devel] Hypercall invoking On Tue, 2016-05-10 at 06:49 +0000, tutu sky wrote: > Hi, > I added a new hypercall to xen successfully, but when i try to invoke > it in dom0 using privcmd, i am unable to invoke (using XC), I must cd > to /xen.x.y.z/tools/xcutils and then try to invoke hypercall by XC > interface which i created for it. > DO functions of hypercall is written in /xen/common/kernel.c. > > can you give me a clue? > That depends on what you are trying to achieve, and on what you have implemented and how you have implemented it. Actually, this is not the first time we tell you this: without you being specific, we can't possibly help. In this case, "being specific" would have meant specifying: - what is your final end goal - what is your plan to reach it my first goal was that being able to call a hypercall in user pace program (such as system call) in order to do some privilege functions by calling it. it was not successful though i didn't know which header files must be included and then i understand that because of security reasons it is not possible. then my goal chnaged to just be able for invoking a hypercall from user space. after i was unsuccessful for using xen itself hypercalls in user space, i tried to create my own hypercall, doing just a simple printk. - what you have implemented already of such plan I did these steps: 1- create .quad and then .byte in entry.S for it 2-create a prototype in hypercall.h 3-a body for it in kernel.c (a simple printk) now try for using tools for invoking it: 4- add a function in xc_private.h in order to being able for calling hypercall. 5- using the mentioned function in xc_private.h by creating a new C file in xcutils (with #include <xc_private.h>) 6- make changes in Makefile exists in /tools/xcutils directory in order to correct make (if any part code is needed let me know) Regards. Showing the code of what you have already implemented is, in theory, not strictly necessary, but it would help a lot (and may become necessary, at some point, for being able to help you effectively). Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hypercall invoking 2016-05-10 10:12 ` tutu sky @ 2016-05-10 15:42 ` Meng Xu 0 siblings, 0 replies; 4+ messages in thread From: Meng Xu @ 2016-05-10 15:42 UTC (permalink / raw) To: tutu sky; +Cc: Dario Faggioli, Xen-devel@lists.xen.org [-- Attachment #1.1: Type: text/plain, Size: 1489 bytes --] On Tue, May 10, 2016 at 6:12 AM, tutu sky <ooohooo_u@hotmail.com> wrote: > > > ________________________________________ > From: Dario Faggioli <dario.faggioli@citrix.com> > Sent: Tuesday, May 10, 2016 7:32 AM > To: tutu sky; Xen-devel@lists.xen.org > Subject: Re: [Xen-devel] Hypercall invoking > > On Tue, 2016-05-10 at 06:49 +0000, tutu sky wrote: > > Hi, > > I added a new hypercall to xen successfully, but when i try to invoke > > it in dom0 using privcmd, i am unable to invoke (using XC), I must cd > > to /xen.x.y.z/tools/xcutils and then try to invoke hypercall by XC > > interface which i created for it. > > DO functions of hypercall is written in /xen/common/kernel.c. > > > > can you give me a clue? > > > That depends on what you are trying to achieve, and on what you have > implemented and how you have implemented it. > > Actually, this is not the first time we tell you this: without you > being specific, we can't possibly help. > > In this case, "being specific" would have meant specifying: > - what is your final end goal > I think Dario meant why you want to add a hypercall? What is your "final" goal to add the hypercall? Probably it is just unnecessary to add a hypercall to achieve your final goal. I'm just curious if you could give a self introduction. ;-) Meng ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ [-- Attachment #1.2: Type: text/html, Size: 2495 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-10 15:42 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-05-10 6:49 Hypercall invoking tutu sky 2016-05-10 7:32 ` Dario Faggioli 2016-05-10 10:12 ` tutu sky 2016-05-10 15:42 ` Meng Xu
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.