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

Refactor Stage2::invalidate_tlb not to read the singleton #49

Open
efenniht opened this issue Sep 11, 2019 · 0 comments
Open

Refactor Stage2::invalidate_tlb not to read the singleton #49

efenniht opened this issue Sep 11, 2019 · 0 comments

Comments

@efenniht
Copy link
Collaborator

Stage2::invalidate_tlb 함수는 global state을 읽는 데 이 함수는 Hafnium 초기화 과정에서 호출될 수 있으므로 초기화 과정을 세심하게 작성해야 합니다. 이 함수가 자신이 속한 MemoryManager의 값을 읽게 하는 건 어려워 보이고, 호출하는 쪽에서 stage2_invalidate 변수를 읽고 직접 판단하는 게 맞아 보입니다.

  • MemoryManager가 읽은 다음
  • 그 값을 PageTable<S>::identity_map 에 전달
  • ...한 걸 PageTable<S>::identity_update에 전달
  • identity_update가 주어진 조건에 따라서 invalidate_tlb을 할지 말지 결정
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

1 participant