mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
1de10b7d13
The vCPU-scoped feature bitmap was left in place a couple of releases ago in case the change to VM-scoped vCPU features broke anyone. Nobody has complained and the interop between VM and vCPU bitmaps is pretty gross. Throw it out. Link: https://lore.kernel.org/r/20230920195036.1169791-9-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
23 lines
616 B
C
23 lines
616 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ARM64_KVM_NESTED_H
|
|
#define __ARM64_KVM_NESTED_H
|
|
|
|
#include <asm/kvm_emulate.h>
|
|
#include <linux/kvm_host.h>
|
|
|
|
static inline bool vcpu_has_nv(const struct kvm_vcpu *vcpu)
|
|
{
|
|
return (!__is_defined(__KVM_NVHE_HYPERVISOR__) &&
|
|
cpus_have_final_cap(ARM64_HAS_NESTED_VIRT) &&
|
|
vcpu_has_feature(vcpu, KVM_ARM_VCPU_HAS_EL2));
|
|
}
|
|
|
|
extern bool __check_nv_sr_forward(struct kvm_vcpu *vcpu);
|
|
|
|
struct sys_reg_params;
|
|
struct sys_reg_desc;
|
|
|
|
void access_nested_id_reg(struct kvm_vcpu *v, struct sys_reg_params *p,
|
|
const struct sys_reg_desc *r);
|
|
|
|
#endif /* __ARM64_KVM_NESTED_H */
|