]> git.dujemihanovic.xyz Git - linux.git/commit
virt: vmgenid: add support for devicetree bindings
authorSudan Landge <sudanl@amazon.com>
Wed, 17 Apr 2024 10:40:46 +0000 (12:40 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 27 Apr 2024 00:38:34 +0000 (02:38 +0200)
commit7b1bcd6b50a615671d4dcb0ad0378a2660a1a368
tree2f09114cfb1489dea7367ec76f409c9943e7043e
parenta4aded1ff5759a2ab754699c0408be79c9ebdda4
virt: vmgenid: add support for devicetree bindings

Extend the vmgenid platform driver to support devicetree bindings. With
this support, hypervisors can send vmgenid notifications to the virtual
machine without the need to enable ACPI. The bindings are located at:
Documentation/devicetree/bindings/rng/microsoft,vmgenid.yaml

Since this is no longer ACPI-dependent, remove the dependency from
Kconfig and protect the ACPI code with a single ifdef.

Signed-off-by: Sudan Landge <sudanl@amazon.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Tested-by: Babis Chalios <bchalios@amazon.es>
[Jason: - Small style cleanups and refactoring.
        - Re-work ACPI conditionalization. ]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/virt/Kconfig
drivers/virt/vmgenid.c