Hi, I have an app with two processes in windows and I want to move it to my new system. The problem is that I want to put one of the processes in my dom0 and the other one in my domU and they have to share data. I think that it is possible because I''ve seen a post saying something similar but I don''t understand it well and I''d need an example. The link of the post is: http://lists.xensource.com/archives/html/xen-devel/2006-07/msg00770.html Now I''ll try to explain my situation a little bit more. I use Xen 3.3.1 and have Ubuntu 8.10 as my dom0 and Windows XP as my domU. I have two processes where one of them writes into a counter and the other one visualizes its value. I''ve done it in windows with shared memory (using CreateFileMapping) and now I''d like to move it to my new system. My intention is putting the process that writes into the counter in Linux and the other one in Windows. In the post I''ve previously mentioned he says that he does something similar using the functions xc_domain_translate_gpfn_list and xc_map_foreign_batch. I''ve tried to understand what these functions do but I had no success and don''t know how to use them. Does anybody know anything about these functions? Has anybody done anything similar and can show me the code in order to try to understand it better? If not, where could I find an example doing something similar? Thanks in advanced, Itziar Balenciaga _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > Now I''ll try to explain my situation a little bit more. I use Xen3.3.1 and> have Ubuntu 8.10 as my dom0 and Windows XP as my domU. I have twoprocesses> where one of them writes into a counter and the other one visualizesits> value. I''ve done it in windows with shared memory (usingCreateFileMapping)> and now I''d like to move it to my new system. My intention is puttingthe> process that writes into the counter in Linux and the other one inWindows. In> the post I''ve previously mentioned he says that he does somethingsimilar> using the functions xc_domain_translate_gpfn_list andxc_map_foreign_batch.> I''ve tried to understand what these functions do but I had no successand> don''t know how to use them. Does anybody know anything about thesefunctions?> Has anybody done anything similar and can show me the code in order totry to> understand it better? If not, where could I find an example doingsomething> similar? >How often are your counters being updated? If it''s not too often then xenstore could be used for this. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
The counter is continuously changing and I refresh the window where I show the value every 500 ms. Is it too often for xenstore? -----Mensaje original----- De: James Harper [mailto:james.harper@bendigoit.com.au] Enviado el: lun 01/06/2009 14:08 Para: ITZIAR BALENCIAGA; xen-users@lists.xensource.com Asunto: RE: [Xen-users] Linux-Windows data sharing in Xen> > Now I''ll try to explain my situation a little bit more. I use Xen3.3.1 and> have Ubuntu 8.10 as my dom0 and Windows XP as my domU. I have twoprocesses> where one of them writes into a counter and the other one visualizesits> value. I''ve done it in windows with shared memory (usingCreateFileMapping)> and now I''d like to move it to my new system. My intention is puttingthe> process that writes into the counter in Linux and the other one inWindows. In> the post I''ve previously mentioned he says that he does somethingsimilar> using the functions xc_domain_translate_gpfn_list andxc_map_foreign_batch.> I''ve tried to understand what these functions do but I had no successand> don''t know how to use them. Does anybody know anything about thesefunctions?> Has anybody done anything similar and can show me the code in order totry to> understand it better? If not, where could I find an example doingsomething> similar? >How often are your counters being updated? If it''s not too often then xenstore could be used for this. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > The counter is continuously changing and I refresh the window where Ishow the> value every 500 ms. Is it too often for xenstore?So you are reading it every 500ms, but how often are you writing it? There is lots of overhead for a single write of xenstore, so if the value changes a lot then do it another way. James> > > -----Mensaje original----- > De: James Harper [mailto:james.harper@bendigoit.com.au] > Enviado el: lun 01/06/2009 14:08 > Para: ITZIAR BALENCIAGA; xen-users@lists.xensource.com > Asunto: RE: [Xen-users] Linux-Windows data sharing in Xen > > > > > Now I''ll try to explain my situation a little bit more. I use Xen > 3.3.1 and > > have Ubuntu 8.10 as my dom0 and Windows XP as my domU. I have two > processes > > where one of them writes into a counter and the other one visualizes > its > > value. I''ve done it in windows with shared memory (using > CreateFileMapping) > > and now I''d like to move it to my new system. My intention isputting> the > > process that writes into the counter in Linux and the other one in > Windows. In > > the post I''ve previously mentioned he says that he does something > similar > > using the functions xc_domain_translate_gpfn_list and > xc_map_foreign_batch. > > I''ve tried to understand what these functions do but I had nosuccess> and > > don''t know how to use them. Does anybody know anything about these > functions? > > Has anybody done anything similar and can show me the code in orderto> try to > > understand it better? If not, where could I find an example doing > something > > similar? > > > > How often are your counters being updated? If it''s not too often then > xenstore could be used for this. > > James > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I''m always writing it. I increment that value until an event happens: while((*pAcabar) == FALSE) { (*pDatos)++; } So I think I can''t use Xenstore but is it possible doing it with the functions I mentioned before (xc_domain_translate_gpfn_list and xc_map_foreign_batch) or is there any other way? -----Mensaje original----- De: James Harper [mailto:james.harper@bendigoit.com.au] Enviado el: lun 01/06/2009 15:00 Para: ITZIAR BALENCIAGA; xen-users@lists.xensource.com Asunto: RE: [Xen-users] Linux-Windows data sharing in Xen> > The counter is continuously changing and I refresh the window where Ishow the> value every 500 ms. Is it too often for xenstore?So you are reading it every 500ms, but how often are you writing it? There is lots of overhead for a single write of xenstore, so if the value changes a lot then do it another way. James> > > -----Mensaje original----- > De: James Harper [mailto:james.harper@bendigoit.com.au] > Enviado el: lun 01/06/2009 14:08 > Para: ITZIAR BALENCIAGA; xen-users@lists.xensource.com > Asunto: RE: [Xen-users] Linux-Windows data sharing in Xen > > > > > Now I''ll try to explain my situation a little bit more. I use Xen > 3.3.1 and > > have Ubuntu 8.10 as my dom0 and Windows XP as my domU. I have two > processes > > where one of them writes into a counter and the other one visualizes > its > > value. I''ve done it in windows with shared memory (using > CreateFileMapping) > > and now I''d like to move it to my new system. My intention isputting> the > > process that writes into the counter in Linux and the other one in > Windows. In > > the post I''ve previously mentioned he says that he does something > similar > > using the functions xc_domain_translate_gpfn_list and > xc_map_foreign_batch. > > I''ve tried to understand what these functions do but I had nosuccess> and > > don''t know how to use them. Does anybody know anything about these > functions? > > Has anybody done anything similar and can show me the code in orderto> try to > > understand it better? If not, where could I find an example doing > something > > similar? > > > > How often are your counters being updated? If it''s not too often then > xenstore could be used for this. > > James > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I''m always writing it. I increment that value until an event happens: while((*pAcabar) == FALSE) { (*pDatos)++; } So I think I can''t use Xenstore but is it possible doing it with the functions I mentioned before (xc_domain_translate_gpfn_list and xc_map_foreign_batch) or is there any other way? -----Mensaje original----- De: James Harper [mailto:james.harper@bendigoit.com.au] Enviado el: lun 01/06/2009 15:00 Para: ITZIAR BALENCIAGA; xen-users@lists.xensource.com Asunto: RE: [Xen-users] Linux-Windows data sharing in Xen> > The counter is continuously changing and I refresh the window where Ishow the> value every 500 ms. Is it too often for xenstore?So you are reading it every 500ms, but how often are you writing it? There is lots of overhead for a single write of xenstore, so if the value changes a lot then do it another way. James> > > -----Mensaje original----- > De: James Harper [mailto:james.harper@bendigoit.com.au] > Enviado el: lun 01/06/2009 14:08 > Para: ITZIAR BALENCIAGA; xen-users@lists.xensource.com > Asunto: RE: [Xen-users] Linux-Windows data sharing in Xen > > > > > Now I''ll try to explain my situation a little bit more. I use Xen > 3.3.1 and > > have Ubuntu 8.10 as my dom0 and Windows XP as my domU. I have two > processes > > where one of them writes into a counter and the other one visualizes > its > > value. I''ve done it in windows with shared memory (using > CreateFileMapping) > > and now I''d like to move it to my new system. My intention isputting> the > > process that writes into the counter in Linux and the other one in > Windows. In > > the post I''ve previously mentioned he says that he does something > similar > > using the functions xc_domain_translate_gpfn_list and > xc_map_foreign_batch. > > I''ve tried to understand what these functions do but I had nosuccess> and > > don''t know how to use them. Does anybody know anything about these > functions? > > Has anybody done anything similar and can show me the code in orderto> try to > > understand it better? If not, where could I find an example doing > something > > similar? > > > > How often are your counters being updated? If it''s not too often then > xenstore could be used for this. > > James > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users