Skip running check for untrusted_qdb access#818
Conversation
| ): | ||
| import qubesdb # pylint: disable=import-error | ||
|
|
||
| vm._qdb_connection = qubesdb.QubesDB(vm.name) |
There was a problem hiding this comment.
The reason I had to move to qubes.app is because firing the event "domain-load" reaches extensions before it reaches qubes.vm.qubesvm...
One access doesn't takes few nanoseconds, but when looping through domains multiple times, this blocking operation can impact the responsiveness of qubesd. For: QubesOS/qubes-issues#9902 For: QubesOS/qubes-issues#10569 For: QubesOS/qubes-issues#10648
|
This PR likely completely breaks qubesdb access for freshly started VMs (as in - started when qubesd is already running). Is it all to avoid calling |
Yes. It is slow. One call is fine, but many blocking calls takes a considerable time considering it can be called thousand of times (3k-5k just from the two recorded API calls) to check that a halted domain, that has no untrusted_qdb, is not running. I find it horrible to call
I guess that is possible... I though it would be dangerous to cache such state, but I can try and see how it goes. |
|
Superseded by #819 |
One access doesn't takes few nanoseconds, but when looping through domains multiple times, this blocking operation can impact the responsiveness of qubesd.
For: QubesOS/qubes-issues#9902
For: QubesOS/qubes-issues#10569
For: QubesOS/qubes-issues#10648