diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2021-03-19 10:22:20 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-03-27 00:51:36 +0300 |
commit | 231d3dbdda192e3b3c7b79f4c3b0616f6c7f31b7 (patch) | |
tree | 3edd3ae43817fcf6229b3fabfe00864f8d9d73a2 /arch/x86/kvm/Kconfig | |
parent | b0c7459be0670fabe080e30906ba9fe62df5e02c (diff) | |
download | linux-231d3dbdda192e3b3c7b79f4c3b0616f6c7f31b7.tar.xz |
x86/sgx: Add SGX_CHILD_PRESENT hardware error code
SGX driver can accurately track how enclave pages are used. This
enables SECS to be specifically targeted and EREMOVE'd only after all
child pages have been EREMOVE'd. This ensures that SGX driver will
never encounter SGX_CHILD_PRESENT in normal operation.
Virtual EPC is different. The host does not track how EPC pages are
used by the guest, so it cannot guarantee EREMOVE success. It might,
for instance, encounter a SECS with a non-zero child count.
Add a definition of SGX_CHILD_PRESENT. It will be used exclusively by
the SGX virtualization driver to handle recoverable EREMOVE errors when
saniziting EPC pages after they are freed.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lkml.kernel.org/r/050b198e882afde7e6eba8e6a0d4da39161dbb5a.1616136308.git.kai.huang@intel.com
Diffstat (limited to 'arch/x86/kvm/Kconfig')
0 files changed, 0 insertions, 0 deletions