diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-08-07 18:27:11 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-08-07 20:49:26 +0200 |
commit | cb83cece57e1889109dd73ea08ee338668c9d1b8 (patch) | |
tree | e2eed338ae1d091200375cc7803d41c01a237041 /arch/x86/kvm/ioapic.c | |
parent | f97b67a773cd84bd8b55c0a0ec32448a87fc56bb (diff) | |
download | linux-cb83cece57e1889109dd73ea08ee338668c9d1b8.tar.gz linux-cb83cece57e1889109dd73ea08ee338668c9d1b8.tar.bz2 linux-cb83cece57e1889109dd73ea08ee338668c9d1b8.zip |
x86/decompressor: Pass pgtable address to trampoline directly
The only remaining use of the trampoline address by the trampoline
itself is deriving the page table address from it, and this involves
adding an offset of 0x0. So simplify this, and pass the new CR3 value
directly.
This makes the fact that the page table happens to be at the start of
the trampoline allocation an implementation detail of the caller.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230807162720.545787-15-ardb@kernel.org
Diffstat (limited to 'arch/x86/kvm/ioapic.c')
0 files changed, 0 insertions, 0 deletions