I thought about it carefully. Indeed, in my scenario(virtual machine which use optane as DRAM), device assignment can be performed in userspace at very early time after the system is started. This patch is not needed in my scenario. Thank you for your reply.
Dan Williams <[email protected]> 于2022年3月23日周三 10:01写道: > > On Mon, Feb 28, 2022 at 1:50 AM Zhenguo Yao <[email protected]> wrote: > > > > device_dax driver always match dax devices by default. The other > > drivers only match devices by dax_id. There are situations which > > need kmem drvier match all the dax device at boot time. So > > adding a parameter to support this function. > > What are the situations that happen at boot time that can't wait for > initramfs or userspace to move the device assignment?

