mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 00/23] nitro_enclaves: Fix enclave release, command retries and the CPU pool
@ 2026-11-29 18:21 Alexander Graf
  2026-11-29 18:21 ` [PATCH v2 01/23] MAINTAINERS: Take over the Nitro Enclaves driver Alexander Graf
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: Alexander Graf @ 2026-11-29 18:21 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Arnd Bergmann
  Cc: The AWS Nitro Enclaves Team, linux-kernel, Paolo Bonzini,
	Stefano Garzarella, Stefan Hajnoczi, Marek Szyprowski,
	Robin Murphy, Andrew Morton, David Hildenbrand, Mike Rapoport,
	Jonathan Corbet, Shuah Khan, Randy Dunlap, diapop, mancio,
	mknaust, nh-open-source, kvm, virtualization, iommu, linux-mm,
	linux-doc

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

Changes in v2:

  - Rebase onto v7.4-rc4+
  - Move the MAINTAINERS update to the front
  - New patch "nitro_enclaves: Request write access to enclave memory regions"
    to require write permission when pinning an enclave's memory
  - New patch "nitro_enclaves: Online and offline pool CPUs with no pool lock held"
    so that no driver lock is held across CPU hotplug (Sashiko)
  - New patch "nitro_enclaves: Free the CPU pool when driver registration fails"
    so that a failed module init does not leave the pool CPUs offline (Sashiko)
  - New patch "nitro_enclaves: Free the CPU pool that ne_exit() does not see"
    for a module load that fails or an rmmod that races a ne_cpus write
  - Add the Fixes: tag on the interrupt setup reorder (Sashiko)
  - Clear a rejected boot-time ne_cpus value (Sashiko)
  - Refuse a CPU list that does not fit the parameter buffer

v1: https://lore.kernel.org/r/cover.1794300000.git.graf@amazon.com

Alexander Graf (23):
  MAINTAINERS: Take over the Nitro Enclaves driver
  nitro_enclaves: Release the reference on a rejected region page
  nitro_enclaves: Request write access to enclave memory regions
  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: Online and offline pool CPUs with no pool lock held
  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: Free the CPU pool when driver registration fails
  nitro_enclaves: Free the CPU pool that ne_exit() does not see
  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                               |   2 +-
 drivers/virt/nitro_enclaves/ne_misc_dev.c | 804 ++++++++++++++++------
 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, 814 insertions(+), 256 deletions(-)


base-commit: 4f069ab1ec243e6b60dc438772905855c60774e8
-- 
2.47.1


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2026-11-29 18:35 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 18:21 [PATCH v2 00/23] nitro_enclaves: Fix enclave release, command retries and the CPU pool Alexander Graf
2026-11-29 18:21 ` [PATCH v2 01/23] MAINTAINERS: Take over the Nitro Enclaves driver Alexander Graf
2026-11-29 18:21 ` [PATCH v2 02/23] nitro_enclaves: Release the reference on a rejected region page Alexander Graf
2026-11-29 18:21 ` [PATCH v2 03/23] nitro_enclaves: Request write access to enclave memory regions Alexander Graf
2026-11-29 18:21 ` [PATCH v2 04/23] nitro_enclaves: Split freeing the slot from freeing the enclave Alexander Graf
2026-11-29 18:21 ` [PATCH v2 05/23] nitro_enclaves: Ignore the reply of a failed slot info command Alexander Graf
2026-11-29 18:21 ` [PATCH v2 06/23] nitro_enclaves: Retry a command the device asks us to retry Alexander Graf
2026-11-29 18:21 ` [PATCH v2 07/23] nitro_enclaves: Stop sending commands to a broken device Alexander Graf
2026-11-29 18:21 ` [PATCH v2 08/23] nitro_enclaves: Set up the device state before requesting its interrupts Alexander Graf
2026-11-29 18:21 ` [PATCH v2 09/23] nitro_enclaves: Online and offline pool CPUs with no pool lock held Alexander Graf
2026-11-29 18:21 ` [PATCH v2 10/23] nitro_enclaves: Wait for file operations before unbinding the PCI device Alexander Graf
2026-11-29 18:21 ` [PATCH v2 11/23] nitro_enclaves: Let the region tracking arrays fall back to vmalloc Alexander Graf
2026-11-29 18:21 ` [PATCH v2 12/23] nitro_enclaves: Do not return enclave threads to a replaced CPU pool Alexander Graf
2026-11-29 18:21 ` [PATCH v2 13/23] nitro_enclaves: Do not report a torn down CPU pool as set Alexander Graf
2026-11-29 18:21 ` [PATCH v2 14/23] nitro_enclaves: Keep the CPU pool when the new CPU list does not parse Alexander Graf
2026-11-29 18:21 ` [PATCH v2 15/23] nitro_enclaves: Put the CPU pool back when the new CPU list is refused Alexander Graf
2026-11-29 18:21 ` [PATCH v2 16/23] nitro_enclaves: Initialise the CPU pool mutex statically Alexander Graf
2026-11-29 18:21 ` [PATCH v2 17/23] nitro_enclaves: Free the CPU pool when driver registration fails Alexander Graf
2026-11-29 18:21 ` [PATCH v2 18/23] nitro_enclaves: Free the CPU pool that ne_exit() does not see Alexander Graf
2026-11-29 18:21 ` [PATCH v2 19/23] nitro_enclaves: Build the boot-time CPU pool once the CPUs are online Alexander Graf
2026-11-29 18:21 ` [PATCH v2 20/23] nitro_enclaves: Set up the CPU pool under the CPU hotplug read lock Alexander Graf
2026-11-29 18:21 ` [PATCH v2 21/23] nitro_enclaves: Let 32-bit processes use the ioctl interface Alexander Graf
2026-11-29 18:21 ` [PATCH v2 22/23] nitro_enclaves: Index CPU pool cores by sibling mask Alexander Graf
2026-11-29 18:21 ` [PATCH v2 23/23] nitro_enclaves: Time the wait for the device to turn off by the clock Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®