Skip to content

Validate with cheap methods before running check#57

Closed
ben-grande wants to merge 2 commits into
QubesOS:mainfrom
ben-grande:long-wait
Closed

Validate with cheap methods before running check#57
ben-grande wants to merge 2 commits into
QubesOS:mainfrom
ben-grande:long-wait

Conversation

@ben-grande

@ben-grande ben-grande commented May 29, 2026

Copy link
Copy Markdown
Contributor

For: QubesOS/qubes-issues#10569
For: QubesOS/qubes-issues#9902


I haven't tested this yet. I am implictly relying that untrusted_qdb does the check is_running() if it's empty.

On other places, use cheaper methods like key in dictionary before even checking if domain is running. This is important for the loop through all domains.

I will use cProfile to test if there are improvements and if less calls are made to is_running().

To reduce even more the number of calls, I'd like to change this: https://github.com/QubesOS/qubes-core-admin/blob/18afb70d78afabb7ca9da90a7579138318caa4d0/qubes/vm/qubesvm.py#L1088, from is_running() to something else, maybe without relying on libvirt.

@ben-grande

Copy link
Copy Markdown
Contributor Author

Superseded by QubesOS/qubes-core-admin#819

@ben-grande ben-grande closed this Jun 1, 2026
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