mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[common/idd] recovery: reserve IVSHMEM control region
Define a fixed, protocol-independent recovery ABI in the final 64 KiB of IVSHMEM. Provide crash-safe multi-client requests and coherent producer status. Exclude the region from LGMP allocation and frame capacity so future protocol mismatches retain a stable control path.
This commit is contained in:
@@ -119,7 +119,7 @@ bool CLGMPFrameTransport::Initialize()
|
||||
void CLGMPFrameTransport::SealMemoryLayout()
|
||||
{
|
||||
m_frameMemoryOffset =
|
||||
m_ivshmem.GetSize() - m_host.Available();
|
||||
m_ivshmem.GetUsableSize() - m_host.Available();
|
||||
}
|
||||
|
||||
bool CLGMPFrameTransport::Setup(size_t alignSize)
|
||||
@@ -246,7 +246,7 @@ void CLGMPFrameTransport::DeInit()
|
||||
FrameMemoryLimits CLGMPFrameTransport::GetMemoryLimits() const
|
||||
{
|
||||
FrameMemoryLimits limits;
|
||||
limits.capacity = m_ivshmem.GetSize();
|
||||
limits.capacity = m_ivshmem.GetUsableSize();
|
||||
limits.frameMemoryOffset = m_frameMemoryOffset;
|
||||
limits.alignment = m_alignSize;
|
||||
limits.maxFrameSize = m_maxFrameSize;
|
||||
|
||||
Reference in New Issue
Block a user