You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[mm_supv]: Move common x86 descriptor definitions to patina_internal_cpu #1995
patina_mm_supervisor defines its own x86-64 descriptor types and CPU helpers that are not specific to MM. Examples are TssDescriptor and CallGateDescriptor (privilege_mgmt/call_gate.rs), SegmentDescriptor (mmcore/validation.rs), and DescriptorTablePointer with the CR/MSR/GDTR/IDTR accessors (intrinsics.rs). Some already have a counterpart in patina_internal_cpu, for example DescriptorTablePointer and TaskStateSegment in gdt.rs. Raised in review of #1875.
Audit the supervisor for architectural definitions and helpers that other crates can use, move them into patina_internal_cpu (gdt.rs, or a new module next to it), and have the supervisor import them. Where a type exists in both crates, keep one copy. MM-specific items stay in the supervisor, such as the call gate selector layout and the SmiGdtImage template check.
Activity