Question::page fault::vm:::encrypt and decrypt file data
Pine Ful
pineful at hotmail.com
Tue Aug 31 22:03:10 PDT 2004
hi,
Q1: How to produce a page fault?
Q2: How translate physical memory address into virtual memory address?
Because phys addr is 64 bit and virtual addr is 32 bit.
Q1 description:: I have succeed to add hook in vfs layer to encrypt file
data before write and decrypt file data after read. Now, when I use cp
command, system will reboot, it seem to caused by encrypt data whose addr is
uio->uio_iov->iov_base. Is it ok if only I produce a page fault manually?
Q2 description:: I try to decrypt file data when page fault. I find it's
easy to get physical address from virtual address, but when page fault, kern
will page in several pages including page we require, how can I get virtual
memory address of these pages? May I access data in physical memory
directly? If yes, how tranlate 64 bit phys addr into 32 bit virt addr?
Thanks!!!!
pine
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
More information about the freebsd-questions
mailing list