]> git.proxmox.com Git - mirror_qemu.git/commitdiff
mmio-interface: Mark as not user creatable
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Aug 2017 14:30:18 +0000 (15:30 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Aug 2017 16:42:02 +0000 (17:42 +0100)
The mmio-interface device is not something we want to allow
users to create on the command line:
 * it is intended as an implementation detail of the memory
   subsystem, which gets created and deleted by that
   subsystem on demand; it makes no sense to create it
   by hand on the command line
 * it uses a pointer property 'host_ptr' which can't be
   set on the command line

Mark the device as not user_creatable to avoid confusion.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1502807418-9994-1-git-send-email-peter.maydell@linaro.org
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/misc/mmio_interface.c

index da154e5c955a6a27918a8d816c3f8750e924eaca..894e9801cb64f213855b6c0b594f2918b9c6ada7 100644 (file)
@@ -111,6 +111,11 @@ static void mmio_interface_class_init(ObjectClass *oc, void *data)
     dc->realize = mmio_interface_realize;
     dc->unrealize = mmio_interface_unrealize;
     dc->props = mmio_interface_properties;
+    /* Reason: pointer property "host_ptr", and this device
+     * is an implementation detail of the memory subsystem,
+     * not intended to be created directly by the user.
+     */
+    dc->user_creatable = false;
 }
 
 static const TypeInfo mmio_interface_info = {