projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
114f3c8
)
target/i386: sgx: mark device not user creatable
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 9 Nov 2021 17:50:14 +0000
(18:50 +0100)
committer
Paolo 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
patch
|
blob
|
history
diff --git
a/hw/i386/sgx-epc.c
b/hw/i386/sgx-epc.c
index 55e2217eaefdfe636c59c930e3685de9a60d2eea..e508827e787b7b7a38cf9785a030571cf22c6e54 100644
(file)
--- 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;