Re: [PATCH v1 1/3] virtio-pci: submit msi route changes in batch

2023-02-28 Thread Michael S. Tsirkin
On Tue, Feb 28, 2023 at 07:39:06PM +0800, Longpeng (Mike, Cloud Infrastructure Service Product Dept.) wrote: > > > 在 2023/2/28 19:20, Longpeng (Mike, Cloud Infrastructure Service Product > Dept.) 写道: > > > > > > 在 2023/2/28 18:17, Michael S. Tsirkin 写道: > > > On Tue, Feb 28, 2023 at

Re: [PATCH v1 1/3] virtio-pci: submit msi route changes in batch

2023-02-28 Thread longpeng2--- via
在 2023/2/28 19:20, Longpeng (Mike, Cloud Infrastructure Service Product Dept.) 写道: 在 2023/2/28 18:17, Michael S. Tsirkin 写道: On Tue, Feb 28, 2023 at 05:39:35PM +0800, Longpeng(Mike) wrote: From: Longpeng The kvm_irqchip_commit_routes() is a time-intensive operation, it needs scan and

Re: [PATCH v1 1/3] virtio-pci: submit msi route changes in batch

2023-02-28 Thread longpeng2--- via
在 2023/2/28 18:18, Michael S. Tsirkin 写道: On Tue, Feb 28, 2023 at 05:39:35PM +0800, Longpeng(Mike) wrote: From: Longpeng The kvm_irqchip_commit_routes() is a time-intensive operation, it needs scan and update all irqfds that are already assigned during each invocation, so more vectors

Re: [PATCH v1 1/3] virtio-pci: submit msi route changes in batch

2023-02-28 Thread longpeng2--- via
在 2023/2/28 18:17, Michael S. Tsirkin 写道: On Tue, Feb 28, 2023 at 05:39:35PM +0800, Longpeng(Mike) wrote: From: Longpeng The kvm_irqchip_commit_routes() is a time-intensive operation, it needs scan and update all irqfds that are already assigned during each invocation, so more vectors

Re: [PATCH v1 1/3] virtio-pci: submit msi route changes in batch

2023-02-28 Thread Michael S. Tsirkin
On Tue, Feb 28, 2023 at 05:39:35PM +0800, Longpeng(Mike) wrote: > From: Longpeng > > The kvm_irqchip_commit_routes() is a time-intensive operation, it needs > scan and update all irqfds that are already assigned during each invocation, > so more vectors means need more time to process them. For

Re: [PATCH v1 1/3] virtio-pci: submit msi route changes in batch

2023-02-28 Thread Michael S. Tsirkin
On Tue, Feb 28, 2023 at 05:39:35PM +0800, Longpeng(Mike) wrote: > From: Longpeng > > The kvm_irqchip_commit_routes() is a time-intensive operation, it needs > scan and update all irqfds that are already assigned during each invocation, > so more vectors means need more time to process them. I

[PATCH v1 1/3] virtio-pci: submit msi route changes in batch

2023-02-28 Thread Longpeng(Mike)
From: Longpeng The kvm_irqchip_commit_routes() is a time-intensive operation, it needs scan and update all irqfds that are already assigned during each invocation, so more vectors means need more time to process them. For virtio-pci, we can just submit once when enabling vectors of a virtio-pci