I read that cpu generates virtual address and using the same mmu translates to physical address and then fetches the data from RAM. But when there is a page fault, the data is fetched from the HDD(or Secondary Storage) where the program resides. But how does the cpu knows exact location of the program on storage device. Does it maps the virtual address to the address of storage device? If yes, how does it do ?
How does cpu fetch active program data (using virtual address) from storage when there is a page fault?
computer architecture;operating systems;memory management;virtual memory;paging