Skip to content

Commit d583542

Browse files
ardbiesheuveljgross1
authored andcommitted
x86/pvh: Omit needless clearing of phys_base
Since commit d9ec115 ("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>
1 parent bb12f48 commit d583542

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

arch/x86/platform/pvh/head.S

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,6 @@ SYM_CODE_START_LOCAL(pvh_start_xen)
180180
ANNOTATE_RETPOLINE_SAFE
181181
call *%rax
182182

183-
/*
184-
* Clear phys_base. __startup_64 will *add* to its value,
185-
* so reset to 0.
186-
*/
187-
xor %rbx, %rbx
188-
movq %rbx, phys_base(%rip)
189-
190183
/* startup_64 expects boot_params in %rsi. */
191184
lea pvh_bootparams(%rip), %rsi
192185
jmp startup_64

0 commit comments

Comments
 (0)