[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/5] target/i386: sgx: mark device not user creatable
From: |
Paolo Bonzini |
Subject: |
[PULL 1/5] target/i386: sgx: mark device not user creatable |
Date: |
Thu, 11 Nov 2021 08:36:03 +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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/i386/sgx-epc.c b/hw/i386/sgx-epc.c
index 55e2217eae..e508827e78 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;
--
2.33.1
- [PULL 0/5] x86, RCU/TCG patches for QEMU 6.2-rc1, Paolo Bonzini, 2021/11/11
- [PULL 1/5] target/i386: sgx: mark device not user creatable,
Paolo Bonzini <=
- [PULL 5/5] sgx: Reset the vEPC regions during VM reboot, Paolo Bonzini, 2021/11/11
- [PULL 3/5] accel/tcg: Register a force_rcu notifier, Paolo Bonzini, 2021/11/11
- [PULL 2/5] rcu: Introduce force_rcu notifier, Paolo Bonzini, 2021/11/11
- [PULL 4/5] numa: avoid crash with SGX and "info numa", Paolo Bonzini, 2021/11/11
- Re: [PULL 0/5] x86, RCU/TCG patches for QEMU 6.2-rc1, Richard Henderson, 2021/11/11