* auto_translated_physmap in Fedora
@ 2006-07-07 2:07 Pete Zaitcev
2006-07-07 2:12 ` Rik van Riel
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Pete Zaitcev @ 2006-07-07 2:07 UTC (permalink / raw)
To: xen-devel; +Cc: zaitcev, quintela
I noticed one curious thing while working on some issues with Fedora.
At least in 2.6.17-1.2302_FC6xen, the following evaluates to false:
if (xen_feature(XENFEAT_auto_translated_physmap))
return pfn;
But the head-xen.S looks like this:
.section __xen_guest
.ascii "GUEST_OS=linux,GUEST_VER=2.6"
.ascii ",XEN_VER=xen-3.0"
.ascii ",VIRT_BASE=0x"; utoh __START_KERNEL_map
.ascii ",HYPERCALL_PAGE=0x"; utoh (phys_hypercall_page >> PAGE_SHIFT)
.ascii ",FEATURES=writable_page_tables"
.ascii "|writable_descriptor_tables"
.ascii "|auto_translated_physmap"
.ascii "|supervisor_mode_kernel"
.ascii ",LOADER=generic"
.byte 0
Everything continues to work just fine, thanks to runtime checks
of xen_feature() like the above.
So I am curious, if this is something anyone cares about.
Also, why does it happen? If it's a feature which cannot be enabled
(anymore), perhaps we can simply the code and get some performance
by removing the run-time checks.
Greetings,
-- Pete
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: auto_translated_physmap in Fedora
2006-07-07 2:07 auto_translated_physmap in Fedora Pete Zaitcev
@ 2006-07-07 2:12 ` Rik van Riel
2006-07-08 9:48 ` Christian Limpach
2006-07-10 11:44 ` Keir Fraser
2 siblings, 0 replies; 4+ messages in thread
From: Rik van Riel @ 2006-07-07 2:12 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: xen-devel, quintela
Pete Zaitcev wrote:
> I noticed one curious thing while working on some issues with Fedora.
> At least in 2.6.17-1.2302_FC6xen, the following evaluates to false:
>
> if (xen_feature(XENFEAT_auto_translated_physmap))
> return pfn;
> So I am curious, if this is something anyone cares about.
> Also, why does it happen? If it's a feature which cannot be enabled
> (anymore), perhaps we can simply the code and get some performance
> by removing the run-time checks.
Well, when doing migration (especially during migration)
maybe the mode is switched ?
I know we go into shadow pagetable mode during migration...
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: auto_translated_physmap in Fedora
2006-07-07 2:07 auto_translated_physmap in Fedora Pete Zaitcev
2006-07-07 2:12 ` Rik van Riel
@ 2006-07-08 9:48 ` Christian Limpach
2006-07-10 11:44 ` Keir Fraser
2 siblings, 0 replies; 4+ messages in thread
From: Christian Limpach @ 2006-07-08 9:48 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: xen-devel, quintela
On 7/7/06, Pete Zaitcev <zaitcev@redhat.com> wrote:
> I noticed one curious thing while working on some issues with Fedora.
> At least in 2.6.17-1.2302_FC6xen, the following evaluates to false:
>
> if (xen_feature(XENFEAT_auto_translated_physmap))
> return pfn;
>
> But the head-xen.S looks like this:
>
> .section __xen_guest
> .ascii "GUEST_OS=linux,GUEST_VER=2.6"
> .ascii ",XEN_VER=xen-3.0"
> .ascii ",VIRT_BASE=0x"; utoh __START_KERNEL_map
> .ascii ",HYPERCALL_PAGE=0x"; utoh (phys_hypercall_page >> PAGE_SHIFT)
> .ascii ",FEATURES=writable_page_tables"
> .ascii "|writable_descriptor_tables"
> .ascii "|auto_translated_physmap"
> .ascii "|supervisor_mode_kernel"
> .ascii ",LOADER=generic"
> .byte 0
>
> Everything continues to work just fine, thanks to runtime checks
> of xen_feature() like the above.
>
> So I am curious, if this is something anyone cares about.
> Also, why does it happen? If it's a feature which cannot be enabled
> (anymore), perhaps we can simply the code and get some performance
> by removing the run-time checks.
It can be enabled by passing a feaures value to the domain builder
which enables it. In its header, the guest advertises which features
it doesn't support (by not listing them), which features it supports
(by listing them) and which features it requires (by listing them
prefixed with a ! -- as used in the upstream patchqueue kernel). This
leaves some freedom to the user and/or the hypervisor to
enable/disable features they think give better performance and/or do
not exist yet or anymore in the hypervisor.
I don't think you'll get any performance from removing these, most are
on non-critical code patch and we've been careful to make the checks
on any critical path very fast. That's the main reason why the
feature bits get unpacked within the guest on boot, allowing them to
get or'ed into existing conditions.
christian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: auto_translated_physmap in Fedora
2006-07-07 2:07 auto_translated_physmap in Fedora Pete Zaitcev
2006-07-07 2:12 ` Rik van Riel
2006-07-08 9:48 ` Christian Limpach
@ 2006-07-10 11:44 ` Keir Fraser
2 siblings, 0 replies; 4+ messages in thread
From: Keir Fraser @ 2006-07-10 11:44 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: xen-devel, quintela
On 7 Jul 2006, at 03:07, Pete Zaitcev wrote:
> I noticed one curious thing while working on some issues with Fedora.
> At least in 2.6.17-1.2302_FC6xen, the following evaluates to false:
>
> if (xen_feature(XENFEAT_auto_translated_physmap))
> return pfn;
>
> But the head-xen.S looks like this:
>
> .section __xen_guest
> .ascii "GUEST_OS=linux,GUEST_VER=2.6"
> .ascii ",XEN_VER=xen-3.0"
> .ascii ",VIRT_BASE=0x"; utoh __START_KERNEL_map
> .ascii ",HYPERCALL_PAGE=0x"; utoh (phys_hypercall_page >>
> PAGE_SHIFT)
> .ascii ",FEATURES=writable_page_tables"
> .ascii "|writable_descriptor_tables"
> .ascii "|auto_translated_physmap"
> .ascii "|supervisor_mode_kernel"
> .ascii ",LOADER=generic"
> .byte 0
>
> Everything continues to work just fine, thanks to runtime checks
> of xen_feature() like the above.
The header includes 'auto_translated_physmap' indicating that the guest
can handle that feature, but does not require it to be enabled.
-- Keir
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-10 11:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-07 2:07 auto_translated_physmap in Fedora Pete Zaitcev
2006-07-07 2:12 ` Rik van Riel
2006-07-08 9:48 ` Christian Limpach
2006-07-10 11:44 ` Keir Fraser
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.