x86/boot: Use MSR read/write helpers instead of inline assembly
authorMichael Roth <michael.roth@amd.com>
Wed, 9 Feb 2022 18:10:00 +0000 (12:10 -0600)
committerBorislav Petkov <bp@suse.de>
Wed, 6 Apr 2022 11:02:13 +0000 (13:02 +0200)
commit950d00558a920227b5703d1fcc4751cfe03853cd
tree6ae8f4472649d90a935b7d42b3f26277d898f2cd
parent176db622573f028f85221873ea4577e096785315
x86/boot: Use MSR read/write helpers instead of inline assembly

Update all C code to use the new boot_rdmsr()/boot_wrmsr() helpers
instead of relying on inline assembly.

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220307213356.2797205-7-brijesh.singh@amd.com
arch/x86/boot/compressed/sev.c
arch/x86/boot/cpucheck.c