Skip to content

Commit 0396e46

Browse files
kelleymhzx2c4
authored andcommitted
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. Signed-off-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent dd7aa36 commit 0396e46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/virt/vmgenid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ static void vmgenid_notify(struct acpi_device *device, u32 event)
7878
}
7979

8080
static const struct acpi_device_id vmgenid_ids[] = {
81+
{ "VMGENCTR", 0 },
8182
{ "VM_GEN_COUNTER", 0 },
8283
{ }
8384
};

0 commit comments

Comments
 (0)