summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2026-03-11 13:25:58 +0300
committerWei Liu <wei.liu@kernel.org>2026-03-12 07:25:19 +0300
commit3484127c19aca9e93ef6631e7a47bc4f56212da9 (patch)
treeaf60030423e6ed204c83d51c15886ec0cb9f668b /include/linux
parent3fde5281b805370a6c3bd2ef462ebff70a0ea2c6 (diff)
downloadlinux-3484127c19aca9e93ef6631e7a47bc4f56212da9.tar.xz
x86/hyperv: Save segment registers directly to memory in hv_hvcrash_ctxt_save()
hv_hvcrash_ctxt_save() in arch/x86/hyperv/hv_crash.c currently saves segment registers via a general-purpose register (%eax). Update the code to save segment registers (cs, ss, ds, es, fs, gs) directly to the crash context memory using movw. This avoids unnecessary use of a general-purpose register, making the code simpler and more efficient. The size of the corresponding object file improves as follows: text data bss dec hex filename 4167 176 200 4543 11bf hv_crash-old.o 4151 176 200 4527 11af hv_crash-new.o No functional change occurs to the saved context contents; this is purely a code-quality improvement. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: K. Y. Srinivasan <kys@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Wei Liu <wei.liu@kernel.org> Cc: Dexuan Cui <decui@microsoft.com> Cc: Long Li <longli@microsoft.com> Cc: Thomas Gleixner <tglx@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions