Lines Matching +full:gpa +full:- +full:1
1 /* SPDX-License-Identifier: GPL-2.0 */
43 return vcpu->arch.maxphyaddr;
46 static inline bool kvm_vcpu_is_legal_gpa(struct kvm_vcpu *vcpu, gpa_t gpa)
48 return !(gpa & vcpu->arch.reserved_gpa_bits);
51 static inline bool kvm_vcpu_is_illegal_gpa(struct kvm_vcpu *vcpu, gpa_t gpa)
53 return !kvm_vcpu_is_legal_gpa(vcpu, gpa);
57 gpa_t gpa, gpa_t alignment)
59 return IS_ALIGNED(gpa, alignment) && kvm_vcpu_is_legal_gpa(vcpu, gpa);
62 static inline bool page_address_valid(struct kvm_vcpu *vcpu, gpa_t gpa)
64 return kvm_vcpu_is_legal_aligned_gpa(vcpu, gpa, PAGE_SIZE);
117 (is_guest_vendor_amd(best->ebx, best->ecx, best->edx) ||
118 is_guest_vendor_hygon(best->ebx, best->ecx, best->edx));
126 return best && is_guest_vendor_intel(best->ebx, best->ecx, best->edx);
131 return vcpu->arch.is_amd_compatible;
145 return -1;
147 return x86_family(best->eax);
156 return -1;
158 return x86_model(best->eax);
172 return -1;
174 return x86_stepping(best->eax);
193 return vcpu->arch.msr_platform_info & MSR_PLATFORM_INFO_CPUID_FAULT;
198 return vcpu->arch.msr_misc_features_enables &
240 if (!vcpu->arch.pv_cpuid.enforce)
243 return vcpu->arch.pv_cpuid.features & (1u << kvm_feature);
258 return -1;
273 vcpu->arch.governed_features.enabled);
289 vcpu->arch.governed_features.enabled);