lkml.org 
[lkml]   [2022]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject答复: [PATCH v2] KVM: X86: Introduce vfio int r stat per-vm debugfs file
Date
> 主题: [PATCH v2] KVM: X86: Introduce vfio_intr_stat per-vm debugfs file
>
> Use this file to export correspondence between guest_irq, host_irq, vector and
> vcpu belonging to VFIO passthrough devices.
>
> An example output of this looks like (a vm with VFIO passthrough
> devices):
> guest_irq host_irq vector vcpu
> 24 201 37 8
> 25 202 35 25
> 26 203 35 20
> ......
>
> When a VM has VFIO passthrough devices, the correspondence between
> guest_irq, host_irq, vector and vcpu may need to be known especially in AMD
> platform with avic disabled. The AMD avic is disabled, and the passthrough
> devices may cause vcpu vm exit twice for a interrupt.
> One extrernal interrupt caused by vfio host irq, other ipi to inject a interrupt to
> vm.
>
> If the system administrator known these information, set vfio host irq affinity to
> Pcpu which the correspondece guest irq affinited vcpu, to avoid extra vm exit.
>
> Co-developed-by: Li RongQing <lirongqing@baidu.com>
> Signed-off-by: Li RongQing <lirongqing@baidu.com>
> Signed-off-by: Yuan ZhaoXiong <yuanzhaoxiong@baidu.com>
> ---

Ping

Thanks

-Li
\
 
 \ /
  Last update: 2022-02-25 04:14    [W:0.051 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site