Question to console input events
Hi,
I try to port the mini-os to ia64 and have a problem with using hypervisor call:HYPERVISOR_sched_op(SCHEDOP_block, 0);
to block the domU.
The problem is, that the domU never (or a very short time) gets blocked because the domU gets lots of console events. But all the time no data are in the console input buffer.
Can anybody explain where and when the console events are generated therewidth I can have a look in the source.
Thanks.
Dietmar.
Quoted 9 lines · Dietmar Hahn
I try to port the mini-os to ia64 and have a problem with using hypervisor call:
HYPERVISOR_sched_op(SCHEDOP_block, 0);
to block the domU.
The problem is, that the domU never (or a very short time) gets blocked because the domU gets lots of console events. But all the time no data are in the console input buffer.
Can anybody explain where and when the console events are generated therewidth I can have a look in the source.
The other end of the event channel is held by the console daemon. Its code is in tools/console/daemon. Look for its uses of xc_evtchn_notify().
-- Keir
Am Donnerstag, 11. Januar 2007 09:32 schrieb Keir Fraser:
Quoted 11 lines · Dietmar Hahn
Quoted 9 lines
I try to port the mini-os to ia64 and have a problem with using hypervisor call:
HYPERVISOR_sched_op(SCHEDOP_block, 0);
to block the domU.
The problem is, that the domU never (or a very short time) gets blocked because the domU gets lots of console events. But all the time no data are in the console input buffer.
Can anybody explain where and when the console events are generated therewidth I can have a look in the source.
Quoted 4 lines
The other end of the event channel is held by the console daemon. Its code is in
tools/console/daemon. Look for its uses ofxc_evtchn_notify().-- Keir
Hi Keir,
many thanks for your hint! Now I understand the concept and my problem. Thanks.
Dietmar.