Page MenuHomeFreeBSD

hyperv: Fix single page invalidation path
Needs ReviewPublic

Authored by aokblast on Mon, Oct 5, 8:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 7, 3:02 PM
Unknown Object (File)
Wed, Oct 7, 12:58 PM
Unknown Object (File)
Wed, Oct 7, 7:19 AM
Unknown Object (File)
Tue, Oct 6, 11:47 AM
Unknown Object (File)
Tue, Oct 6, 1:17 AM
Unknown Object (File)
Mon, Oct 5, 11:44 PM
Unknown Object (File)
Mon, Oct 5, 11:09 PM
Subscribers

Details

Reviewers
kib
whu
Summary

A single page invalidation sets addr2 == 0. In the original code, it
falsely flush the whole address in non global pmap. However, the
kernel pmap are all PG_G, which means a single page TLB flush will always be
staled and thus become invalid. As a result, we set parameter based on
their op in a new helper function instead of relying on args. This
affects only on AMD platform as Intel has their PTI implementation.

PR: 291577
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 77735
Build 74618: arc lint + arc unit