]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/i386: sgx: mark device not user creatable
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Nov 2021 17:50:14 +0000 (18:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Nov 2021 17:51:53 +0000 (18:51 +0100)
The device is created by the machine based on the sgx-epc property.
It should not be created by users.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/sgx-epc.c

index 55e2217eaefdfe636c59c930e3685de9a60d2eea..e508827e787b7b7a38cf9785a030571cf22c6e54 100644 (file)
@@ -154,6 +154,7 @@ static void sgx_epc_class_init(ObjectClass *oc, void *data)
     dc->realize = sgx_epc_realize;
     dc->unrealize = sgx_epc_unrealize;
     dc->desc = "SGX EPC section";
+    dc->user_creatable = false;
     device_class_set_props(dc, sgx_epc_properties);
 
     mdc->get_addr = sgx_epc_md_get_addr;