typedef struct start_info { /* THE FOLLOWING ARE FILLED IN BOTH ON INITIAL BOOT AND ON RESUME. */ By resume, do you mean after checkpoint or migration, or every restore? by restore I mean domain context switch. I can understand nr_pages and flags for every restore, but I would not expect the rest to change, do they? unsigned long nr_pages; /* Total pages allocated to this domain. */ unsigned long shared_info; /* MACHINE address of shared info struct. */ u32 flags; /* SIF_xxx flags. */ unsigned long store_mfn; /* MACHINE page number of shared page. */ u16 store_evtchn; /* Event channel for store communication. */ unsigned long console_mfn; /* MACHINE address of console page. */ u16 console_evtchn; /* Event channel for console messages. */ Are any of these pages (*_mfn) part of some protection (read-only) scheme? -JX -- "I got an idea, an idea so smart my head would explode if I even began to know what I was talking about." -- Peter Griffin (Family Guy) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> By resume, do you mean after checkpoint or migration, or every > restore? > > by restore I mean domain context switch.We mean after save/restore or migration, not context switch.> Are any of these pages (*_mfn) part of some protection (read-only) > scheme?No. Only the initial page tables are write-protected when the domain starts. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
>>>>> "KF" == Keir Fraser <Keir.Fraser@cl.cam.ac.uk> writes:>> Are any of these pages (*_mfn) part of some protection (read-only) >> scheme? KF> No. Only the initial page tables are write-protected when the domain KF> starts. does nr_pages include these pages? -JX -- "I got an idea, an idea so smart my head would explode if I even began to know what I was talking about." -- Peter Griffin (Family Guy) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 30 Sep 2005, at 15:11, Jimi Xenidis wrote:> KF> No. Only the initial page tables are write-protected when the > domain > KF> starts. > > does nr_pages include these pages?Yes, it includes all pages allocated to the domain. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 30 Sep 2005, at 16:45, Jimi Xenidis wrote:>>> Are any of these pages (*_mfn) part of some protection (read-only) >>> scheme? > > KF> No. Only the initial page tables are write-protected when the > domain > KF> starts. > > Ok, I would like to "host" these pages out of the pixed set of pages > given to the domain, rather than from other pages (Xen, or dom0), this > should not complicate Xen, but may complicate managment tools (which I > am not quite familiar with). Do you see any issues with this?They are allocated from the domain''s reservation, it''s just that they map themselves read-only. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
>>>>> "KF" == Keir Fraser <Keir.Fraser@cl.cam.ac.uk> writes:>> Are any of these pages (*_mfn) part of some protection (read-only) >> scheme? KF> No. Only the initial page tables are write-protected when the domain KF> starts. Ok, I would like to "host" these pages out of the pixed set of pages given to the domain, rather than from other pages (Xen, or dom0), this should not complicate Xen, but may complicate managment tools (which I am not quite familiar with). Do you see any issues with this? -JX -- "I got an idea, an idea so smart my head would explode if I even began to know what I was talking about." -- Peter Griffin (Family Guy) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
>>>>> "KF" == Keir Fraser <Keir.Fraser@cl.cam.ac.uk> writes:KF> On 30 Sep 2005, at 16:45, Jimi Xenidis wrote: KF> They are allocated from the domain''s reservation, it''s just that they KF> map themselves read-only. arch/x86/domain.c arch_do_createdomain 253 d->shared_info = alloc_xenheap_page(); I assume this is done so Xen can access easily (without any xlate issues). On PPC we don''t have any such issues so allocating the shared_info out of the domain seems more natural. It sounds like there is no objection to this strategy, correct? -JX -- "I got an idea, an idea so smart my head would explode if I even began to know what I was talking about." -- Peter Griffin (Family Guy) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 30 Sep 2005, at 17:09, Jimi Xenidis wrote:> KF> They are allocated from the domain''s reservation, it''s just that > they > KF> map themselves read-only. > > arch/x86/domain.c arch_do_createdomain 253 d->shared_info = > alloc_xenheap_page(); > > I assume this is done so Xen can access easily (without any xlate > issues). On PPC we don''t have any such issues so allocating the > shared_info out of the domain seems more natural. > > It sounds like there is no objection to this strategy, correct?I think you will end up finding all sorts of assumptions in the tools that this page is not part of the domain''s normal reservation. Unless you have a really good reason to allocate the page out of the normal reservation I would advise against it. I agree it would be the neater way if x86 didn''t need to do it the other way. But that''s not the case and, if it''s not broken I don''t think you should try to fix it. :-) -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I''m an italian user of Xen. I have Xen 2.0.7. When I try to compile the vnet tool, I receive an error in the file vnetd/vcache.c, at the line 103: the structure VarpHdr hasn''t members "id" and "opcode". I have typed "make install" in the xen-2.0/tools/vnet/. How can I resolve this problem? Have I made a mistake? Ferrucci Luca ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I writed a mail yesterday on this list. Can someone resolve my problem about vnet? You can read my last mail. I need for an answer, please help me! Ferrucci Luca ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel