phy page copying - disabling paging vs temporarily mapping
Posted: Sat Oct 22, 2016 8:16 pm
Hi.
I'm writing now my PDT clone function, and I need to do several page frame copies to un-mapped physical memory.
I saw in JamesM tutorial that he presents an assembly physical frame copy function which disables paging, copies a frame and re-enables paging.
Is this the preferred approach, alternatively I can just temporarily map the target physical page to kernel space and unmap it just after I'm done.
I suspect that Jamesm method might have problems with other cores, as paging is disabled for all SMP's. is that right ?
I'm writing now my PDT clone function, and I need to do several page frame copies to un-mapped physical memory.
I saw in JamesM tutorial that he presents an assembly physical frame copy function which disables paging, copies a frame and re-enables paging.
Is this the preferred approach, alternatively I can just temporarily map the target physical page to kernel space and unmap it just after I'm done.
I suspect that Jamesm method might have problems with other cores, as paging is disabled for all SMP's. is that right ?