# Re: \[PATCH v5 12/16\] PCI: Add pci\_iomap\_host\_shared(), pci\_iomap\_host\_shared\_range()

- From: Andi Kleen \<hidden\>
- Date: 2021-10-12 18:39:37 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2021/10/1539382
- Thread: https://ratatoskr.run/linux-pci/2021/10/1535998/t.md

```text

On 10/12/2021 11:36 AM, Reshetova, Elena wrote:
>> The 5.15 tree has something like ~2.4k IO accesses (including MMIO and
>> others) in init functions that also register drivers (thanks Elena for
>> the number)
> To provide more numbers on this. What I can see so far from a smatch-based
> analysis, we have 409 __init style functions (.probe & builtin/module_
> _platform_driver_probe excluded) for 5.15 with allyesconfig. The number of
> distinct individual IO reads (MSRs included) is much higher than 2.4k and on the
> range of 30k because quite often there are more than a single IO read in the
> same source function. The full list of accesses and the possible call paths is huge
> for manually looking at, but here is the list of the 409 functions if anyone wants
> to take a look:


Thanks Elena.


I suspect the true number is even higher because that doesn't include IO inside calls to other modules and indirect pointers, correct?


-Andi

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
```
