1 message in com.xensource.lists.xen-ia64-devel[Xen-ia64-devel] "current->domain" po...
FromSent OnAttachments
Haavard Bjerke28 May 2005 07:12 
Subject:[Xen-ia64-devel] "current->domain" points to wrong domain after domU launch
From:Haavard Bjerke (hava@cern.ch)
Date:05/28/2005 07:12:53 AM
List:com.xensource.lists.xen-ia64-devel

After launching domU, current->domain->domain_id is 1, even right after
executing a hypercall from dom0. To get this result, I placed the following line
in a hypercall in hypercall.c:

printk("hypercall.c: current domain is %d\n", current->domain->domain_id);

It printed "(XEN) hypercall.c: current domain is 1", though dom0 executed the
hypercall.

This is not the way it behaves in the x86 version, where current->domain will
point to dom0.

There's no "set_current()" in Xen/ia64; how is "current" maintained?

Haavard