On 11/9/26 16:36, Daniel P. Berrangé wrote:
These have a long history of usage in virtualization scenarios on
x86, for OS which lack modern virtio drivers for storage, and thus
must be considered secure.
Signed-off-by: Daniel P. Berrangé <[email protected]>
---
hw/ide/ich.c | 1 +
hw/ide/ide-dev.c | 3 +++
hw/ide/piix.c | 2 ++
3 files changed, 6 insertions(+)
@@ -252,6 +254,7 @@ static const TypeInfo ide_device_type_info = {
.parent = TYPE_DEVICE,
.instance_size = sizeof(IDEDevice),
.abstract = true,
+ .secure = true,
We shouldn't accept abstract secure device class IMO because it
will be to easy to merge new devices that ended secure and we do
not want to consider them. I'd go a step further and assert both
can not be set together.
.class_size = sizeof(IDEDeviceClass),
.class_init = ide_device_class_init,
.instance_init = ide_dev_instance_init,