lguest: use set_pte/set_pmd uniformly for real page table entries
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 04:26:45 +0000 (22:26 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 23 Sep 2009 12:56:46 +0000 (21:56 +0930)
commit4c1ea3dd718a1d93a726cb3e66665ac4170dcccd
treefc20b6da34016e03faa914743eeaafe489e38443
parentcdae0ad5e8ea630017d4cad3923f763c4e6c3127
lguest: use set_pte/set_pmd uniformly for real page table entries

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: Rusty Russell <rusty@rustcorp.com.au>
Cc: Matias Zabaljauregui <zabaljauregui@gmail.com>
Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
drivers/lguest/page_tables.c