diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-10-09 19:04:42 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2024-10-29 19:23:34 +0300 |
commit | d5835423046c504d2b3c32cb9284d4465a7f28b1 (patch) | |
tree | fbcf6a632de6bd915cac5d83058f88a13638ec39 | |
parent | bb12f48cd150666b96858443e0fc26e92bb7e498 (diff) | |
download | linux-d5835423046c504d2b3c32cb9284d4465a7f28b1.tar.xz |
x86/pvh: Omit needless clearing of phys_base
Since commit
d9ec1158056b ("x86/boot/64: Use RIP_REL_REF() to assign 'phys_base'")
phys_base is assigned directly rather than added to, so it is no longer
necessary to clear it after use.
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Tested-by: Jason Andryuk <jason.andryuk@amd.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Message-ID: <20241009160438.3884381-10-ardb+git@google.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
-rw-r--r-- | arch/x86/platform/pvh/head.S | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/platform/pvh/head.S b/arch/x86/platform/pvh/head.S index 5a196fb3ebd8..7ca51a4da217 100644 --- a/arch/x86/platform/pvh/head.S +++ b/arch/x86/platform/pvh/head.S @@ -180,13 +180,6 @@ SYM_CODE_START_LOCAL(pvh_start_xen) ANNOTATE_RETPOLINE_SAFE call *%rax - /* - * Clear phys_base. __startup_64 will *add* to its value, - * so reset to 0. - */ - xor %rbx, %rbx - movq %rbx, phys_base(%rip) - /* startup_64 expects boot_params in %rsi. */ lea pvh_bootparams(%rip), %rsi jmp startup_64 |