Skip to contentSkip to conversation

virt: vmgenid: Recognize new CID added by Hyper-V

PATCH In review Michael Kelley 2 participants 2 messages Mar 24, 2022 – Mar 25, 2022 Random number driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virt: vmgenid: Recognize new CID added by Hyper-V

In the Windows spec for VM Generation ID, the originally specified CID is longer than allowed by the ACPI spec. Hyper-V has added "VMGENCTR" as a second valid CID that is conformant, while retaining the original CID for compatibility with Windows guests.

Add this new CID to the list recognized by the driver.

---
 drivers/virt/vmgenid.c | 1 +
 1 file changed, 1 insertion(+)
drivers/virt/vmgenid.c +1 -0
index 0ae1a39..a1c467a 100644
@@ -78,6 +78,7 @@ static void vmgenid_notify(struct acpi_device *device, u32 event)
 }
 
 static const struct acpi_device_id vmgenid_ids[] = {
+	{ "VMGENCTR", 0 },
 	{ "VM_GEN_COUNTER", 0 },
 	{ }
 };
Signature · 1 line
1.8.3.1
#1 lore raw

Hi Michael,

Quoted 8 lines · Michael Kelley

In the Windows spec for VM Generation ID, the originally specified CID is longer than allowed by the ACPI spec. Hyper-V has added "VMGENCTR" as a second valid CID that is conformant, while retaining the original CID for compatibility with Windows guests.

Add this new CID to the list recognized by the driver.

Thanks for the patch. Applied to crng/random.git.

Jason