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

Set accelerator options after user options #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vmobilis
Copy link

@vmobilis vmobilis commented Oct 8, 2021

@limboemu, in version 6.0 you changed TCG initialization options:
– in version 5.1, "-accel tcg,thread=multi" was added only if MTTCG was activated;
– in version 6.0, "-accel tcg" is added always, with "thread=multi" or "thread=single" option.

Although it is a better solution, because it allows to explicitly set single-threaded execution on 64-bit hosts, but now it's impossible to set additional TCG options in "Extra QEMU Params" field.

The reason is that in QEMU 5.1+, the TCG seems to be initialized only once, and all subsequent "-accel tcg" options are ignored.

After you're setting "-accel tcg" in Qemu 5.1, you can later write in extra options "-accel tcg,ANYTHING", options do not matter, they are skipped.
It makes impossible to set TCG buffer size with:
"-accel tcg,tb-size=128,thread=multi" or
"-accel tcg,tb-size=128,thread=single", for example.
The default size is convenient because it does not use much memory, but if machine does not need large RAM, it's possible to set more memory for TCG buffer, and then machine runs noticeably smoother.

The suggested solution is to set TCG options after user options – in that case user options will be set first and TCG will be initialized by them.
Or, if extra field is not set, TCG will be initialized as usual, with MTTCG checkbox.

It is compatible with QEMU 2.9.1, 5.1 and should be compatible with next versions.
And thank you for Limbo! :)

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.

1 participant