WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] regarding dom_fw_setup

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] regarding dom_fw_setup
From: jeet <jeet_sat12@xxxxxxxxxxx>
Date: Sun, 3 Jun 2007 17:02:51 +0530 (IST)
Delivery-date: Sun, 03 Jun 2007 04:30:50 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=qCovJQlH8auqSNjsdFPx00wRIYAyzpedA5Dfo1ERjPT67urRSdfsX5hlznUX2gpsCHLIZK217nQ9Fv53KGUwYlAJewcITlR74nCkjmQkuG79YaiiCX3oSc9qHKO+jr3SDomX07BxfRevyX5NQFJmVBYZuRnrq/BQFnidUeLRkiA=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi All

I am looking into code of construct_dom0()

which call dom_fw_setup() to setup the firmware related mapping in 
domain identity mapped virtual address space

But in dom_fw_setup() it there is a code as below

<snippet start>
  /* Create page for acpi tables.  */
       if (d != dom0) {
            void *imva;
 
             assign_new_domain_page_if_dom0(d, FW_ACPI_BASE_PADDR);
                 imva = doamin_mps_to_imva (d, FW_ACPI_BASE_PADDR);
                dom_fw_fake_acpi(d, (struct fake_acpi_tables *)imva);
        }
<snippet end>

here if it is not dom0 then it call 
assign_new_domain_page_if_dom0

but inside this it checking if dom=dom0 then it assign page otherwise return
So what is purpose of this code here?

or the check should be if (d == dom0) ?

jeet




      Looking for people who are YOUR TYPE? Find them at in.groups.yahoo.com

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>