qubes: add 'default_dispvm' property - both Qubes and QubesVM

QubesOS/qubes-issues#2253
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-17 00:46:43 +02:00
parent ab6f961931
commit 1a215e47ab
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 8 additions and 0 deletions

View File

@ -583,6 +583,8 @@ class Qubes(qubes.PropertyHolder):
doc='Which VM to use as NTP proxy for updating AdminVM')
default_kernel = qubes.property('default_kernel', load_stage=3,
doc='Which kernel to use when not overriden in VM')
default_dispvm = qubes.VMProperty('default_dispvm', load_stage=3,
doc='Default DispVM base for service calls')
# TODO #1637 #892
check_updates_vm = qubes.property('check_updates_vm',

View File

@ -294,6 +294,12 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
saver=(lambda self, prop, value: value.strftime('%s')),
doc='FIXME')
default_dispvm = qubes.VMProperty('default_dispvm',
load_stage=4,
allow_none=True,
default=(lambda self: self.app.default_dispvm),
doc='Default VM to be used as Disposable VM for service calls.')
#
# static, class-wide properties
#