On 2025/5/3 00:09, Johannes Berg wrote: > On Fri, 2025-05-02 at 10:08 +0100, Anton Ivanov wrote: >> >> On 02/05/2025 09:35, Thomas Meyer wrote: >>> Hi, >>> >>> Aren't those drivers under exactly this folder because those drivers will >>> work only with when the host OS is Linux? I mean this is all hypothetical >>> but when somebody is going to implement UML under Mac OS, this layout won't >>> work anymore, or do I err? >> >> Yes indeed. >> >> However, we have plenty of linux specific dependencies throughout nowadays: >> EPOLL, vhost-net, etc. >> PTRACE usage is probably OS specific too. SECCOMP. And so on. >> >> The original idea to keep Linux dependent stuff under os-Linux is no longer >> realistic. >> > > Indeed. Also, there's really no need to have that anyway - there are > plenty of drivers that only work on some architectures, and these ones > are anyway going to depend on UM. They could depend on a hypothetical > UM_LINUX_HOST in the future instead? >
Good idea! If necessary, it would be much better to introduce a UM_LINUX_HOST option in the future instead. Regards, Tiwei