silly questions: struct start_info
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
Signature · 2 lines
"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)
Quoted 5 lines
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.
Quoted 1 line
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
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"KF" == Keir Fraser <[email protected]> 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
Signature · 2 lines
"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)
Quoted 5 lines · Jimi Xenidis
KF> No. Only the initial page tables are write-protected when the
domain
KF> starts.does
nr_pagesinclude these pages?
Yes, it includes all pages allocated to the domain.
-- Keir
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"KF" == Keir Fraser <[email protected]> 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
Signature · 2 lines
"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)
Quoted 11 lines · Jimi Xenidis
Quoted 2 lines
Quoted 2 lines
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
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"KF" == Keir Fraser <[email protected]> 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
Signature · 2 lines
"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)
Quoted 11 lines · Jimi Xenidis
KF> They are allocated from the domain's reservation, it's just that
they
KF> map themselves read-only.
arch/x86/domain.carch_do_createdomain253d->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_infoout 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
Re: vnet compile problems
In reply to Jimi XenidisI'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.
Re: vnet compile problems
In reply to Jimi XenidisI 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.