Event Channels简要介绍

一.What is upcall
 
  This is typically supportedthrough the use of a registered callback function registered eitherdirectly by the user, or indirectly through the mechanisms of theframework.

二.How to use it
  1.Binding the channel to an eventsource(pIRQ,pIRQ,interdomain,IPI)
  2.Configure a handler for the event.

三.示例
  1.One of the first event channels that a kernelneeds to bind is thetimervirtual interrupt.
  2.The other kind of event that is commonlyrequested is the interdomain event.This is used for delivery of events between the two halvesof split drivers.
  3.not all events of this nature need to bebound; the event channels used forconsole and the XenStore arebound by the domain builder.

四.为什么需要Bind to VCPU
  绑定的含义就是让该VCPU来处理该Event。
  interdomain events are bound to VCPU 0 when theyare created, but can later be rebound to another VCPU.
 每个事件通道(不管是pIRQ,vIRQ,还是Interdomain)都会绑定到特定的VCPU,一般就是VCPU[0]。

五.HVM怎么使用event channel
  HVM也有自己的shared infopage。PV驱动能认识它们,PV也必须使用它们才能和后端驱动通信。

六.Event和Scheduling有什么关系吗
  有一种操作:现在休眠吧,直到有event来临。
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值