Skip to contentSkip to conversation

A domain id 0x00007fff in the result of xentrace

Xen-devel Tommy Huang 2 participants 2 messages Nov 30, 2008

lore
Share & tools
lore
#0 lore raw

Thanks for the information. I used "0x00007fff" to search so I didn't find any result :-(.
Does it mean that the scheduler schedules this IDLE_DOMAIN when the vcpu yields voluntarily?
I saw this idle_domain was scheduled pretty frequently.
In what situation the scheduler will schedule this idle domain? Thanks.

- T.H.

2008/11/29, James Harper <[email protected]>:

Quoted 24 lines
Quoted 6 lines

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.

Quoted 1 line

Does anyone know what that domain is? I search the id "0x00007fff" in

all

Quoted 3 lines

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

#1 lore raw
Quoted 7 lines · Tommy Huang

Thanks for the information. I used "0x00007fff" to search so I didn't find any result :-(.
Does it mean that the scheduler schedules this IDLE_DOMAIN when the vcpu yields voluntarily?
I saw this idle_domain was scheduled pretty frequently.
In what situation the scheduler will schedule this idle domain? Thanks.

When it has nothing else to run (no other VCPU currently runnable on this CPU).

-- Keir