linux/arch/x86/hyperv
Uros Bizjak afeb96cb18 x86/hyperv: Use any general-purpose register when saving %cr2 and %cr8
hv_hvcrash_ctxt_save() in arch/x86/hyperv/hv_crash.c currently saves %cr2
and %cr8 using %eax ("=a"). This unnecessarily forces a specific register.
Update the inline assembly to use a general-purpose register ("=r") for
both %cr2 and %cr8. This makes the code more flexible for the compiler
while producing the same saved context contents.

No functional changes.

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>
2026-03-12 04:25:20 +00:00
..
.gitignore x86/hv: Add gitignore entry for generated header file 2025-12-13 19:57:41 +12:00
Makefile Drivers: hv: Introduce mshv_vtl driver 2025-12-05 23:16:26 +00:00
hv_apic.c drivers: hv: Allow vmbus message synic interrupt injected from Hyper-V 2025-11-15 06:18:14 +00:00
hv_crash.c x86/hyperv: Use any general-purpose register when saving %cr2 and %cr8 2026-03-12 04:25:20 +00:00
hv_init.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
hv_spinlock.c x86/pvlocks: Move paravirt spinlock functions into own header 2026-01-13 14:57:45 +01:00
hv_trampoline.S x86/hyperv: Add trampoline asm code to transition from hypervisor 2025-11-15 06:18:16 +00:00
hv_vtl.c x86/hyperv: Fix error pointer dereference 2026-02-18 23:22:27 +00:00
irqdomain.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
ivm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mmu.c hyperv-next for 6.15 2025-03-25 14:47:04 -07:00
mshv-asm-offsets.c Drivers: hv: Introduce mshv_vtl driver 2025-12-05 23:16:26 +00:00
mshv_vtl_asm.S Drivers: hv: Introduce mshv_vtl driver 2025-12-05 23:16:26 +00:00
nested.c x86/hyperv: Fix warnings for missing export.h header inclusion 2025-07-09 23:43:53 +00:00