From: Keir Fraser Subject: Re: auto_translated_physmap in Fedora Date: Mon, 10 Jul 2006 12:44:24 +0100 Message-ID: <50f500c3ec2ed7bf7dbe9d6dc8933c7c@cl.cam.ac.uk> References: <20060706190738.4f611e63.zaitcev@redhat.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060706190738.4f611e63.zaitcev@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Pete Zaitcev Cc: xen-devel@lists.xensource.com, quintela@redhat.com List-Id: xen-devel@lists.xenproject.org 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