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

feat(vm): Split old and new VM implementations #2915

Merged
merged 19 commits into from
Sep 23, 2024

Conversation

slowli
Copy link
Contributor

@slowli slowli commented Sep 18, 2024

What ❔

Splits old and new VM implementations in the multivm crate:

  • Old VMs are encapsulated in the LegacyVmInstance enum, while new ones in the FastVmInstance enum (which includes plain and shadowed VM variants).
  • Fast VM and FastVmInstance now expose a tracer type.
  • Usage of the Fast VM in the batch executor are updated correspondingly.

Why ❔

It seems infeasible to unify the tracer model for old and new VMs, so keeping them all in a single enum makes little sense.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

core/lib/multivm/src/versions/vm_fast/vm.rs Show resolved Hide resolved
core/lib/multivm/src/versions/vm_fast/vm.rs Show resolved Hide resolved
core/lib/multivm/src/vm_instance.rs Outdated Show resolved Hide resolved
core/lib/vm_executor/src/batch/factory.rs Outdated Show resolved Hide resolved
@slowli slowli marked this pull request as ready for review September 19, 2024 09:55
@joonazan joonazan added this pull request to the merge queue Sep 23, 2024
Merged via the queue into main with commit 93bc66f Sep 23, 2024
32 checks passed
@joonazan joonazan deleted the aov-pla-1032-split-old-and-new-vm-implementations branch September 23, 2024 14:24
Deniallugo pushed a commit that referenced this pull request Sep 24, 2024
## What ❔

Splits old and new VM implementations in the `multivm` crate:

- Old VMs are encapsulated in the `LegacyVmInstance` enum, while new
ones in the `FastVmInstance` enum (which includes plain and shadowed VM
variants).
- Fast VM and `FastVmInstance` now expose a tracer type.
- Usage of the Fast VM in the batch executor are updated
correspondingly.

## Why ❔

It seems infeasible to unify the tracer model for old and new VMs, so
keeping them all in a single enum makes little sense.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
github-merge-queue bot pushed a commit that referenced this pull request Sep 25, 2024
🤖 I have created a release *beep* *boop*
---


##
[24.27.0](core-v24.26.0...core-v24.27.0)
(2024-09-25)


### Features

* **vm:** Split old and new VM implementations
([#2915](#2915))
([93bc66f](93bc66f))


### Bug Fixes

* **api:** Return correct flat call tracer
([#2917](#2917))
([218646a](218646a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: zksync-era-bot <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants