]> git.baikalelectronics.ru Git - kernel.git/commit
virt/coco/sev-guest: Check SEV_SNP attribute at probe time
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 15 Feb 2023 10:01:42 +0000 (11:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:05 +0000 (13:34 +0100)
commit68a23b0fa2e3688e162e8f1102e145c03ef1c26b
treedcda957e4e7339c5ca35c6497afc17eaf73f6f70
parent01447bc0484770006ab71694e1b0d9d8700cedb0
virt/coco/sev-guest: Check SEV_SNP attribute at probe time

commit 7d93816303e99668d547b9e165b2dc51cea43a54 upstream.

No need to check it on every ioctl. And yes, this is a common SEV driver
but it does only SNP-specific operations currently. This can be
revisited later, when more use cases appear.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20230307192449.24732-3-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/sev.c
drivers/virt/coco/sev-guest/sev-guest.c