Skip to content

Lat feat option#279

Merged
luzeng87 merged 7 commits intolat-opensource:masterfrom
xiezyang:lat-feat-option
Apr 7, 2026
Merged

Lat feat option#279
luzeng87 merged 7 commits intolat-opensource:masterfrom
xiezyang:lat-feat-option

Conversation

@xiezyang
Copy link
Copy Markdown
Contributor

@xiezyang xiezyang commented Apr 6, 2026

support options configuration from multiple sources with priority and Add config info to README and instroduce config doc file

xiezyang added 6 commits April 3, 2026 14:10
Refactor parse_args to only read environment variables and argv,
the functionality of setting options parameters is moved to the new function options_set.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
…priority

Allow configuration to be set from:

(1) /etc/latx-x86_64.conf and /etc/latx-i386.conf
(2) ~/.config/latx-x86_64.conf and ~/.config/latx-i386.conf
(3) environment variables (export)
(4) command line arguments

Configuration files use .ini format, allowing per-guest program settings
to be specified.

Priority (higher overrides lower): 4 > 3 > 2 > 1.
For the same option, a higher‑priority source overrides the value from a lower‑priority one.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Remove the following environment variables which are no longer used:

- option_check
- option_em_debug
- option_dump_all_tb

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Fix the issue where the guest program fails to read the configuration
file correctly when running via wine.
Adjust the execution order of target_argv related code.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Introduce latx-i386.conf and  latx-x86_64.conf as a default configuration file
for LATX. It allows defining per-program environment variables and is installed
to the system configuration directory.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
- Remove the unused QEMU_XTENSA_ABI_CALL0 environment variable
- Extend latx-trace to read settings form environment variable in
addition to command-line arguments.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
@xiezyang xiezyang force-pushed the lat-feat-option branch 2 times, most recently from 78337a1 to b8cdef9 Compare April 6, 2026 09:54
Update README with a section explaining configuration options.
Add a separate document detailing the configuration settings.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
@luzeng87 luzeng87 merged commit a65bd6f into lat-opensource:master Apr 7, 2026
10 checks passed
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