-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Remove support for launching vats outside a subcluster #535
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
Conversation
bca937f to
8b5d454
Compare
f225996 to
7c9465e
Compare
7c9465e to
53a0e20
Compare
grypez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change leaves dead code in support of rogue vats.
Since no rogue vats are started internally, privatizing #launchVat ought to make the getVatSubcluster method in the kernel store well-defined (if it returns undefined, either the given vat does not exist or the kernel has failed).
function getVatSubcluster(vatId: VatId): SubclusterId {
const currentMap = getVatToSubclusterMap();
return currentMap[vatId] ?? Fail`Vat ${vatId} has no subcluster`;
}Then the rogue vat code can be removed entirely.
packages/ocap-kernel/src/Kernel.ts
Outdated
| } | ||
| for (const vat of rogueVats) { | ||
| await this.launchVat(vat.config); | ||
| await this.#launchVat(vat.config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| await this.#launchVat(vat.config); |
I think we can remove this loop and the const rogueVats = ... entirely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shoot.. I think my rebase messed up things a bit and I also forgot to clean up. Done 97bbd58
grypez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #532
Remove support for launching vats outside a subcluster.
Update all that rely on launching standalone vats.