target/i386: sgx: mark device not user creatable
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>
This commit is contained in:
parent
114f3c8cc4
commit
a0b9c5f75c
|
@ -154,6 +154,7 @@ static void sgx_epc_class_init(ObjectClass *oc, void *data)
|
||||||
dc->realize = sgx_epc_realize;
|
dc->realize = sgx_epc_realize;
|
||||||
dc->unrealize = sgx_epc_unrealize;
|
dc->unrealize = sgx_epc_unrealize;
|
||||||
dc->desc = "SGX EPC section";
|
dc->desc = "SGX EPC section";
|
||||||
|
dc->user_creatable = false;
|
||||||
device_class_set_props(dc, sgx_epc_properties);
|
device_class_set_props(dc, sgx_epc_properties);
|
||||||
|
|
||||||
mdc->get_addr = sgx_epc_md_get_addr;
|
mdc->get_addr = sgx_epc_md_get_addr;
|
||||||
|
|
Loading…
Reference in a new issue