um: vfio: Support adding devices via mconsole
authorTiwei Bie <tiwei.btw@antgroup.com>
Wed, 9 Jul 2025 01:00:21 +0000 (09:00 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Jul 2025 06:49:44 +0000 (08:49 +0200)
commit8129b9e8e32cb1a8976bbe5d7d14f215639758d2
treee14e0a6f75f4c25a0671b80c75c6910f9395c3d6
parent4c916e3b224a02019b3cc3983a15f32bfd9a22df
um: vfio: Support adding devices via mconsole

It can be used when we want to pass through PCI devices to UML
while it's up and running. PCI devices can be passed through to
UML using the same syntax as the command line option:

(mconsole) config vfio_uml.device=<domain:bus:slot.function>

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250709010021.1076902-1-tiwei.bie@linux.dev
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/vfio_kern.c