]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commit
Improve the legibility of the pagetable generation code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 26 Mar 2016 18:19:20 +0000 (18:19 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 26 Mar 2016 21:38:04 +0000 (21:38 +0000)
commit2664b843c34f0d05e15888ac43c30d909ba3baa3
treece954a03af937f579d59034a09e92b8f5a2eafc5
parent2986115acccc542c67b51af0fe528289ff7dabe5
Improve the legibility of the pagetable generation code

Factor the common _PAGE_xxx attributes out into PAGE_COMMON, and introduce a
macro for the index calculation.

Add _ACCESSED and _DIRTY to the common attributes, to avoid the processor
needing to set the bits.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/hvm_pagetables.S
include/arch/x86/page.h