Tommy Huang
2008-Nov-30 03:33 UTC
[Xen-devel] A domain id 0x00007fff in the result of xentrace
Hi, When I used xentrace to get all domain events, I found that the xen scheduler periodically scheduled a domain with id 0x00007fff. However, that domain didn''t issue any hypercall or exception. Because I didn''t create any domain only the default dom0, I supposed I could only see dom0. Does anyone know what that domain is? I search the id "0x00007fff" in all xen source files but didn''t find any result. Any information is appreciated. Thanks in advance. Regards, - T.H. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
James Harper
2008-Nov-30 03:50 UTC
RE: [Xen-devel] A domain id 0x00007fff in the result of xentrace
> Hi, > > When I used xentrace to get all domain events, I found that the xen > scheduler periodically scheduled a domain with id 0x00007fff. However, > that domain didn''t issue any hypercall or exception. Because I didn''t > create any domain only the default dom0, I supposed I could only seedom0.> Does anyone know what that domain is? I search the id "0x00007fff" inall> xen source files but didn''t find any result. Any information is > appreciated. Thanks in advance. >A quick grep for 0x7fff in the sources for the hypervisor says: #define IDLE_DOMAIN_ID (0x7FFFU) #define is_idle_domain(d) ((d)->domain_id == IDLE_DOMAIN_ID) #define is_idle_vcpu(v) (is_idle_domain((v)->domain)) Does this limit us to 32766 DomU''s before we need a reboot to reset the id count? James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2008-Nov-30 08:46 UTC
Re: [Xen-devel] A domain id 0x00007fff in the result of xentrace
On 30/11/08 03:50, "James Harper" <james.harper@bendigoit.com.au> wrote:> A quick grep for 0x7fff in the sources for the hypervisor says: > > #define IDLE_DOMAIN_ID (0x7FFFU) > #define is_idle_domain(d) ((d)->domain_id == IDLE_DOMAIN_ID) > #define is_idle_vcpu(v) (is_idle_domain((v)->domain)) > > Does this limit us to 32766 DomU''s before we need a reboot to reset the > id count?Domain IDs are reusable. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel