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

[Xen-changelog] Fix for regular (non-shadow translate) dom0's



ChangeSet 1.1252.1.1, 2005/03/22 16:43:11+00:00, mafetter@xxxxxxxxxxxxxxxx

        Fix for regular (non-shadow translate) dom0's
        
        Signed-off-by: michael.fetterman@xxxxxxxxxxxx



 domain_build.c |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)


diff -Nru a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       2005-04-05 12:15:42 -04:00
+++ b/xen/arch/x86/domain_build.c       2005-04-05 12:15:42 -04:00
@@ -452,15 +452,17 @@
     si = (start_info_t *)vstartinfo_start;
     memset(si, 0, PAGE_SIZE);
     si->nr_pages     = nr_pages;
-#define NASTY_HACK
-#ifdef NASTY_HACK
-    si->shared_info  = d->next_io_page << PAGE_SHIFT;
-    set_machinetophys(virt_to_phys(d->shared_info) >> PAGE_SHIFT,
-                      d->next_io_page);
-    d->next_io_page++;
-#else
-    si->shared_info  = virt_to_phys(d->shared_info);
-#endif
+
+    if ( opt_dom0_translate )
+    {
+        si->shared_info  = d->next_io_page << PAGE_SHIFT;
+        set_machinetophys(virt_to_phys(d->shared_info) >> PAGE_SHIFT,
+                          d->next_io_page);
+        d->next_io_page++;
+    }
+    else
+        si->shared_info  = virt_to_phys(d->shared_info);
+
     si->flags        = SIF_PRIVILEGED | SIF_INITDOMAIN;
     si->pt_base      = vpt_start;
     si->nr_pt_frames = nr_pt_pages;

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


 


Rackspace

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