Christoffer Dall 89b0e7de34 KVM: arm64: nv: Introduce nested virtualization VCPU feature
Introduce the feature bit and a primitive that checks if the feature is
set behind a static key check based on the cpus_have_const_cap check.

Checking vcpu_has_nv() on systems without nested virt enabled
should have negligible overhead.

We don't yet allow userspace to actually set this feature.

Reviewed-by: Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230209175820.1939006-4-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
2023-02-11 09:16:11 +00:00
..
2020-09-07 15:00:52 +01:00
2022-09-26 10:13:14 -07:00
2022-04-13 12:16:00 -07:00
2022-06-23 18:22:44 +01:00
2022-11-15 13:46:18 +00:00
2020-12-02 19:49:11 +00:00
2022-11-18 13:56:41 +00:00
2021-10-21 10:45:22 +01:00
2022-11-09 17:54:53 +00:00
2022-08-05 10:07:23 -07:00
2021-03-24 20:19:30 +00:00
2020-09-11 16:33:43 +01:00
2021-10-01 14:54:45 +01:00
2022-07-22 17:34:57 -05:00
2022-02-19 11:11:09 +01:00
2022-08-23 11:02:02 +01:00
2022-09-16 12:17:03 +01:00