summaryrefslogtreecommitdiffstats
path: root/drivers/virt
diff options
context:
space:
mode:
authorMichael Kelley <mikelley@microsoft.com>2022-03-24 20:20:21 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2022-03-25 15:49:40 +0100
commit0396e46dc46523cba8401a0df84f67cc0b6067ab (patch)
treeb9d180748b1552b144f0499e755932ac8cbb25d9 /drivers/virt
parentrandom: re-add removed comment about get_random_{u32,u64} reseeding (diff)
downloadlinux-0396e46dc46523cba8401a0df84f67cc0b6067ab.tar.xz
linux-0396e46dc46523cba8401a0df84f67cc0b6067ab.zip
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>
Diffstat (limited to 'drivers/virt')
-rw-r--r--drivers/virt/vmgenid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/virt/vmgenid.c b/drivers/virt/vmgenid.c
index 0ae1a39f2e28..a1c467a0e9f7 100644
--- a/drivers/virt/vmgenid.c
+++ b/drivers/virt/vmgenid.c
@@ -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 },
{ }
};