Skip to contentSkip to conversation

some questions about vcpu?

DISCUSSION Haifeng Fang 2 participants 2 messages Jan 20, 2010

lore
Share & tools
lore
#0 lore raw

hi, all

Recently, I want to add a hidden domain in Xen. So I have studied the source codes related to idle-vcpu.
Now, I have implemented a hidden domain, which contains a vcpu similar to idle-vcpu. In this vcpu, it used the same page-table with idle-vcpu, that is, idle_pg_table, so the vcpu can access the memory within xen hypervisor address space. Being apparent, this vcpu is like a kernel thread of linux.

Fortunately, the method is good when the changed xen is running under single physical CPU, while the running speed of domain became a little slow. However, when the changed xen is installed onto the machine with dual-core, the machine is dead. So, how can I solve the problem? If the death of machine is due to the vcpu's synchronization.

who can give me some advise?

Thanks in advance.

--Haifeng Fang
Beijing China

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Do you have a serial console set up? That's step number 1 in dealing with Xen hangs.

Step 2 is adding "watchdog" to the command line, so if Xen hangs for more than a few seconds, you get a stack trace of where each cpu is waiting.

-George

2010/1/20 Haifeng Fang <[email protected]>:

Quoted 27 lines

hi, all

Recently, I want to add a hidden domain in Xen. So I have studied the source codes related to idle-vcpu.
Now, I have implemented a hidden domain, which contains a vcpu similar to idle-vcpu. In this vcpu, it used the same page-table with idle-vcpu, that is, idle_pg_table, so the vcpu can access the memory within xen hypervisor address space. Being apparent, this vcpu is like a kernel thread of linux.

Fortunately, the method is good when the changed xen is running under single physical CPU, while the running speed of domain became a little slow. However, when the changed xen is installed onto the machine with dual-core, the machine is dead. So, how can I solve the problem? If the death of machine is due to the vcpu's synchronization.

who can give me some advise?

Thanks in advance.

--Haifeng Fang
Beijing China
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel