Selective Memory Clearing for Confidential Context Switching

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing shared computing environments face inefficiencies in maintaining data confidentiality due to the overhead of clearing entire memory regions when reassigned, which can compromise workload confidentiality and performance.

Innovation Solution

Implementing selective clearing of memory regions by tracking execution context metadata to only clear memory regions reassigned to new contexts, while allowing reassignment to previous tenants without clearing, thus optimizing resource utilization and preserving confidentiality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If entire memory regions are cleared when reassigned, then data confidentiality is maintained, but performance deteriorates due to overhead

Engineering Contradiction:
Improvedata confidentialityVSAvoidperformance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies local quality by differentiating the treatment of memory regions based on their assignment history. Instead of uniformly clearing all memory regions, the system selectively clears only those regions that have been reassigned to different execution contexts, while allowing regions reassigned to the same context to retain their data. This localized differentiation maintains confidentiality where needed while preserving performance where data retention is safe.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent implements dynamics by making the memory clearance behavior adaptive and context-dependent. The system dynamically determines whether to clear a memory region based on the execution context metadata, changing its state from a static all-or-nothing clearance approach to a dynamic selective clearance mechanism that responds to actual usage patterns and assignment history.

Inventive Principle:
Principle #15Dynamics

2Productivity

If memory regions are selectively cleared based on execution context, then performance improves, but device complexity increases due to tracking requirements

Engineering Contradiction:
ImproveperformanceVSAvoiddevice complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent applies universality by designing a single metadata structure that serves multiple functions: tracking execution context assignments, determining clearance requirements, and enabling selective memory management. This multi-functional metadata approach consolidates what would otherwise require separate tracking mechanisms into one unified system, reducing overall complexity despite the added functionality.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The system implements self-service by having the metadata automatically track and manage the clearance decisions without requiring complex external control mechanisms. The execution context metadata self-determines whether clearance is needed based on assignment history, eliminating the need for sophisticated decision-making algorithms or additional monitoring systems.

Inventive Principle:
Principle #25Self-service

3Reliability

If memory regions reassigned to previous tenants are cleared, then data integrity is maintained, but resource utilization deteriorates

Engineering Contradiction:
Improvedata integrityVSAvoidresource utilization
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies local quality by differentiating the clearance treatment based on the assignment history of each memory region. Regions reassigned to the same execution context retain their data (no clearance needed), while regions reassigned to different contexts are cleared. This localized differentiation optimizes resource utilization by avoiding unnecessary clearance operations while maintaining data integrity where required.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent implements discarding and recovering by selectively discarding (clearing) only the portions of memory that need to be discarded for security reasons, while recovering (retaining) data in memory regions where it can be safely reused. This selective approach maximizes resource utilization by reusing memory data across execution contexts without compromising security.

Inventive Principle:
Principle #34Discarding and recovering

Data Source

PatentUS20250363203A1Maintaining data confidentiality in shared computing environments
Publication Date: 2025.11.27 MELLANOX TECHNOLOGIES LTD(IL)
  • US20250363203A1 patent drawing
  • US20250363203A1 patent drawing
  • US20250363203A1 patent drawing

AI summary

The technology disclosed herein enables selective clearing of memory regions upon a context switch. An example method includes the operations of: determining an identifier of a current execution context associated with a memory region; determining an identifier of a previous execution context specified by metadata associated with the memory region; responsive to determining that the identifier of the current execution context does not match the identifier of the previous execution context, associating the memory region with the current execution context; and clearing at least a part of the memory region.