Skip to content

Commit 4d5cff2

Browse files
committed
Enable cache for qvm-device
While it doesn't enable events to have proper cache invalidation, it's also short lived program that can speed up by avoiding repeated enumeration.
1 parent 33bb0bd commit 4d5cff2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qubesadmin/tools/qvm_device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ def get_parser(device_class=None):
757757
def main(args=None, app=None):
758758
"""Main routine of :program:`qvm-block`."""
759759
app = app or qubesadmin.Qubes()
760+
app.cache_enabled = True
760761

761762
basename = os.path.basename(sys.argv[0])
762763
devclass = None

0 commit comments

Comments
 (0)