diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-09 18:50:14 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-09 18:51:53 +0100 |
commit | a0b9c5f75c05c12d30328a305377383652e62e63 (patch) | |
tree | 9bddf08098e27ef088685ceafba5f90c02b86d40 /hw/i386 | |
parent | 114f3c8cc427333dbae331dfd2ecae64676b087e (diff) | |
download | qemu-a0b9c5f75c05c12d30328a305377383652e62e63.zip qemu-a0b9c5f75c05c12d30328a305377383652e62e63.tar.gz qemu-a0b9c5f75c05c12d30328a305377383652e62e63.tar.bz2 |
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>
Diffstat (limited to 'hw/i386')
-rw-r--r-- | hw/i386/sgx-epc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/sgx-epc.c b/hw/i386/sgx-epc.c index 55e2217..e508827 100644 --- a/hw/i386/sgx-epc.c +++ b/hw/i386/sgx-epc.c @@ -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; |