Home
last modified time | relevance | path

Searched refs:vm_type (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/kvm/
H A Dpre_fault_memory_test.c162 static void __test_pre_fault_memory(unsigned long vm_type, bool private) in __test_pre_fault_memory() argument
167 .type = vm_type, in __test_pre_fault_memory()
219 static void test_pre_fault_memory(unsigned long vm_type, bool private) in test_pre_fault_memory() argument
221 if (vm_type && !(kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(vm_type))) { in test_pre_fault_memory()
222 pr_info("Skipping tests for vm_type 0x%lx\n", vm_type); in test_pre_fault_memory()
226 __test_pre_fault_memory(vm_type, private); in test_pre_fault_memory()
H A Dguest_memfd_test.c388 static void test_guest_memfd(unsigned long vm_type) in test_guest_memfd() argument
390 struct kvm_vm *vm = vm_create_barebones_type(vm_type); in test_guest_memfd()
474 unsigned long vm_types, vm_type; in main() local
488 for_each_set_bit(vm_type, &vm_types, BITS_PER_TYPE(vm_types)) in main()
489 test_guest_memfd(vm_type); in main()
/linux/arch/x86/kvm/vmx/
H A Dcommon.h62 return kvm->arch.vm_type == KVM_X86_TDX_VM; in is_td()
/linux/arch/x86/kvm/svm/
H A Dsev.c194 static int sev_asid_new(struct kvm_sev_info *sev, unsigned long vm_type) in sev_asid_new() argument
204 if (vm_type == KVM_X86_SNP_VM) { in sev_asid_new()
436 unsigned long vm_type) in __sev_guest_init() argument
440 bool es_active = vm_type != KVM_X86_SEV_VM; in __sev_guest_init()
441 bool snp_active = vm_type == KVM_X86_SNP_VM; in __sev_guest_init()
482 ret = sev_asid_new(sev, vm_type); in __sev_guest_init()
530 unsigned long vm_type; in sev_guest_init() local
532 if (kvm->arch.vm_type != KVM_X86_DEFAULT_VM) in sev_guest_init()
535 vm_type = (argp->id == KVM_SEV_INIT ? KVM_X86_SEV_VM : KVM_X86_SEV_ES_VM); in sev_guest_init()
541 if (vm_type == KVM_X86_SEV_ES_VM) in sev_guest_init()
[all …]
/linux/arch/x86/kvm/
H A Dmmu.h306 return kvm->arch.vm_type == KVM_X86_TDX_VM; in kvm_has_mirrored_tdp()
/linux/arch/x86/kvm/mmu/
H A Dpage_track.c175 if (kvm->arch.vm_type == KVM_X86_TDX_VM) in kvm_enable_external_write_tracking()
H A Dmmu.c5751 if (vcpu->kvm->arch.vm_type == KVM_X86_TDX_VM) in kvm_mmu_get_tdp_level()
6415 vcpu->kvm->arch.vm_type == KVM_X86_SW_PROTECTED_VM && in kvm_mmu_page_fault()
7429 return kvm->arch.vm_type == KVM_X86_DEFAULT_VM && in kvm_memslot_flush_zap_all()
/linux/arch/x86/include/asm/
H A Dkvm_host.h1385 u8 vm_type; member