mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-27 00:40:17 +00:00
hv_vm: Correctly split software mapped L2 blocks
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
bf34611bf4
commit
5d3f154d0f
1 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,8 @@ static u64 *hv_pt_get_l3(u64 from)
|
|||
l3d &= ~PTE_TYPE;
|
||||
l3d |= FIELD_PREP(PTE_TYPE, PTE_PAGE);
|
||||
incr = BIT(VADDR_L3_OFFSET_BITS);
|
||||
} else if (IS_SW(l2d) && FIELD_GET(SPTE_TYPE, l3d) == SPTE_MAP) {
|
||||
incr = BIT(VADDR_L3_OFFSET_BITS);
|
||||
}
|
||||
for (u64 idx = 0; idx < ENTRIES_PER_L3_TABLE; idx++, l3d += incr)
|
||||
l3[idx] = l3d;
|
||||
|
|
Loading…
Reference in a new issue