Skip to content

Commit

Permalink
virt: vmgenid: recognize new CID added by Hyper-V
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kelleymh authored and zx2c4 committed Mar 25, 2022
1 parent dd7aa36 commit 0396e46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/virt/vmgenid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
{ }
};
Expand Down

0 comments on commit 0396e46

Please sign in to comment.