diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-25 13:48:29 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-16 14:25:07 +0100 |
| commit | 341df541dce236ab8f68ac9a3a0d63897767215b (patch) | |
| tree | 8553ddf97a8614a49387893786626074e71f5292 /hw/vfio/calxeda-xgmac.c | |
| parent | 47dfd350fbf80bdfc7dcc102974fad328bf3e993 (diff) | |
| download | focaccia-qemu-341df541dce236ab8f68ac9a3a0d63897767215b.tar.gz focaccia-qemu-341df541dce236ab8f68ac9a3a0d63897767215b.zip | |
hw/vfio: Have VFIO_PLATFORM devices inherit from DYNAMIC_SYS_BUS_DEVICE
Do not explain why VFIO_PLATFORM devices are user_creatable, have them inherit TYPE_DYNAMIC_SYS_BUS_DEVICE, to make explicit that they can optionally be plugged on TYPE_PLATFORM_BUS_DEVICE. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alexander Graf <graf@amazon.com> Message-Id: <20250125181343.59151-5-philmd@linaro.org>
Diffstat (limited to 'hw/vfio/calxeda-xgmac.c')
| -rw-r--r-- | hw/vfio/calxeda-xgmac.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/vfio/calxeda-xgmac.c b/hw/vfio/calxeda-xgmac.c index 87c382e736..b016d42b49 100644 --- a/hw/vfio/calxeda-xgmac.c +++ b/hw/vfio/calxeda-xgmac.c @@ -41,8 +41,6 @@ static void vfio_calxeda_xgmac_class_init(ObjectClass *klass, void *data) &vcxc->parent_realize); dc->desc = "VFIO Calxeda XGMAC"; dc->vmsd = &vfio_platform_calxeda_xgmac_vmstate; - /* Supported by TYPE_VIRT_MACHINE */ - dc->user_creatable = true; } static const TypeInfo vfio_calxeda_xgmac_dev_info = { |