]> Git Repo - linux.git/commit
KVM: x86: Add capability to grant VM access to privileged SGX attribute
authorSean Christopherson <[email protected]>
Mon, 12 Apr 2021 04:21:43 +0000 (16:21 +1200)
committerPaolo Bonzini <[email protected]>
Tue, 20 Apr 2021 08:18:56 +0000 (04:18 -0400)
commitfe7e948837f312d87853b3fce743795d1ae3715a
tree857091031011a85b50b8e1a04e06cff47b115993
parent72add915fbd5bf5c57deee3da5b2605e966ac199
KVM: x86: Add capability to grant VM access to privileged SGX attribute

Add a capability, KVM_CAP_SGX_ATTRIBUTE, that can be used by userspace
to grant a VM access to a priveleged attribute, with args[0] holding a
file handle to a valid SGX attribute file.

The SGX subsystem restricts access to a subset of enclave attributes to
provide additional security for an uncompromised kernel, e.g. to prevent
malware from using the PROVISIONKEY to ensure its nodes are running
inside a geniune SGX enclave and/or to obtain a stable fingerprint.

To prevent userspace from circumventing such restrictions by running an
enclave in a VM, KVM restricts guest access to privileged attributes by
default.

Cc: Andy Lutomirski <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Kai Huang <[email protected]>
Message-Id: <0b099d65e933e068e3ea934b0523bab070cb8cea.1618196135[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Documentation/virt/kvm/api.rst
arch/x86/kvm/cpuid.c
arch/x86/kvm/x86.c
include/uapi/linux/kvm.h
This page took 0.053131 seconds and 4 git commands to generate.