Searched refs:gentry (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/arch/x86/kernel/cpu/mtrr/ |
H A D | if.c | 173 struct mtrr_gentry gentry; mtrr_ioctl() local 190 if (copy_from_user(&gentry, arg, sizeof gentry)) mtrr_ioctl() 217 err = get_user(gentry.regnum, &g32->regnum); mtrr_ioctl() 218 err |= get_user(gentry.base, &g32->base); mtrr_ioctl() 219 err |= get_user(gentry.size, &g32->size); mtrr_ioctl() 220 err |= get_user(gentry.type, &g32->type); mtrr_ioctl() 269 if (gentry.regnum >= num_var_ranges) mtrr_ioctl() 271 mtrr_if->get(gentry.regnum, &base, &size, &type); mtrr_ioctl() 274 if (base + size - 1 >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT)) mtrr_ioctl() 275 || size >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT))) mtrr_ioctl() 276 gentry.base = gentry.size = gentry.type = 0; mtrr_ioctl() 278 gentry.base = base << PAGE_SHIFT; mtrr_ioctl() 279 gentry.size = size << PAGE_SHIFT; mtrr_ioctl() 280 gentry.type = type; mtrr_ioctl() 323 if (gentry.regnum >= num_var_ranges) mtrr_ioctl() 325 mtrr_if->get(gentry.regnum, &base, &size, &type); mtrr_ioctl() 327 if (size != (__typeof__(gentry.size))size) mtrr_ioctl() 328 gentry.base = gentry.size = gentry.type = 0; mtrr_ioctl() 330 gentry.base = base; mtrr_ioctl() 331 gentry.size = size; mtrr_ioctl() 332 gentry.type = type; mtrr_ioctl() 343 if (copy_to_user(arg, &gentry, sizeof gentry)) mtrr_ioctl() 352 err = put_user(gentry.base, &g32->base); mtrr_ioctl() 353 err |= put_user(gentry.size, &g32->size); mtrr_ioctl() 354 err |= put_user(gentry.regnum, &g32->regnum); mtrr_ioctl() 355 err |= put_user(gentry.type, &g32->type); mtrr_ioctl()
|
/linux-4.4.14/arch/x86/kvm/ |
H A D | mmu.c | 4176 u64 gentry; mmu_pte_write_fetch_gpte() local 4188 r = kvm_vcpu_read_guest(vcpu, *gpa, &gentry, 8); mmu_pte_write_fetch_gpte() 4190 gentry = 0; mmu_pte_write_fetch_gpte() 4191 new = (const u8 *)&gentry; mmu_pte_write_fetch_gpte() 4196 gentry = *(const u32 *)new; mmu_pte_write_fetch_gpte() 4199 gentry = *(const u64 *)new; mmu_pte_write_fetch_gpte() 4202 gentry = 0; mmu_pte_write_fetch_gpte() 4206 return gentry; mmu_pte_write_fetch_gpte() 4290 u64 entry, gentry, *spte; kvm_mmu_pte_write() local 4313 gentry = mmu_pte_write_fetch_gpte(vcpu, &gpa, new, &bytes); kvm_mmu_pte_write() 4343 if (gentry && kvm_mmu_pte_write() 4346 mmu_pte_write_new_pte(vcpu, sp, spte, &gentry); kvm_mmu_pte_write()
|
Completed in 155 milliseconds