]> git.baikalelectronics.ru Git - kernel.git/commit
x86/io: Unroll string I/O when SEV is active
authorTom Lendacky <thomas.lendacky@amd.com>
Fri, 20 Oct 2017 14:30:55 +0000 (09:30 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 7 Nov 2017 14:35:59 +0000 (15:35 +0100)
commit2bb106bae2bbf20f61932319f6cb5e0e427d32cd
tree6d5275209c0febbce0963bd871e5103aba01f921
parente6799297debc3ec7adfa0df77d1763e7b06474cf
x86/io: Unroll string I/O when SEV is active

Secure Encrypted Virtualization (SEV) does not support string I/O, so
unroll the string I/O operation into a loop operating on one element at
a time.

[ tglx: Gave the static key a real name instead of the obscure __sev ]

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Tested-by: Borislav Petkov <bp@suse.de>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: kvm@vger.kernel.org
Cc: David Laight <David.Laight@ACULAB.COM>
Cc: Borislav Petkov <bp@alien8.de>
Link: https://lkml.kernel.org/r/20171020143059.3291-14-brijesh.singh@amd.com
arch/x86/include/asm/io.h
arch/x86/mm/mem_encrypt.c