Skip to content

nitro_enclaves: Fix enclave release, command retries and the CPU pool

Alexander Graf lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19nitro_enclaves: Release the reference on a rejected region pagedrivers/virt/nitro_enclaves/ne_misc_dev.c+8 -40 replies
2/19nitro_enclaves: Split freeing the slot from freeing the enclavedrivers/virt/nitro_enclaves/ne_misc_dev.c+74 -370 replies
3/19nitro_enclaves: Ignore the reply of a failed slot info commanddrivers/virt/nitro_enclaves/ne_pci_dev.c+4 -10 replies
4/19nitro_enclaves: Retry a command the device asks us to retrydrivers/virt/nitro_enclaves/ne_misc_dev.c drivers/virt/nitro_enclaves/ne_pci_dev.c+101 -100 replies
5/19nitro_enclaves: Stop sending commands to a broken devicedrivers/virt/nitro_enclaves/ne_misc_dev.c drivers/virt/nitro_enclaves/ne_pci_dev.c drivers/virt/nitro_enclaves/ne_pci_dev.h+59 -280 replies
6/19nitro_enclaves: Set up the device state before requesting its interruptsdrivers/virt/nitro_enclaves/ne_pci_dev.c+7 -70 replies
7/19nitro_enclaves: Wait for file operations before unbinding the PCI devicedrivers/virt/nitro_enclaves/ne_misc_dev.c drivers/virt/nitro_enclaves/ne_misc_dev.h drivers/virt/nitro_enclaves/ne_pci_dev.c+148 -150 replies
8/19nitro_enclaves: Let the region tracking arrays fall back to vmallocdrivers/virt/nitro_enclaves/ne_misc_dev.c+10 -80 replies
9/19nitro_enclaves: Do not return enclave threads to a replaced CPU pooldrivers/virt/nitro_enclaves/ne_misc_dev.c+37 -390 replies
10/19nitro_enclaves: Do not report a torn down CPU pool as setdrivers/virt/nitro_enclaves/ne_misc_dev.c+3 -00 replies
11/19nitro_enclaves: Keep the CPU pool when the new CPU list does not parsedrivers/virt/nitro_enclaves/ne_misc_dev.c+31 -270 replies
12/19nitro_enclaves: Put the CPU pool back when the new CPU list is refuseddrivers/virt/nitro_enclaves/ne_misc_dev.c+33 -20 replies
13/19nitro_enclaves: Initialise the CPU pool mutex staticallydrivers/virt/nitro_enclaves/ne_misc_dev.c+3 -30 replies
14/19nitro_enclaves: Build the boot-time CPU pool once the CPUs are onlinedrivers/virt/nitro_enclaves/ne_misc_dev.c+58 -50 replies
15/19nitro_enclaves: Set up the CPU pool under the CPU hotplug read lockdrivers/virt/nitro_enclaves/ne_misc_dev.c+48 -250 replies
16/19nitro_enclaves: Let 32-bit processes use the ioctl interfacedrivers/virt/nitro_enclaves/ne_misc_dev.c+2 -00 replies
17/19nitro_enclaves: Index CPU pool cores by sibling maskdrivers/virt/nitro_enclaves/ne_misc_dev.c drivers/virt/nitro_enclaves/ne_misc_dev.h+113 -710 replies
18/19nitro_enclaves: Time the wait for the device to turn off by the clockdrivers/virt/nitro_enclaves/ne_pci_dev.c+8 -130 replies
19/19MAINTAINERS: Take over the Nitro Enclaves driverMAINTAINERS+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/19] nitro_enclaves: Fix enclave release, command retries and the CPU pool

While working with AI on the nitro_enclaves driver, it stumbled over a few issues in the code. None of them are out of the ordinary, but they all fix legit corner cases that are better to have fixed upstream.

While at it, I also realized that the MAINTAINERS file is outdated. Alexandru Ciobotaru no longer works on Nitro Enclaves. I'm taking over the maintainer role instead.

Alex

Alexander Graf (19):
nitro_enclaves: Release the reference on a rejected region page
nitro_enclaves: Split freeing the slot from freeing the enclave
nitro_enclaves: Ignore the reply of a failed slot info command
nitro_enclaves: Retry a command the device asks us to retry
nitro_enclaves: Stop sending commands to a broken device
nitro_enclaves: Set up the device state before requesting its
interrupts
nitro_enclaves: Wait for file operations before unbinding the PCI
device
nitro_enclaves: Let the region tracking arrays fall back to vmalloc
nitro_enclaves: Do not return enclave threads to a replaced CPU pool
nitro_enclaves: Do not report a torn down CPU pool as set
nitro_enclaves: Keep the CPU pool when the new CPU list does not parse
nitro_enclaves: Put the CPU pool back when the new CPU list is refused
nitro_enclaves: Initialise the CPU pool mutex statically
nitro_enclaves: Build the boot-time CPU pool once the CPUs are online
nitro_enclaves: Set up the CPU pool under the CPU hotplug read lock
nitro_enclaves: Let 32-bit processes use the ioctl interface
nitro_enclaves: Index CPU pool cores by sibling mask
nitro_enclaves: Time the wait for the device to turn off by the clock
MAINTAINERS: Take over the Nitro Enclaves driver

 MAINTAINERS                               |   2 +-
 drivers/virt/nitro_enclaves/ne_misc_dev.c | 658 +++++++++++++++-------
 drivers/virt/nitro_enclaves/ne_misc_dev.h |  24 +-
 drivers/virt/nitro_enclaves/ne_pci_dev.c  | 236 +++++++-
 drivers/virt/nitro_enclaves/ne_pci_dev.h  |   4 +
 5 files changed, 688 insertions(+), 236 deletions(-)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.47.1