Skip to contentSkip to conversation

target/i386: SEV: fix mismatch in vcek-disabled property name

PATCH In review Paolo Bonzini 2 participants 2 messages Aug 1, 2024 – Aug 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/i386: SEV: fix mismatch in vcek-disabled property name

The vcek-disabled property of the sev-snp-guest object is misspelled vcek-required (which I suppose would use the opposite polarity) in the call to object_class_property_add_bool(). Fix it.

---
 target/i386/sev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/sev.c +1 -1
index a1157c0ede6..a0d271f8986 100644
@@ -2422,7 +2422,7 @@ sev_snp_guest_class_init(ObjectClass *oc, void *data)
     object_class_property_add_bool(oc, "author-key-enabled",
                                    sev_snp_guest_get_author_key_enabled,
                                    sev_snp_guest_set_author_key_enabled);
-    object_class_property_add_bool(oc, "vcek-required",
+    object_class_property_add_bool(oc, "vcek-disabled",
                                    sev_snp_guest_get_vcek_disabled,
                                    sev_snp_guest_set_vcek_disabled);
     object_class_property_add_str(oc, "host-data",
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Paolo Bonzini

The vcek-disabled property of the sev-snp-guest object is misspelled vcek-required (which I suppose would use the opposite polarity) in the call to object_class_property_add_bool(). Fix it.

---
  target/i386/sev.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/sev.c +0 -0
index a1157c0ede6..a0d271f8986 100644

target/i386/sev.c sev_snp_guest_class_init(ObjectClass *oc, void *data) · line 2428

Quoted 8 lines
target/i386/sev.c +1 -1
@@ -2422,7 +2422,7 @@ sev_snp_guest_class_init(ObjectClass *oc, void *data)
      object_class_property_add_bool(oc, "author-key-enabled",
                                     sev_snp_guest_get_author_key_enabled,
                                     sev_snp_guest_set_author_key_enabled);
-    object_class_property_add_bool(oc, "vcek-required",
+    object_class_property_add_bool(oc, "vcek-disabled",
                                     sev_snp_guest_get_vcek_disabled,
                                     sev_snp_guest_set_vcek_disabled);
      object_class_property_add_str(oc, "host-data",