Searched refs:vaddr_bits (Results 1 – 3 of 3) sorted by relevance
77 static __always_inline u64 __canonical_address(u64 vaddr, u8 vaddr_bits) in __canonical_address() argument79 return ((s64)vaddr << (64 - vaddr_bits)) >> (64 - vaddr_bits); in __canonical_address()82 static __always_inline u64 __is_canonical_address(u64 vaddr, u8 vaddr_bits) in __is_canonical_address() argument84 return __canonical_address(vaddr, vaddr_bits) == vaddr; in __is_canonical_address()
1384 static u64 clamp_to_ge_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_ge_canonical_addr() argument1386 return __is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_ge_canonical_addr()1388 -BIT_ULL(vaddr_bits - 1); in clamp_to_ge_canonical_addr()1392 static u64 clamp_to_le_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_le_canonical_addr() argument1394 return __is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_le_canonical_addr()1396 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()