[PATCH 19/30] x86, mm: Move CR3 construction functions

2017-11-10 Thread Dave Hansen
From: Dave Hansen For flushing the TLB, the ASID which has been programmed into the hardware must be known. That differs from what is in 'cpu_tlbstate'. Add functions to transform the 'cpu_tlbstate' values into to the one programmed into the hardware (CR3). It's

[PATCH 19/30] x86, mm: Move CR3 construction functions

2017-11-10 Thread Dave Hansen
From: Dave Hansen For flushing the TLB, the ASID which has been programmed into the hardware must be known. That differs from what is in 'cpu_tlbstate'. Add functions to transform the 'cpu_tlbstate' values into to the one programmed into the hardware (CR3). It's not easy to include

[PATCH 19/30] x86, mm: Move CR3 construction functions

2017-11-08 Thread Dave Hansen
From: Dave Hansen For flushing the TLB, we need to know which ASID has been programmed into the hardware. Since that differs from what is in 'cpu_tlbstate', we need to be able to transform the ASID in cpu_tlbstate to the one programmed into the hardware. It's not

[PATCH 19/30] x86, mm: Move CR3 construction functions

2017-11-08 Thread Dave Hansen
From: Dave Hansen For flushing the TLB, we need to know which ASID has been programmed into the hardware. Since that differs from what is in 'cpu_tlbstate', we need to be able to transform the ASID in cpu_tlbstate to the one programmed into the hardware. It's not easy to include mmu_context.h