mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
Kernel: Aggregate TLB flush requests for Regions for SMP
Rather than sending one TLB flush request for each page, aggregate them so that we're not spamming the other processors with FlushTLB IPIs.
This commit is contained in:
parent
56126d7a45
commit
06d50f64b0
3 changed files with 28 additions and 13 deletions
|
@ -117,6 +117,11 @@ public:
|
|||
{
|
||||
return (vaddr - m_range.base()).get() / PAGE_SIZE;
|
||||
}
|
||||
|
||||
VirtualAddress vaddr_from_page_index(size_t page_index) const
|
||||
{
|
||||
return vaddr().offset(page_index * PAGE_SIZE);
|
||||
}
|
||||
|
||||
size_t first_page_index() const
|
||||
{
|
||||
|
@ -151,7 +156,6 @@ public:
|
|||
}
|
||||
|
||||
bool commit();
|
||||
bool commit(size_t page_index);
|
||||
|
||||
size_t amount_resident() const;
|
||||
size_t amount_shared() const;
|
||||
|
@ -175,7 +179,6 @@ public:
|
|||
void unmap(ShouldDeallocateVirtualMemoryRange = ShouldDeallocateVirtualMemoryRange::Yes);
|
||||
|
||||
void remap();
|
||||
void remap_page(size_t index);
|
||||
|
||||
// For InlineLinkedListNode
|
||||
Region* m_next { nullptr };
|
||||
|
@ -197,6 +200,9 @@ private:
|
|||
m_access &= ~access;
|
||||
}
|
||||
|
||||
bool commit(size_t page_index);
|
||||
void remap_page(size_t index, bool with_flush = true);
|
||||
|
||||
PageFaultResponse handle_cow_fault(size_t page_index);
|
||||
PageFaultResponse handle_inode_fault(size_t page_index);
|
||||
PageFaultResponse handle_zero_fault(size_t page_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue