ARMV8虚拟中断的介绍

272 篇文章 414 订阅

快速链接:
.
👉👉👉 个人博客笔记导读目录(全部) 👈👈👈

在这里插入图片描述

在ARM architecture系统中,除了有IRQ、FIQ,还有VIRQ、VFIQ
在这里插入图片描述
那么怎样才能产生VFIQ、VIRQ呢?

方法一: 给寄存器HCR_EL2的下列的比特置1,就能产生一个虚拟中断到PSTATE Masking
• VI = Setting this bit registers a vIRQ.
• VF = Setting this bit registers a vFIQ.
• VSE = Setting this bit registers a vSError

产生虚拟中断后,该中断处于pending状态
在这里插入图片描述
方法二:使用gic控制器产生一个虚拟中断
The hypervisor can map the virtual CPU interface into a VM, allowing software in that VM to communicate directly with the GIC
在这里插入图片描述
在这里插入图片描述

The diagram illustrates these steps:

  1. The physical peripheral asserts its interrupt signal into the GIC.
  2. The GIC generates a physical interrupt exception, either IRQ or FIQ, which gets routed to EL2 by
    the configuration of HCR_EL2.IMO/FMO. The hypervisor identifies the peripheral and
    determines that it has been assigned to a VM. It checks which vCPU the interrupt should be
    forwarded to.
  3. The hypervisor configures the GIC to forward the physical interrupt as a virtual interrupt to the
    vCPU. The GIC will then assert the vIRQ or vFIQ signal, but the processor will ignore this signal
    while it is executing in EL2.
  4. The hypervisor returns control to the vCPU.
  5. Now that the processor is in the vCPU (EL0 or EL1), the virtual interrupt from the GIC can be
    taken. This virtual interrupt is subject to the PSTATE exception masks

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

代码改变世界ctw

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值