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

JIT optimization of guest code (aka virtualization-based optimizations) #6

Open
jessiepathfinder opened this issue Jul 26, 2022 · 0 comments

Comments

@jessiepathfinder
Copy link

One of the topics I studied the most is virtualization-based optimizations (the use of optimizing virtual machines). Java has already done this with their Java Virtual Machine, and Google Chrome has already done this with their V8 JavaScript Virtual Machine, so I believe that VirtualBox should do this with their x86-64 virtual machine as well.

DynamoRIO once attempted to make a JIT optimizer for native machine code. It looks like VirtualBox works by rewriting privileged instructions in the guest code into calls to the hypervisor. It also looks like VirtualBox uses basic block transformation techniques that are similar to the ones used by DynamoRIO. We can add a basic block optimizer that performs JIT optimizations to the guest code, such as hot branches inlining and register allocation.

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