prot_bits
static const struct prot_bits section_bits[] = {
const struct prot_bits *bits;
const struct prot_bits *ro_bit;
const struct prot_bits *nx_bit;
static void dump_prot(struct pg_state *st, const struct prot_bits *bits, size_t num)
static const struct prot_bits pte_bits[] = {
unsigned long hva, mmu_seq, prot_bits;
prot_bits = _PAGE_PRESENT | __READABLE;
prot_bits |= _CACHE_CC;
prot_bits |= _CACHE_SUC;
prot_bits = kvm_pte_mkwriteable(prot_bits);
prot_bits = kvm_pte_mkdirty(prot_bits);
new_pte = kvm_pfn_pte(pfn, __pgprot(prot_bits));
if (kvm_pte_dirty(prot_bits))
unsigned long prot_bits;
prot_bits = _PAGE_PRESENT | __READABLE | _page_cachable_default;
prot_bits |= _PAGE_WRITE;
prot_bits |= __WRITEABLE;
entry = pfn_pte(pfn, __pgprot(prot_bits));
static const struct prot_bits pte_bits[] = {
unsigned prot_bits = 0;
prot_bits |= 1;
prot_bits |= 2;
gpummu->table[idx++] = (addr + i) | prot_bits;
__u32 prot_bits;
uint32_t prot_bits;
prot_bits = _PAGE_PRESENT | __READABLE | __WRITEABLE | _CACHE_CC | _PAGE_USER;
WRITE_ONCE(*ptep, paddr | prot_bits);