Skip to contentSkip to conversation

Clock interrupts + hypervisor calls

DISCUSSION sowmya dayanand 2 participants 5 messages Feb 21, 2006 – Feb 28, 2006

lore
Share & tools
lore
#0 lore raw

Hi All,

I wanted to know if a clock interrupt from any of the guest OS interrupt/preempt a hypervisor call in xen?

Eg: say the disk access hy­per­call is in progress and a guest OS on another domain generates a clock interrupt, can this interrupt be handled in the middle of the hypervisor call or does it have to wait?

Thanks,
Sowmya.

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

#1 lore raw
Quoted 5 lines · sowmya dayanand

Hi All,

I wanted to know if a clock interrupt from any of the guest OS  interrupt/preempt a hypervisor call in xen?

Eg: say the disk access hy per call is in progress and a guest OS on another domain generates a clock interrupt, can this interrupt be handled in the middle of the hypervisor call or does it have to wait?

There is no disc access hypercall as Xen does not do I/O itself. Long-lived hypercalls can be voluntarily preempted by events. The hypercall is resumed without the guest needing to do anything special.

-- Keir

#2 lore raw

Is there a flag that the long-lived hypercalls set to indicate that they can be preempted? Also is the flag per-domain to indicate that the hypercall is in progress in the particular domain?

Thanks,
Sowmya.

Quoted 13 lines · Keir Fraser
Quoted 8 lines · sowmya dayanand

Hi All,

I wanted to know if a clock interrupt from any of the guest OS interrupt/preempt a hypervisor call in xen?

Eg: say the disk access hy per call is in progress and a guest OS on another domain generates a clock interrupt, can this interrupt be handled in the middle of the hypervisor call or does it have to wait?

Quoted 7 lines

There is no disc access hypercall as Xen does not do I/O itself. Long-lived hypercalls can be voluntarily preempted by events. The hypercall is resumed without the guest needing to do anything special.

-- Keir

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

#3 lore raw
Quoted 1 line · sowmya dayanand

Is there a flag that the long-lived hypercalls set to indicate that they can be preempted? Also is the flag per-domain to indicate that the hypercall is in progress in the particular domain?

Preemption is voluntary. Long-lived hypercalls poll for pending events / work to do.

-- Keir

#4 lore raw

My understanding is that
1) There will be only one hypercall at any point of time( there is no queue). Is this right?
2) This hypercall can poll for events/work to do in case it is preemptable. Is there any way that the hypercall can be made non-preemptable?

Thanks,
Sowmya.

Quoted 4 lines · Keir Fraser

On 28 Feb 2006, at 19:22, sowmya dayanand wrote:

Quoted 10 lines
Quoted 3 lines

Is there a flag that the long-lived hypercalls set to indicate that they can be preempted? Also is the flag per-domain to indicate that the hypercall is in progress in the particular domain?

Preemption is voluntary. Long-lived hypercalls poll for pending events / work to do.

-- Keir

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