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.c339 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
342 unsigned long host_arch_flags = READ_ONCE(host_kvm->arch.flags); in pkvm_init_features_from_host()
346 hyp_vm->kvm.arch.ctr_el0 = host_kvm->arch.ctr_el0; in pkvm_init_features_from_host()
349 hyp_vm->kvm.arch.vgic.vgic_model = host_kvm->arch.vgic.vgic_model; in pkvm_init_features_from_host()
357 host_kvm->arch.vcpu_features, in pkvm_init_features_from_host()
361 hyp_vm->kvm.arch.midr_el1 = host_kvm->arch.midr_el1; in pkvm_init_features_from_host()
387 bitmap_and(kvm->arch.vcpu_features, host_kvm->arch.vcpu_features, in pkvm_init_features_from_host()
425 static void init_pkvm_hyp_vm(struct kvm *host_kvm, struct pkvm_hyp_vm *hyp_vm, in init_pkvm_hyp_vm() argument
433 hyp_vm->host_kvm = host_kvm; in init_pkvm_hyp_vm()
435 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.c560 DECLARE_REG(struct kvm *, host_kvm, host_ctxt, 1); in handle___pkvm_init_vm()
564 host_kvm = kern_hyp_va(host_kvm); in handle___pkvm_init_vm()
565 cpu_reg(host_ctxt, 1) = __pkvm_init_vm(host_kvm, vm_hva, pgd_hva); in handle___pkvm_init_vm()