Home
last modified time | relevance | path

Searched refs:host_kvm (Results 1 – 2 of 2) sorted by relevance

/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpkvm.c330 static void pkvm_init_features_from_host(struct pkvm_hyp_vm *hyp_vm, const struct kvm *host_kvm) in pkvm_init_features_from_host() argument
333 unsigned long host_arch_flags = READ_ONCE(host_kvm->arch.flags); in pkvm_init_features_from_host()
337 hyp_vm->kvm.arch.ctr_el0 = host_kvm->arch.ctr_el0; in pkvm_init_features_from_host()
340 hyp_vm->kvm.arch.vgic.vgic_model = host_kvm->arch.vgic.vgic_model; in pkvm_init_features_from_host()
348 host_kvm->arch.vcpu_features, in pkvm_init_features_from_host()
352 hyp_vm->kvm.arch.midr_el1 = host_kvm->arch.midr_el1; in pkvm_init_features_from_host()
378 bitmap_and(kvm->arch.vcpu_features, host_kvm->arch.vcpu_features, in pkvm_init_features_from_host()
416 static void init_pkvm_hyp_vm(struct kvm *host_kvm, struct pkvm_hyp_vm *hyp_vm, in init_pkvm_hyp_vm() argument
424 hyp_vm->host_kvm = host_kvm; in init_pkvm_hyp_vm()
426 hyp_vm->kvm.arch.pkvm.is_protected = READ_ONCE(host_kvm->arch.pkvm.is_protected); in init_pkvm_hyp_vm()
[all …]
H A Dhyp-main.c567 DECLARE_REG(struct kvm *, host_kvm, host_ctxt, 1); in handle___pkvm_init_vm()
571 host_kvm = kern_hyp_va(host_kvm); in handle___pkvm_init_vm()
572 cpu_reg(host_ctxt, 1) = __pkvm_init_vm(host_kvm, vm_hva, pgd_hva); in handle___pkvm_init_vm()