[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-ia64-devel] regarding dom_fw_setup


  • To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • 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=;
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.