Lines Matching defs:val
74 static int set_nx_huge_pages(const char *val, const struct kernel_param *kp);
75 static int set_nx_huge_pages_recovery_param(const char *val, const struct kernel_param *kp);
919 * If the bit zero of rmap_head->val is clear, then it points to the only spte
920 * in this rmap chain. Otherwise, (rmap_head->val & ~1) points to a struct
933 if (!rmap_head->val) {
934 rmap_head->val = (unsigned long)spte;
935 } else if (!(rmap_head->val & 1)) {
937 desc->sptes[0] = (u64 *)rmap_head->val;
941 rmap_head->val = (unsigned long)desc | 1;
944 desc = (struct pte_list_desc *)(rmap_head->val & ~1ul);
953 desc->more = (struct pte_list_desc *)(rmap_head->val & ~1ul);
956 rmap_head->val = (unsigned long)desc | 1;
967 struct pte_list_desc *head_desc = (struct pte_list_desc *)(rmap_head->val & ~1ul);
994 rmap_head->val = 0;
996 rmap_head->val = (unsigned long)head_desc->more | 1;
1006 if (KVM_BUG_ON_DATA_CORRUPTION(!rmap_head->val, kvm))
1009 if (!(rmap_head->val & 1)) {
1010 if (KVM_BUG_ON_DATA_CORRUPTION((u64 *)rmap_head->val != spte, kvm))
1013 rmap_head->val = 0;
1015 desc = (struct pte_list_desc *)(rmap_head->val & ~1ul);
1045 if (!rmap_head->val)
1048 if (!(rmap_head->val & 1)) {
1049 mmu_spte_clear_track_bits(kvm, (u64 *)rmap_head->val);
1053 desc = (struct pte_list_desc *)(rmap_head->val & ~1ul);
1063 rmap_head->val = 0;
1071 if (!rmap_head->val)
1073 else if (!(rmap_head->val & 1))
1076 desc = (struct pte_list_desc *)(rmap_head->val & ~1ul);
1135 if (!rmap_head->val)
1138 if (!(rmap_head->val & 1)) {
1140 sptep = (u64 *)rmap_head->val;
1144 iter->desc = (struct pte_list_desc *)(rmap_head->val & ~1ul);
1538 if (iterator->rmap->val)
2507 child->role.guest_mode && !child->parent_ptes.val)
6318 * only one rmap entry, rmap->val points directly at that one entry and
6814 static void __set_nx_huge_pages(bool val)
6816 nx_huge_pages = itlb_multihit_kvm_mitigation = val;
6819 static int set_nx_huge_pages(const char *val, const struct kernel_param *kp)
6828 if (sysfs_streq(val, "off")) {
6830 } else if (sysfs_streq(val, "force")) {
6832 } else if (sysfs_streq(val, "auto")) {
6834 } else if (sysfs_streq(val, "never")) {
6844 } else if (kstrtobool(val, &new_val) < 0) {
6978 static int set_nx_huge_pages_recovery_param(const char *val, const struct kernel_param *kp)
6989 err = param_set_uint(val, kp);