• Rusty Russell's avatar
    lguest: use set_pte/set_pmd uniformly for real page table entries · 4c1ea3dd
    Rusty Russell authored
    If we're building a pte, we can use simple assigment; only use set_pte
    etc. when we're actually going to use that destination as a PTE.  I
    don't know that we'll ever run under Xen, but it's neater.
    
    And use set_pte/set_pmd rather than assuming native_ versions, even
    though that's probably true for most people.
    
    (Includes compile fix by Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>)
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    Cc: Matias Zabaljauregui <zabaljauregui@gmail.com>
    Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
    4c1ea3dd
page_tables.c 38.8 KB