Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEX page size requirement #2730

Closed
ChanthMiao opened this issue Jun 27, 2023 · 4 comments
Closed

FEX page size requirement #2730

ChanthMiao opened this issue Jun 27, 2023 · 4 comments

Comments

@ChanthMiao
Copy link

Problem

I am trying to port FEX in a alpha like architecture, which is 8k pagesize only.

It seems that FEX requires 4k pagesize. I implement MemAllocator8k and MemAllocator8k32Bit to handle guest memory syscall.

Currently, the biggest question for me is that what compements of FEXt self , except the guest syscall handler, depends on 4k pagesize.

@Sonicadvance1
Copy link
Member

FEX itself outside of the allocators make only a few 4K pagesize assumptions, this is because implementing x86 emulation on any platform that doesn't support 4k pagesizes is always going to be a hack.
While we're trying to remove most 4k pagesize assumptions for our Wine support, there is probably still some missing depending on where you look.

@ChanthMiao
Copy link
Author

It seems that the FEXCore::Allocator requires 4k pagesize?

@ChanthMiao
Copy link
Author

@Sonicadvance1
Do you know the pagesize requirements of OSAllocator_64Bit and ForwardOnlyIntrusiveArenaAllocator?
Is it safe to modify them to work in a 8k pagesize platform?

@neobrain
Copy link
Member

Development discussion is best done on FEX's Discord.

For 4K page size emulation, see #1921 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants