Skip to content

Commit 933256a

Browse files
committed
Merge remote-tracking branch 'origin/pr/354'
* origin/pr/354: Handle preloaded disposables Black
2 parents 05a7531 + fff79cd commit 933256a

2 files changed

Lines changed: 387 additions & 199 deletions

File tree

doc/manpages/qvm-features.rst

Lines changed: 82 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ means :py:obj:`False` and non-empty string (commonly ``'1'``) means
5252
extension-dependent. In most cases the default value for feature is retrieved
5353
from a qube template.
5454

55+
Feature managed by the `system` must not be modified by users.
56+
5557
List of known features
5658
----------------------
5759

@@ -105,7 +107,7 @@ boot-mode.name.\*
105107

106108
The user-visible pretty name for a boot mode. The ID of the boot mode with the
107109
given pretty name is specified by the last dot-separated word in the feature
108-
key, while the pretty name is specified by the feature value.
110+
key, while the pretty name is specified by the feature value.
109111

110112
gui
111113
^^^
@@ -184,8 +186,10 @@ internal
184186

185187
Internal qubes (with this feature set to :py:obj:`True`) are not included in the
186188
menu, not available in GUI tools (e.g in Global Settings as a default net qube)
187-
and generally hidden from normal usage. It is not recommended to set this
188-
feature manually.
189+
and generally hidden from normal usage (including not showing as a Qrexec target
190+
for `Ask` rules. It is not recommended to set this feature manually. If this
191+
feature is set to a template, applications may consider qubes based on this
192+
template as internal also.
189193

190194
Default: not internal VM
191195

@@ -422,6 +426,81 @@ calls. Feature value could contain the rationale for the start ban.
422426
Note: `prohibit-start` for a TemplateVM does not forbid start of AppVMs based
423427
on it.
424428

429+
preload-dispvm-max
430+
^^^^^^^^^^^^^^^^^^
431+
432+
Number of disposables to preload. Upon setting, the number of running preloaded
433+
disposables will be adjusted to match the maximum configured, if there is not
434+
enough of them and there is enough available memory on the system, new ones will
435+
be created, if there are more than enough, the excess will be removed.
436+
437+
|
438+
| **Valid on**: disposable template
439+
| **Type**: `int`
440+
| **Default**: `0`
441+
442+
preload-dispvm
443+
^^^^^^^^^^^^^^
444+
445+
Space separated list of preloaded disposables originated from the disposable
446+
template. Preloaded disposables are disposables that run in the background
447+
waiting for use, specially designed for minimal waiting time to open
448+
applications in a fresh disposable.
449+
450+
Preloaded disposables have its GUI applications entries hidden and are paused to
451+
avoid user mistakes, as it is not intended to use them directly. To use them,
452+
target the disposable template to start a service in a disposable, instead of
453+
creating a new disposable, calls will be redirected to the first preloaded
454+
disposable in the list. As soon as the preloaded disposable is requested to be
455+
used, it is removed from the `preload-dispvm` list, GUI applications entries
456+
become visible, followed by a new disposable being preloaded.
457+
458+
.. warning::
459+
460+
Applications configured to autostart by the disposable template or the
461+
template itself will be interactive before the preloaded disposable can be
462+
paused.
463+
464+
|
465+
| **Managed by**: system
466+
| **Valid on**: disposable template
467+
| **Type**: `str`
468+
| **Default**: empty
469+
470+
preload-dispvm-complete
471+
^^^^^^^^^^^^^^^^^^^^^^^
472+
473+
If `True`, preloaded disposable has completed all necessary steps to be usable.
474+
475+
|
476+
| **Managed by**: system
477+
| **Valid on**: preloaded disposables
478+
| **Type**: `boolean`
479+
| **Default**: `False`
480+
481+
preload-dispvm-requested
482+
^^^^^^^^^^^^^^^^^^^^^^^^
483+
484+
If `True`, preloaded disposable has been requested for use and is running the
485+
procedures to mark it as used.
486+
487+
|
488+
| **Managed by**: system
489+
| **Valid on**: preloaded disposables
490+
| **Type**: `boolean`
491+
| **Default**: `False`
492+
493+
preload-dispvm-used
494+
^^^^^^^^^^^^^^^^^^^
495+
496+
If `True`, preloaded disposable has been used.
497+
498+
|
499+
| **Managed by**: system
500+
| **Valid on**: preloaded disposables
501+
| **Type**: `boolean`
502+
| **Default**: `False`
503+
425504
custom-persist.*
426505
^^^^^^^^^^^^^^^^
427506

0 commit comments

Comments
 (0)