731a537015
Migrate profiles and core masks to CpuSelection Add a conservative compatibility layer for moving persisted profiles and core masks toward topology-aware CpuSelection while preserving legacy fields. - Add profile schema version constants and CpuSelection migration metadata - Add ProcessProfileSnapshot with legacy ProcessorAffinity plus optional CpuSelection - Extend ProfileModel and CoreMask with CpuSelection fields without removing legacy data - Add CpuSelectionMigrationService for legacy affinity mask and bool core mask conversion - Preserve legacy mask build-back only when CpuSelection is safely representable - Wire profile save/load to read and persist CpuSelection when topology is available - Wire core mask load/save to attach CpuSelection metadata while keeping BoolMask - Return failure when CpuSelection profile application fails - Add tests for CPU64 alias protection, multi-group safety, topology signature review, legacy/v2 JSON compatibility and profile load behavior No UI, preset generator, registry/IFEO, priority guardrail, X3D detection, version or tag changes.
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
/*
|
|
* ThreadPilot - Advanced Windows Process and Power Plan Manager
|
|
* Copyright (C) 2025 Prime Build
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation, version 3 only.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
namespace ThreadPilot.Models
|
|
{
|
|
public sealed record CpuSelectionMigrationMetadata
|
|
{
|
|
public bool CreatedFromLegacyAffinityMask { get; init; }
|
|
|
|
public bool CreatedFromLegacyCoreMask { get; init; }
|
|
|
|
public bool ReviewRequired { get; init; }
|
|
|
|
public string MigrationConfidence { get; init; } = string.Empty;
|
|
|
|
public string Reason { get; init; } = string.Empty;
|
|
|
|
public CpuTopologySignature? TopologySignature { get; init; }
|
|
|
|
public long? SourceLegacyAffinityMask { get; init; }
|
|
}
|
|
}
|