Lines Matching defs:slot
94 int slot;
102 slot = tst_kvm_find_phys_memslot(inst, addr);
104 if (slot < 0)
107 ret = (char *)(uintptr_t)inst->ram[slot].userspace_addr;
108 return ret + (addr - inst->ram[slot].guest_phys_addr);
127 void *tst_kvm_alloc_memory(struct tst_kvm_instance *inst, unsigned int slot,
133 .slot = slot,
137 if (slot >= MAX_KVM_MEMSLOTS)
138 tst_brk(TBROK, "Invalid KVM memory slot %u", slot);
149 inst->ram[slot] = memslot;