Symbol: vm_type
arch/x86/include/asm/kvm_host.h
1441
u8 vm_type;
arch/x86/kvm/mmu.h
318
return kvm->arch.vm_type == KVM_X86_TDX_VM;
arch/x86/kvm/mmu/mmu.c
5868
if (vcpu->kvm->arch.vm_type == KVM_X86_TDX_VM)
arch/x86/kvm/mmu/mmu.c
6535
vcpu->kvm->arch.vm_type == KVM_X86_SW_PROTECTED_VM &&
arch/x86/kvm/mmu/mmu.c
7555
return kvm->arch.vm_type == KVM_X86_DEFAULT_VM &&
arch/x86/kvm/mmu/page_track.c
195
if (kvm->arch.vm_type == KVM_X86_TDX_VM)
arch/x86/kvm/svm/sev.c
1026
if (vcpu->kvm->arch.vm_type != KVM_X86_DEFAULT_VM) {
arch/x86/kvm/svm/sev.c
2133
if (kvm->arch.vm_type != source_kvm->arch.vm_type ||
arch/x86/kvm/svm/sev.c
263
static int sev_asid_new(struct kvm_sev_info *sev, unsigned long vm_type)
arch/x86/kvm/svm/sev.c
272
if (vm_type == KVM_X86_SNP_VM) {
arch/x86/kvm/svm/sev.c
2927
switch (kvm->arch.vm_type) {
arch/x86/kvm/svm/sev.c
2942
WARN_ONCE(1, "Unsupported VM type %u", kvm->arch.vm_type);
arch/x86/kvm/svm/sev.c
491
unsigned long vm_type)
arch/x86/kvm/svm/sev.c
495
bool es_active = vm_type != KVM_X86_SEV_VM;
arch/x86/kvm/svm/sev.c
496
bool snp_active = vm_type == KVM_X86_SNP_VM;
arch/x86/kvm/svm/sev.c
537
ret = sev_asid_new(sev, vm_type);
arch/x86/kvm/svm/sev.c
585
unsigned long vm_type;
arch/x86/kvm/svm/sev.c
587
if (kvm->arch.vm_type != KVM_X86_DEFAULT_VM)
arch/x86/kvm/svm/sev.c
590
vm_type = (argp->id == KVM_SEV_INIT ? KVM_X86_SEV_VM : KVM_X86_SEV_ES_VM);
arch/x86/kvm/svm/sev.c
596
if (vm_type == KVM_X86_SEV_ES_VM)
arch/x86/kvm/svm/sev.c
599
return __sev_guest_init(kvm, argp, &data, vm_type);
arch/x86/kvm/svm/sev.c
609
if (kvm->arch.vm_type != KVM_X86_SEV_VM &&
arch/x86/kvm/svm/sev.c
610
kvm->arch.vm_type != KVM_X86_SEV_ES_VM &&
arch/x86/kvm/svm/sev.c
611
kvm->arch.vm_type != KVM_X86_SNP_VM)
arch/x86/kvm/svm/sev.c
617
return __sev_guest_init(kvm, argp, &data, kvm->arch.vm_type);
arch/x86/kvm/svm/svm.c
3421
char *vm_type;
arch/x86/kvm/svm/svm.c
3430
vm_type = is_sev_snp_guest(vcpu) ? "SEV-SNP" :
arch/x86/kvm/svm/svm.c
3435
vm_type, vcpu->vcpu_id, svm->current_vmcb->ptr, vcpu->arch.last_vmentry_cpu);
arch/x86/kvm/vmx/common.h
62
return kvm->arch.vm_type == KVM_X86_TDX_VM;
arch/x86/kvm/x86.c
13284
kvm->arch.vm_type = type;
drivers/accel/habanalabs/common/debugfs.c
247
enum vm_type *vm_type;
drivers/accel/habanalabs/common/debugfs.c
265
vm_type = hnode->ptr;
drivers/accel/habanalabs/common/debugfs.c
267
if (*vm_type == VM_TYPE_USERPTR) {
drivers/accel/habanalabs/common/debugfs.c
883
enum vm_type *vm_type;
drivers/accel/habanalabs/common/debugfs.c
897
vm_type = hnode->ptr;
drivers/accel/habanalabs/common/debugfs.c
899
if (*vm_type == VM_TYPE_USERPTR) {
drivers/accel/habanalabs/common/device.c
2723
enum vm_type *vm_type;
drivers/accel/habanalabs/common/device.c
2739
vm_type = hnode->ptr;
drivers/accel/habanalabs/common/device.c
2740
if (((*vm_type == VM_TYPE_USERPTR) && is_pmmu) ||
drivers/accel/habanalabs/common/device.c
2741
((*vm_type == VM_TYPE_PHYS_PACK) && !is_pmmu))
drivers/accel/habanalabs/common/device.c
2761
vm_type = hnode->ptr;
drivers/accel/habanalabs/common/device.c
2762
if ((*vm_type == VM_TYPE_USERPTR) && (is_pmmu)) {
drivers/accel/habanalabs/common/device.c
2767
} else if ((*vm_type == VM_TYPE_PHYS_PACK) && (!is_pmmu)) {
drivers/accel/habanalabs/common/habanalabs.h
1992
enum vm_type vm_type; /* must be first */
drivers/accel/habanalabs/common/habanalabs.h
2235
enum vm_type vm_type; /* must be first */
drivers/accel/habanalabs/common/memory.c
1061
enum vm_type *vm_type;
drivers/accel/habanalabs/common/memory.c
1090
vm_type = (enum vm_type *) userptr;
drivers/accel/habanalabs/common/memory.c
1132
vm_type = (enum vm_type *) phys_pg_pack;
drivers/accel/habanalabs/common/memory.c
1195
rc = hl_mmu_invalidate_cache_range(hdev, false, *vm_type | MMU_OP_SKIP_LOW_CACHE_INV,
drivers/accel/habanalabs/common/memory.c
1206
rc = hl_mmu_prefetch_cache_range(ctx, *vm_type, ctx->asid, ret_vaddr,
drivers/accel/habanalabs/common/memory.c
1214
hnode->ptr = vm_type;
drivers/accel/habanalabs/common/memory.c
1282
enum vm_type *vm_type;
drivers/accel/habanalabs/common/memory.c
1306
vm_type = hnode->ptr;
drivers/accel/habanalabs/common/memory.c
1308
if (*vm_type == VM_TYPE_USERPTR) {
drivers/accel/habanalabs/common/memory.c
1326
} else if (*vm_type == VM_TYPE_PHYS_PACK) {
drivers/accel/habanalabs/common/memory.c
134
phys_pg_pack->vm_type = VM_TYPE_PHYS_PACK;
drivers/accel/habanalabs/common/memory.c
1362
rc = hl_mmu_invalidate_cache_range(hdev, true, *vm_type, ctx->asid, vaddr,
drivers/accel/habanalabs/common/memory.c
2006
if (phys_pg_pack->vm_type != VM_TYPE_PHYS_PACK) {
drivers/accel/habanalabs/common/memory.c
243
userptr->vm_type = VM_TYPE_USERPTR;
drivers/accel/habanalabs/common/memory.c
857
phys_pg_pack->vm_type = userptr->vm_type;
tools/testing/selftests/kvm/guest_memfd_test.c
472
static void test_guest_memfd(unsigned long vm_type)
tools/testing/selftests/kvm/guest_memfd_test.c
474
struct kvm_vm *vm = vm_create_barebones_type(vm_type);
tools/testing/selftests/kvm/guest_memfd_test.c
563
unsigned long vm_types, vm_type;
tools/testing/selftests/kvm/guest_memfd_test.c
577
for_each_set_bit(vm_type, &vm_types, BITS_PER_TYPE(vm_types))
tools/testing/selftests/kvm/guest_memfd_test.c
578
test_guest_memfd(vm_type);
tools/testing/selftests/kvm/pre_fault_memory_test.c
163
static void __test_pre_fault_memory(unsigned long vm_type, bool private)
tools/testing/selftests/kvm/pre_fault_memory_test.c
168
.type = vm_type,
tools/testing/selftests/kvm/pre_fault_memory_test.c
210
static void test_pre_fault_memory(unsigned long vm_type, bool private)
tools/testing/selftests/kvm/pre_fault_memory_test.c
212
if (vm_type && !(kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(vm_type))) {
tools/testing/selftests/kvm/pre_fault_memory_test.c
213
pr_info("Skipping tests for vm_type 0x%lx\n", vm_type);
tools/testing/selftests/kvm/pre_fault_memory_test.c
217
__test_pre_fault_memory(vm_type, private);
tools/testing/selftests/kvm/x86/sev_init2_tests.c
102
test_init2_invalid(vm_type,
tools/testing/selftests/kvm/x86/sev_init2_tests.c
107
void test_features(u32 vm_type, u64 supported_features)
tools/testing/selftests/kvm/x86/sev_init2_tests.c
113
test_init2_invalid(vm_type,
tools/testing/selftests/kvm/x86/sev_init2_tests.c
117
test_init2(vm_type,
tools/testing/selftests/kvm/x86/sev_init2_tests.c
50
static void test_init2(unsigned long vm_type, struct kvm_sev_init *init)
tools/testing/selftests/kvm/x86/sev_init2_tests.c
55
vm = vm_create_barebones_type(vm_type);
tools/testing/selftests/kvm/x86/sev_init2_tests.c
63
static void test_init2_invalid(unsigned long vm_type, struct kvm_sev_init *init, const char *msg)
tools/testing/selftests/kvm/x86/sev_init2_tests.c
68
vm = vm_create_barebones_type(vm_type);
tools/testing/selftests/kvm/x86/sev_init2_tests.c
97
void test_flags(u32 vm_type)