diff options
author | Juergen Gross <[email protected]> | 2023-02-07 08:59:02 +0100 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2023-03-06 09:41:37 +0100 |
commit | c9ae1b10d9561012a222e05f0d3ab4e93d301f06 (patch) | |
tree | 595ac62963b2b659ef304b5ba51d41d27cacc87c /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) |
x86/paravirt: Merge activate_mm() and dup_mmap() callbacks
The two paravirt callbacks .mmu.activate_mm() and .mmu.dup_mmap() are
sharing the same implementations in all cases: for Xen PV guests they
are pinning the PGD of the new mm_struct, and for all other cases they
are a NOP.
In the end, both callbacks are meant to register an address space with
the underlying hypervisor, so there needs to be only a single callback
for that purpose.
So merge them to a common callback .mmu.enter_mmap() (in contrast to the
corresponding already existing .mmu.exit_mmap()).
As the first parameter of the old callbacks isn't used, drop it from the
replacement one.
[ bp: Remove last occurrence of paravirt_activate_mm() in
asm/mmu_context.h ]
Signed-off-by: Juergen Gross <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Boris Ostrovsky <[email protected]>
Reviewed-by: Srivatsa S. Bhat (VMware) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions