Lines Matching refs:unaccepted
8 /* Protects unaccepted memory bitmap and accepting_list */
22 * Only memory that is explicitly marked as unaccepted in the bitmap requires
27 * - anything if the system has no unaccepted table;
33 struct efi_unaccepted_memory *unaccepted;
39 unaccepted = efi_get_unaccepted_table();
40 if (!unaccepted)
43 unit_size = unaccepted->unit_size;
49 if (start < unaccepted->phys_base)
50 start = unaccepted->phys_base;
51 if (end < unaccepted->phys_base)
55 start -= unaccepted->phys_base;
56 end -= unaccepted->phys_base;
65 * But, this approach does not work for unaccepted memory. For TDX, a
66 * load from unaccepted memory will not lead to a recoverable exception
71 * access to unaccepted memory. Together these ensure that an extra
87 if (end > unaccepted->size * unit_size * BITS_PER_BYTE)
88 end = unaccepted->size * unit_size * BITS_PER_BYTE;
124 for_each_set_bitrange_from(range_start, range_end, unaccepted->bitmap,
129 phys_start = range_start * unit_size + unaccepted->phys_base;
130 phys_end = range_end * unit_size + unaccepted->phys_base;
147 bitmap_clear(unaccepted->bitmap, range_start, len);
156 struct efi_unaccepted_memory *unaccepted;
161 unaccepted = efi_get_unaccepted_table();
162 if (!unaccepted)
165 unit_size = unaccepted->unit_size;
171 if (start < unaccepted->phys_base)
172 start = unaccepted->phys_base;
173 if (end < unaccepted->phys_base)
177 start -= unaccepted->phys_base;
178 end -= unaccepted->phys_base;
181 * Also consider the unaccepted state of the *next* page. See fix #1 in
188 if (end > unaccepted->size * unit_size * BITS_PER_BYTE)
189 end = unaccepted->size * unit_size * BITS_PER_BYTE;
193 if (test_bit(start / unit_size, unaccepted->bitmap)) {