Re: [Question] Reduce the msix_load cost for VFIO device

2021-08-09 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Alex, 在 2021/8/3 22:19, Alex Williamson 写道: > On Tue, 3 Aug 2021 16:43:07 +0800 > "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" > wrote: > >> Hi Alex, >> >> We found that the msix_load() will cost 40~50ms if the VF has 60+ interrupts, >> the following code cost too much for ea

Re: [Question] Reduce the msix_load cost for VFIO device

2021-08-03 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
在 2021/8/3 22:19, Alex Williamson 写道: > On Tue, 3 Aug 2021 16:43:07 +0800 > "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" > wrote: > >> Hi Alex, >> >> We found that the msix_load() will cost 40~50ms if the VF has 60+ interrupts, >> the following code cost too much for each inte

Re: [Question] Reduce the msix_load cost for VFIO device

2021-08-03 Thread Alex Williamson
On Tue, 3 Aug 2021 16:43:07 +0800 "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" wrote: > Hi Alex, > > We found that the msix_load() will cost 40~50ms if the VF has 60+ interrupts, > the following code cost too much for each interrupt: > > msix_load: > for (vector = 0; vector <

[Question] Reduce the msix_load cost for VFIO device

2021-08-03 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Alex, We found that the msix_load() will cost 40~50ms if the VF has 60+ interrupts, the following code cost too much for each interrupt: msix_load: for (vector = 0; vector < 60; vector++) msix_handle_mask_update vfio_msix_vector_do_use vfio_add_kvm_msi_virq kvm_ir