]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Add vendor hypervisor firmware register
authorRaghavendra Rao Ananta <rananta@google.com>
Mon, 2 May 2022 23:38:48 +0000 (23:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 3 May 2022 20:30:19 +0000 (21:30 +0100)
commit68dda796b1e4ae78ee6f0af68e2b17802220fcae
tree4c9b92c78625ca2a485111f92dac97d7856fea65
parent0663e8e0e654c31a57119e8f2d68428560d1b159
KVM: arm64: Add vendor hypervisor firmware register

Introduce the firmware register to hold the vendor specific
hypervisor service calls (owner value 6) as a bitmap. The
bitmap represents the features that'll be enabled for the
guest, as configured by the user-space. Currently, this
includes support for KVM-vendor features along with
reading the UID, represented by bit-0, and Precision Time
Protocol (PTP), represented by bit-1.

Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
[maz: tidy-up bitmap values]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220502233853.1233742-5-rananta@google.com
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/uapi/asm/kvm.h
arch/arm64/kvm/hypercalls.c