Ryujinx/src/Ryujinx.Cpu/AppleHv
jhorv 5def0429f8
Add support to IVirtualMemoryManager for zero-copy reads (#6251)
* - WritableRegion: enable wrapping IMemoryOwner<byte>
- IVirtualMemoryManager impls of GetWritableRegion() use pooled memory when region is non-contiguous.
- IVirtualMemoryManager: add GetReadOnlySequence() and impls
- ByteMemoryPool: add new method RentCopy()
- ByteMemoryPool: make class static, remove ctor and singleton field from earlier impl

* - BytesReadOnlySequenceSegment: move from Ryujinx.Common.Memory to Ryujinx.Memory
- BytesReadOnlySequenceSegment: add IsContiguousWith() and Replace() methods
- VirtualMemoryManagerBase:
  - remove generic type parameters, instead use ulong for virtual addresses and nuint for host/physical addresses
  - implement IWritableBlock
  - add virtual GetReadOnlySequence() with coalescing of contiguous segments
  - add virtual GetSpan()
  - add virtual GetWritableRegion()
  - add abstract IsMapped()
  - add virtual MapForeign(ulong, nuint, ulong)
  - add virtual Read<T>()
  - add virtual Read(ulong, Span<byte>)
  - add virtual ReadTracked<T>()
  - add virtual SignalMemoryTracking()
  - add virtual Write()
  - add virtual Write<T>()
  - add virtual WriteUntracked()
  - add virtual WriteWithRedundancyCheck()
- VirtualMemoryManagerRefCountedBase: remove generic type parameters
- AddressSpaceManager: remove redundant methods, add required overrides
- HvMemoryManager: remove redundant methods, add required overrides, add overrides for _invalidAccessHandler handling
- MemoryManager: remove redundant methods, add required overrides, add overrides for _invalidAccessHandler handling
- MemoryManagerHostMapped: remove redundant methods, add required overrides, add overrides for _invalidAccessHandler handling
- NativeMemoryManager: add get properties for Pointer and Length
- throughout: removed invalid <inheritdoc/> comments

* make HvMemoryManager class sealed

* remove unused method

* adjust MemoryManagerHostTracked

* let MemoryManagerHostTracked override WriteImpl()
2024-04-04 22:23:03 -03:00
..
Arm Add workflow to automatically check code style issues for PRs (#4670) 2023-07-24 18:35:04 +02:00
DummyDiskCacheLoadState.cs [Ryujinx.Cpu] Address dotnet-format issues (#5365) 2023-07-01 02:18:52 +00:00
HvAddressSpace.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvAddressSpaceRange.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvApi.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvCpuContext.cs Implement a new JIT for Arm devices (#6057) 2024-01-20 11:11:28 -03:00
HvEngine.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvExecutionContext.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvExecutionContextShadow.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvExecutionContextVcpu.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvIpaAllocator.cs [Ryujinx.Cpu] Address dotnet-format issues (#5365) 2023-07-01 02:18:52 +00:00
HvMemoryBlockAllocation.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvMemoryBlockAllocator.cs Implement host tracked memory manager mode (#6356) 2024-03-26 23:33:24 -03:00
HvMemoryManager.cs Add support to IVirtualMemoryManager for zero-copy reads (#6251) 2024-04-04 22:23:03 -03:00
HvVcpu.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvVcpuPool.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
HvVm.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
IHvExecutionContext.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00
TimeApi.cs Add VTimer as alternative interrupt method on Apple Hypervisor (#5663) 2023-09-26 01:18:32 +02:00