Searched refs:vaddr_bits (Results 1 – 3 of 3) sorted by relevance
73 static __always_inline u64 __canonical_address(u64 vaddr, u8 vaddr_bits) in __canonical_address() argument75 return ((s64)vaddr << (64 - vaddr_bits)) >> (64 - vaddr_bits); in __canonical_address()78 static __always_inline u64 __is_canonical_address(u64 vaddr, u8 vaddr_bits) in __is_canonical_address() argument80 return __canonical_address(vaddr, vaddr_bits) == vaddr; in __is_canonical_address()
1380 static u64 clamp_to_ge_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_ge_canonical_addr() argument1382 return __is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_ge_canonical_addr()1384 -BIT_ULL(vaddr_bits - 1); in clamp_to_ge_canonical_addr()1388 static u64 clamp_to_le_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_le_canonical_addr() argument1390 return __is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_le_canonical_addr()1392 BIT_ULL(vaddr_bits - 1) - 1; in clamp_to_le_canonical_addr()
147 int vaddr_bits = (best->eax & 0xff00) >> 8; in kvm_check_cpuid() local149 if (vaddr_bits != 48 && vaddr_bits != 57 && vaddr_bits != 0) in kvm_check_cpuid()