Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d7c355eadb 
							
						 
					 
					
						
						
							
							backup: make wait_backup_feedback/handle_streams less ugly  
						
						... 
						
						
						
						Have a generic function `handle_streams`, instead of
`wait_backup_feedback` with open coded process names and manual
iteration over them.
No functional change, besides minor logging change. 
						
					 
					
						2016-10-28 11:53:32 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6ee200236c 
							
						 
					 
					
						
						
							
							tests/backup: verify migration into LVM thin pool  
						
						
						
					 
					
						2016-10-28 11:53:31 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							673fe4423a 
							
						 
					 
					
						
						
							
							tests: handle LVM thin pool  
						
						
						
					 
					
						2016-10-28 11:53:31 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fbecd08a58 
							
						 
					 
					
						
						
							
							tests/backup: exclude some VMs during restore  
						
						
						
					 
					
						2016-10-28 11:53:31 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							3553b2e1d4 
							
						 
					 
					
						
						
							
							Make pylint happy  
						
						
						
					 
					
						2016-10-25 17:27:02 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							8edbf0e406 
							
						 
					 
					
						
						
							
							qubes: Document all the events  
						
						... 
						
						
						
						fixes  QubesOS/qubes-issues#1811  
					
						2016-10-25 17:11:38 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							5e62d3f7cb 
							
						 
					 
					
						
						
							
							qubes/tests: substitute_entry_points  
						
						... 
						
						
						
						New context manager for temporary overriding entry point groups.
fixes  QubesOS/qubes-issues#2111  
						
					 
					
						2016-10-24 15:16:39 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							4c73c1b93a 
							
						 
					 
					
						
						
							
							More green paint  
						
						
						
					 
					
						2016-10-19 16:09:58 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5babb68031 
							
						 
					 
					
						
						
							
							tests/backupcompatibility: verify if all files got restored  
						
						... 
						
						
						
						There is still no verification of disk images content, nor VM
properties... 
						
					 
					
						2016-10-19 01:54:44 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							8097da7cab 
							
						 
					 
					
						
						
							
							Paint the project green for testbench launch  
						
						
						
					 
					
						2016-10-18 19:07:20 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							c81346ba51 
							
						 
					 
					
						
						
							
							qubes/test/run: Print tracebacks of expected fails  
						
						... 
						
						
						
						fixes  QubesOS/qubes-issues#2376  
					
						2016-10-14 17:20:14 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							526f2c3751 
							
						 
					 
					
						
						
							
							Merge remote-tracking branch 'marmarek/core3-backup' into core3-devel  
						
						
						
					 
					
						2016-10-14 15:29:37 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							e06829ab2c 
							
						 
					 
					
						
						
							
							Make pylint happy  
						
						
						
					 
					
						2016-10-11 13:42:37 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							c6c0a545e6 
							
						 
					 
					
						
						
							
							Merge remote-tracking branch 'origin/pull/58/head' into core3-devel  
						
						
						
					 
					
						2016-10-11 11:37:15 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							33fecd90c1 
							
						 
					 
					
						
						
							
							qubes/backup: misc fixes  
						
						... 
						
						
						
						Fix restoring ProxyVM and NetVM from core2. Use correct VM class. 
						
					 
					
						2016-10-05 01:58:11 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							339c47480e 
							
						 
					 
					
						
						
							
							qubes/backup: include LVM volumes content in backup  
						
						... 
						
						
						
						Use just introduced tar writer to archive content of LVM volumes (or
more generally: block devices). Place them as 'private.img' and
'root.img' files in the backup - just like in old format. This require
support for replacing file name in tar header - another thing trivially
supported with tar writer. 
						
					 
					
						2016-10-05 01:55:30 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							36eb7f923f 
							
						 
					 
					
						
						
							
							qubes/tarwriter: add simple sparse-tar writer module  
						
						... 
						
						
						
						tar can't write archive with _contents_ of block device. We need this to
backup LVM-based disk images. To avoid dumping image to a file first,
create a simple tar archiver just for this purpose.
Python is not the fastest possible technology, it's 3 times slower than
equivalent written in C. But it's much easier to read, much less
error-prone, and still process 1GB image under 1s (CPU time, leaving
along actual disk reads). So, it's acceptable. 
						
					 
					
						2016-10-05 01:54:41 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							278a5340dc 
							
						 
					 
					
						
						
							
							qubes/backup: fix relative path calculation  
						
						... 
						
						
						
						os.path.relpath strip trailing '/.' from the path, but it is important
to distinguish whole-directory archive (which is tar of '.'). 
						
					 
					
						2016-10-04 21:38:59 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							72bc0506b9 
							
						 
					 
					
						
						
							
							Code documentation: fix  🎫  reference to query github  
						
						... 
						
						
						
						Previously it queried long obsolete Trac at wiki.qubes-os.org. 
						
					 
					
						2016-10-04 15:31:06 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							d7d926edaa 
							
						 
					 
					
						
						
							
							Fix manpage generation  
						
						
						
					 
					
						2016-10-04 11:32:04 +02:00 
						 
				 
			
				
					
						
							
							
								Wojtek Porczyk 
							
						 
					 
					
						
						
						
						
							
						
						
							9dc37c1ee7 
							
						 
					 
					
						
						
							
							Add possibility to override libvirt config  
						
						... 
						
						
						
						This is the equivalent of "custom config" from R3.x.
fixes  QubesOS/qubes-issues#1798  
						
					 
					
						2016-10-04 11:31:31 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ab69fdd7f4 
							
						 
					 
					
						
						
							
							qubes/backup: reduce code duplication  
						
						... 
						
						
						
						Move inner tar process cleanup to a separate function 
						
					 
					
						2016-10-03 13:43:36 +02:00 
						 
				 
			
				
					
						
							
							
								WetwareLabs 
							
						 
					 
					
						
						
						
						
							
						
						
							cedd822735 
							
						 
					 
					
						
						
							
							Fix sending monitor layout info when xrandr has one output disconnected  
						
						... 
						
						
						
						Signed-off-by: WetwareLabs <marcus@wetwa.re> 
						
					 
					
						2016-09-29 14:13:38 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c4632d6be8 
							
						 
					 
					
						
						
							
							tests/backup: test idea  
						
						
						
					 
					
						2016-09-29 02:08:30 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f2d79b9379 
							
						 
					 
					
						
						
							
							tests/backup: use round volume size  
						
						... 
						
						
						
						When handling LVM volumes, size must be multiply of 4MB. 
						
					 
					
						2016-09-29 02:08:30 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e938aa61ab 
							
						 
					 
					
						
						
							
							tests: cleanup test LVM volumes  
						
						... 
						
						
						
						Handle the case when vm.remove_from_disk does not cleanup all the
things. 
						
					 
					
						2016-09-29 02:08:30 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							20590bff57 
							
						 
					 
					
						
						
							
							backup: adjust LVM volume size when restoring its content.  
						
						... 
						
						
						
						Old backup metadata (old qubes.xml) does not contain info about
individual volume sizes. So, extract it from tar header (using verbose
output during restore) and resize volume accordingly.
Without this, restoring volumes larger than default would be impossible. 
						
					 
					
						2016-09-29 02:08:29 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0a35bd06aa 
							
						 
					 
					
						
						
							
							backup: support relocating files to different storage pool  
						
						... 
						
						
						
						To ease all this, rework restore workflow: first create QubesVM objects,
and all their files (as for fresh VM), then override them with data
from backup - possibly redirecting some files to new location. This
allows generic code to create LVM volumes and then only restore its
content. 
						
					 
					
						2016-09-29 02:08:29 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4d45dd5549 
							
						 
					 
					
						
						
							
							tests/backup: check backup+restore of LVM based VM  
						
						... 
						
						
						
						The test fails for now... 
						
					 
					
						2016-09-29 01:59:55 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							226695534b 
							
						 
					 
					
						
						
							
							tests/backup: handle non-default pool in BackupTestsMixin  
						
						
						
					 
					
						2016-09-29 01:59:54 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ae42308f5f 
							
						 
					 
					
						
						
							
							storage: improve handling volume export  
						
						... 
						
						
						
						1. Add a helper function on vm.storage. This is equivalent of:
    vm.storage.get_pool(vm.volumes[name]).export(vm.volumes[name])
2. Make sure the path returned by `export` on LVM volume is accessible. 
						
					 
					
						2016-09-29 01:59:54 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9395e8fc33 
							
						 
					 
					
						
						
							
							storage: set only 'default' pool when creating VM on custom one  
						
						... 
						
						
						
						Do not replace 'linux-kernel' pool for example. 
						
					 
					
						2016-09-29 01:59:54 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e1d9de1cc2 
							
						 
					 
					
						
						
							
							tests/backup: minor fix for python3  
						
						
						
					 
					
						2016-09-29 01:59:54 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6d5959b31d 
							
						 
					 
					
						
						
							
							tests/backup: use proper logging instead of print  
						
						
						
					 
					
						2016-09-29 01:59:53 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							016c3d8e88 
							
						 
					 
					
						
						
							
							tests/backup: check restored disk images  
						
						
						
					 
					
						2016-09-29 01:59:53 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8d9b6f19fd 
							
						 
					 
					
						
						
							
							Add catch-all '*' to event handlers  
						
						
						
					 
					
						2016-09-28 21:28:43 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ef56620b6e 
							
						 
					 
					
						
						
							
							Make pylint happy ♥ qubes/core2migration.py  
						
						
						
					 
					
						2016-09-28 21:28:33 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e499b529ad 
							
						 
					 
					
						
						
							
							tests: move BackupTestMixin to qubes.tests.int.backup  
						
						... 
						
						
						
						This is much more logical place, don't pollute main qubes.tests module. 
						
					 
					
						2016-09-25 16:31:31 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							533804ebdc 
							
						 
					 
					
						
						
							
							Make pylint happy ♥  
						
						
						
					 
					
						2016-09-21 16:39:06 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							96a4bb650b 
							
						 
					 
					
						
						
							
							qubes/tools: qvm-backup and qvm-backup-restore tools  
						
						... 
						
						
						
						Fixes  QubesOS/qubes-issues#1213 
Fixes  QubesOS/qubes-issues#1214  
					
						2016-09-21 16:02:50 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7af3f4b19a 
							
						 
					 
					
						
						
							
							Make pylint happy  
						
						
						
					 
					
						2016-09-19 20:36:32 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d4f29bb8b7 
							
						 
					 
					
						
						
							
							qubes: add qvm-firewall tool  
						
						... 
						
						
						
						Fixes  QubesOS/qubes-issues#1815  
					
						2016-09-19 20:36:32 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f8dd7e6cb7 
							
						 
					 
					
						
						
							
							qubes/firewall: make xml parameter to Rule optional  
						
						... 
						
						
						
						QubesOS/qubes-issues#1815  
					
						2016-09-19 20:36:32 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							cdc97730cd 
							
						 
					 
					
						
						
							
							qubes/firewall: apply only IPv4 rules  
						
						... 
						
						
						
						Currently dom0 do not assign IPv6 addresses for VMs, so there is no
sense in IPv6 firewall yet.
QubesOS/qubes-issues#1815  
						
					 
					
						2016-09-19 20:36:32 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							202042bd8d 
							
						 
					 
					
						
						
							
							tests: update for new firewall API  
						
						... 
						
						
						
						QubesOS/qubes-issues#1815  
					
						2016-09-19 20:36:31 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d5b3d971ee 
							
						 
					 
					
						
						
							
							qubes/ext/r3compat: update firewall handling for new API  
						
						... 
						
						
						
						QubesOS/qubes-issues#1815  
					
						2016-09-19 20:36:31 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5123f466eb 
							
						 
					 
					
						
						
							
							qubes/firewall: allow listing only IPv4/IPv6 rules  
						
						... 
						
						
						
						This will allow setting only IPv4-related rules to IPv4 address, and the
same for IPv6
QubesOS/qubes-issues#1815  
						
					 
					
						2016-09-19 20:36:31 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e01f7b97d9 
							
						 
					 
					
						
						
							
							qubes/vm: plug in new firewall code, create QubesDB entries  
						
						... 
						
						
						
						QubesOS/qubes-issues#1815  
					
						2016-09-19 20:36:31 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1da75a676f 
							
						 
					 
					
						
						
							
							qubes/firewall: new firewall interface  
						
						... 
						
						
						
						First part - handling firewall.xml and rules formatting.
Specification on https://qubes-os.org/doc/vm-interface/ 
TODO (for dom0):
 - plug into QubesVM object
 - expose rules in QubesDB (including reloading)
 - drop old functions (vm.get_firewall_conf etc)
QubesOS/qubes-issues#1815  
						
					 
					
						2016-09-19 20:36:30 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1af1784c69 
							
						 
					 
					
						
						
							
							Merge remote-tracking branch 'qubesos/pr/54' into core3-devel  
						
						... 
						
						
						
						* qubesos/pr/54:
  Fix file storage resize
  Fix lvm reset_cache size cache 
						
					 
					
						2016-09-19 20:36:20 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0ea7afd245 
							
						 
					 
					
						
						
							
							tests: adjust LVM tests for non-default VG name  
						
						
						
					 
					
						2016-09-19 20:35:25 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8b408a7a70 
							
						 
					 
					
						
						
							
							qubes/vm: minor formating  
						
						
						
					 
					
						2016-09-13 02:15:25 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8ca08c7790 
							
						 
					 
					
						
						
							
							qubes/ext/pci: fix handling dom0 before starting first VM  
						
						... 
						
						
						
						Before starting fist VM, backend/pci xenstore directory does not exists.
Do not crash on it
QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-13 02:15:25 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2956f62bbc 
							
						 
					 
					
						
						
							
							qmemman: fix meminfo handling  
						
						... 
						
						
						
						This fixes "a2d9b15 qmemman: support simple VM meminfo format" 
						
					 
					
						2016-09-13 02:15:25 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9ae3dc2ebf 
							
						 
					 
					
						
						
							
							tests/qvm-device: tolerate different 'column' tool versions  
						
						... 
						
						
						
						Newer one do output column even if empty, but older one (in Travis-CI
env) do not. Ignore trailing spaces to work with both version. 
						
					 
					
						2016-09-13 02:01:22 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							141128e768 
							
						 
					 
					
						
						
							
							qubes/tools: fix 'column' input formating  
						
						... 
						
						
						
						Include '\n' at the last line too. Otherwise the tool (depending on
version) will complain about truncated line ('line too long'). 
						
					 
					
						2016-09-13 01:22:24 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bb78eb1ce6 
							
						 
					 
					
						
						
							
							qubes: fix resetting already default property  
						
						... 
						
						
						
						`getattr(instance, self.__name__)` always succeed if attribute has
default value. This results in deleting attribute even when it isn't
set. 
						
					 
					
						2016-09-08 04:17:58 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a2d9b15413 
							
						 
					 
					
						
						
							
							qmemman: support simple VM meminfo format  
						
						... 
						
						
						
						Instead of excerpt from /proc/meminfo, use just one integer. This make
qmemman handling much easier and ease implementation for non-Linux OSes
(where /proc/meminfo doesn't exist).
For now keep also support for old format.
Fixes  QubesOS/qubes-issues#1312  
						
					 
					
						2016-09-08 04:17:48 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							aa0674e8bb 
							
						 
					 
					
						
						
							
							qubes/vm: make VM QubesDB interface as much compatible as possible  
						
						... 
						
						
						
						All the base keys can be kept easily the same, so do it.
QubesOS/qubes-issues#1812  
						
					 
					
						2016-09-08 04:17:48 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d5a41e838f 
							
						 
					 
					
						
						
							
							Revert "qubes/vm/qubesvm: remove prefixes from qubesdb keys"  
						
						... 
						
						
						
						There is no point in changing *public API* for just a change without any
better reason. It turned out most of those settings will be the same in
Qubes 4.0, so keep names the same.
This reverts commit 2d6ad3b60cQubesOS/qubes-issues#1812  
						
					 
					
						2016-09-08 04:17:48 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f6bc61997a 
							
						 
					 
					
						
						
							
							qubes/vm: fix handling dynamic netvm change  
						
						... 
						
						
						
						Correctly detach network before attaching new one. 
						
					 
					
						2016-09-08 04:17:48 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c534b68665 
							
						 
					 
					
						
						
							
							qubes/vm: start VM daemons as normal user  
						
						... 
						
						
						
						This is migration of core2 commits:
commit d0ba43f253QubesOS/qubes-issues#1768 
commit 89d002a0312265fd3d52Fixes  QubesOS/qubes-issues#1745  
						
					 
					
						2016-09-08 04:17:47 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							19d9edc291 
							
						 
					 
					
						
						
							
							qubes/ext/gui: adjust guid parameters when running on KDE5  
						
						... 
						
						
						
						Commit from core2:
    commit 94d52a13e7QubesOS/qubes-issues#1784  
						
					 
					
						2016-09-08 04:17:47 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d63d93b0ab 
							
						 
					 
					
						
						
							
							Fix file storage resize  
						
						
						
					 
					
						2016-09-05 16:56:57 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d72448615d 
							
						 
					 
					
						
						
							
							Fix lvm reset_cache size cache  
						
						
						
					 
					
						2016-09-04 23:25:39 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2285789b49 
							
						 
					 
					
						
						
							
							Merge remote-tracking branch 'qubesos/pr/54' into core3-devel  
						
						... 
						
						
						
						* qubesos/pr/54:
  Volume add size property wrapper 
						
					 
					
						2016-09-04 22:38:06 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b863152f73 
							
						 
					 
					
						
						
							
							Volume add size property wrapper  
						
						
						
					 
					
						2016-09-04 21:55:56 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							16db68b053 
							
						 
					 
					
						
						
							
							Merge branch 'core3-devices' into core3-devel  
						
						... 
						
						
						
						* core3-devices:
  Fix core2migration and tests for new devices API
  tests: more qubes.devices tests
  qubes/ext/pci: implement pci-no-strict-reset/BDF feature
  qubes/tools: allow calling qvm-device as qvm-devclass (like qvm-pci)
  qubes: make pylint happy
  qubes/tools: add qvm-device tool (and tests)
  tests: load qubes.tests.tools.qvm_ls
  tests: PCI devices tests
  tests: add context manager to catch stdout
  qubes/ext/pci: move PCI devices handling to an extension
  qubes/devices: use more detailed exceptions than just KeyError
  qubes/devices: allow non-persistent attach
  qubes/storage: misc fixes for VM-exposed block devices handling
  qubes: new devices API
Fixes  QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-04 21:32:01 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ae72e294cd 
							
						 
					 
					
						
						
							
							Merge remote-tracking branch 'qubesos/pr/52' into core3-devel  
						
						... 
						
						
						
						* qubesos/pr/52:
  qvm-block extend Fix help message
  Fix a few typo bugs in qubes.storage.lvm
  qvm-block extends volumes to NEW_SIZE
  Make pylint happy ♥ qubes.storage.lvm
  Fix ThinVolume _size access
  qvm-block extend use qubes.utils.parse_size
  Make pylint happy ♥ qubes_lvm
  Fix lvm size/usage
  Add ThinPool.resize()
  Document qubes-block extend command in the manpage
  Fix file storage resize
  qvm-block add extend sub command
  qvm-block refactor attach/detach sub_parser init 
						
					 
					
						2016-09-04 21:21:43 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dc3dd1f5e9 
							
						 
					 
					
						
						
							
							Merge remote-tracking branch 'qubesos/pr/53' into core3-devel  
						
						... 
						
						
						
						* qubesos/pr/53:
  Fix qvm-block lists internal volumes on non default pools 
						
					 
					
						2016-09-04 21:11:27 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6cb624daf3 
							
						 
					 
					
						
						
							
							Merge remote-tracking branch 'qubesos/pr/51' into core3-devel  
						
						... 
						
						
						
						* qubesos/pr/51:
  Make pylint happy ♥ qubes.storage.lvm
  Fix lvm AppVM startup from lvm
  qubes.storage.lvm.qubes_lvm use debug not info
  Fix qvm-create lvm based AppVM
  qvm-block & qvm-pool add better Exception handling
  Remove unexpected property
  qvm-start --debug don't catch exceptions 
						
					 
					
						2016-09-04 21:02:19 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5f586a99d4 
							
						 
					 
					
						
						
							
							qvm-block extend Fix help message  
						
						
						
					 
					
						2016-09-04 21:01:16 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5cf15ef3da 
							
						 
					 
					
						
						
							
							tests: improve DispVM error message  
						
						
						
					 
					
						2016-09-04 21:00:02 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c15dc0a392 
							
						 
					 
					
						
						
							
							tools/qvm_block: add missing column header  
						
						... 
						
						
						
						QubesOS/qubes-issues#2256  
					
						2016-09-04 20:59:37 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c2617663e5 
							
						 
					 
					
						
						
							
							qubes/vm/standalonevm: volatile image should be writable  
						
						... 
						
						
						
						QubesOS/qubes-issues#2256  
					
						2016-09-04 20:58:11 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0af5fdd267 
							
						 
					 
					
						
						
							
							qubes/storage/file: clone file images as normal user  
						
						... 
						
						
						
						No need to be root here.
QubesOS/qubes-issues#2256  
						
					 
					
						2016-09-04 20:56:02 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							11191ea694 
							
						 
					 
					
						
						
							
							Fix core2migration and tests for new devices API  
						
						... 
						
						
						
						QubesOS/qubes-issues#2257  
					
						2016-09-04 20:55:07 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e536bcca30 
							
						 
					 
					
						
						
							
							tests: more qubes.devices tests  
						
						... 
						
						
						
						QubesOS/qubes-issues#2257  
					
						2016-09-03 20:41:06 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							93e88e0c22 
							
						 
					 
					
						
						
							
							qubes/ext/pci: implement pci-no-strict-reset/BDF feature  
						
						... 
						
						
						
						Instead of old per-VM flag 'pci_strictreset', now implement this as
per-device flag using features. To not fail on particular device
assignment set 'pci-no-strict-reset/DEVICE-BDF' to True. For
example 'pci-no-strict-reset/00:1b.0'.
QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-03 20:41:06 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4d327fbc95 
							
						 
					 
					
						
						
							
							qubes/tools: allow calling qvm-device as qvm-devclass (like qvm-pci)  
						
						... 
						
						
						
						Tool can be symlinked to `qvm-class` for particular device class (for
example `qvm-pci`) - then device class can be omitted.
QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-03 20:41:05 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5c7f589330 
							
						 
					 
					
						
						
							
							qubes: make pylint happy  
						
						
						
					 
					
						2016-09-03 20:41:05 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e8d011b83f 
							
						 
					 
					
						
						
							
							qubes/tools: add qvm-device tool (and tests)  
						
						... 
						
						
						
						Add a tool to manipulate various devices.
QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-03 20:41:05 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6aae6863b0 
							
						 
					 
					
						
						
							
							tests: load qubes.tests.tools.qvm_ls  
						
						... 
						
						
						
						The test module was implemented, but not loaded 
						
					 
					
						2016-09-03 20:41:04 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fbb086aed5 
							
						 
					 
					
						
						
							
							tests: PCI devices tests  
						
						... 
						
						
						
						Just basic things for now.
QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-03 20:41:04 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4bfb523974 
							
						 
					 
					
						
						
							
							tests: add context manager to catch stdout  
						
						... 
						
						
						
						This will avoid code duplication in tools tests. 
						
					 
					
						2016-09-03 20:41:03 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							aa67a4512e 
							
						 
					 
					
						
						
							
							qubes/ext/pci: move PCI devices handling to an extension  
						
						... 
						
						
						
						Implement required event handlers according to documentation in
qubes.devices.
A modification of qubes.devices.DeviceInfo is needed to allow dynamic,
read-only properties.
QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-03 20:41:03 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e1de82ea53 
							
						 
					 
					
						
						
							
							qubes/devices: use more detailed exceptions than just KeyError  
						
						... 
						
						
						
						Especially inherit from QubesException, so tools will treat this as
properly handled error.
QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-03 20:41:03 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e5d6c4e078 
							
						 
					 
					
						
						
							
							qubes/devices: allow non-persistent attach  
						
						... 
						
						
						
						QubesOS/qubes-issues#2257  
					
						2016-09-03 20:41:02 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							70d3f58024 
							
						 
					 
					
						
						
							
							qubes/storage: misc fixes for VM-exposed block devices handling  
						
						... 
						
						
						
						Add 'backenddomain' element when source (not target) domain is not dom0.
Fix XML elemenet name. Actually set volume.domain when listing
VM-exposed devices.
QubesOS/qubes-issues#2256  
						
					 
					
						2016-09-03 20:41:02 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d7a3c0d319 
							
						 
					 
					
						
						
							
							qubes: new devices API  
						
						... 
						
						
						
						Allow device plugin to list attached and available devices. Enforce
at API level every device being exposed by some domain.
This commit only changes devices API, but not update existing users
(pci) yet.
QubesOS/qubes-issues#2257  
						
					 
					
						2016-09-03 20:40:39 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e4433f9a65 
							
						 
					 
					
						
						
							
							Make pylint happy ♥ qubes.storage.lvm  
						
						
						
					 
					
						2016-09-02 20:16:03 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							46eb4a72dd 
							
						 
					 
					
						
						
							
							Fix a few typo bugs in qubes.storage.lvm  
						
						
						
					 
					
						2016-09-02 19:57:35 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dcfc47fefe 
							
						 
					 
					
						
						
							
							qvm-block extends volumes to NEW_SIZE  
						
						
						
					 
					
						2016-09-02 19:57:13 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							be48d48e56 
							
						 
					 
					
						
						
							
							Make pylint happy ♥ qubes.storage.lvm  
						
						
						
					 
					
						2016-09-02 19:46:11 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8974b2cbc0 
							
						 
					 
					
						
						
							
							Fix ThinVolume _size access  
						
						
						
					 
					
						2016-09-02 19:45:31 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1cf701ff60 
							
						 
					 
					
						
						
							
							qvm-block extend use qubes.utils.parse_size  
						
						
						
					 
					
						2016-09-02 19:21:04 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							818ed20248 
							
						 
					 
					
						
						
							
							Make pylint happy ♥ qubes_lvm  
						
						
						
					 
					
						2016-09-02 19:17:00 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bbcf16410c 
							
						 
					 
					
						
						
							
							Fix qvm-block lists internal volumes on non default pools  
						
						
						
					 
					
						2016-08-29 17:39:49 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1ca3c00797 
							
						 
					 
					
						
						
							
							Fix lvm size/usage  
						
						... 
						
						
						
						- Uses a size_cache, because it's faster than doing a call for each volume 
						
					 
					
						2016-08-29 00:15:47 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0561dfce60 
							
						 
					 
					
						
						
							
							Add ThinPool.resize()  
						
						
						
					 
					
						2016-08-29 00:13:50 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e7caa14a85 
							
						 
					 
					
						
						
							
							Fix file storage resize  
						
						
						
					 
					
						2016-08-29 00:09:55 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4733e836ce 
							
						 
					 
					
						
						
							
							qvm-block add extend sub command  
						
						
						
					 
					
						2016-08-29 00:09:55 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4c65a9c69a 
							
						 
					 
					
						
						
							
							qvm-block refactor attach/detach sub_parser init  
						
						
						
					 
					
						2016-08-29 00:09:53 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							355ea0c2a8 
							
						 
					 
					
						
						
							
							Fix lvm AppVM startup from lvm  
						
						
						
					 
					
						2016-08-29 00:05:19 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							24bbc971b0 
							
						 
					 
					
						
						
							
							qubes.storage.lvm.qubes_lvm use debug not info  
						
						
						
					 
					
						2016-08-29 00:05:19 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e0bf4bdb8e 
							
						 
					 
					
						
						
							
							Fix qvm-create lvm based AppVM  
						
						
						
					 
					
						2016-08-29 00:05:18 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c0f1a6b4e8 
							
						 
					 
					
						
						
							
							qvm-block & qvm-pool add better Exception handling  
						
						
						
					 
					
						2016-08-29 00:05:18 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b712d0f6f3 
							
						 
					 
					
						
						
							
							Remove unexpected property  
						
						
						
					 
					
						2016-08-29 00:05:18 +02:00 
						 
				 
			
				
					
						
							
							
								Bahtiar `kalkin-` Gadimov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8037182dcd 
							
						 
					 
					
						
						
							
							qvm-start --debug don't catch exceptions  
						
						
						
					 
					
						2016-08-29 00:05:17 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3e30dc17cb 
							
						 
					 
					
						
						
							
							qubes/vm: remove special case for 'meminfo-writer' feature  
						
						... 
						
						
						
						It should be either in a plugin, or handled entirely from inside of VM.
But surely not in main QubesVM class.
Fixes  QubesOS/qubes-issues#2101  
						
					 
					
						2016-08-18 11:59:45 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0293c1c7ef 
							
						 
					 
					
						
						
							
							qubes/vm: move misc XML tags loading to separate method  
						
						
						
					 
					
						2016-08-18 11:57:11 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a5e575618c 
							
						 
					 
					
						
						
							
							qubes-lvm: drop sudo from lvm calls  
						
						... 
						
						
						
						The script is already running as root
QubesOS/qubes-issues#2256  
						
					 
					
						2016-08-18 11:52:26 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6bdc82b3a6 
							
						 
					 
					
						
						
							
							qubes-lvm: do not import 'qubes' module  
						
						... 
						
						
						
						This script should run as fast as possible, so avoid importing large
module. In fact the only used thing was argparse wrapper, so switch to
the standard one and drop aliases.
QubesOS/qubes-issues#2256  
						
					 
					
						2016-08-18 11:52:26 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							de5d420331 
							
						 
					 
					
						
						
							
							qubes-lvm: drop unused lvm_image_changed function  
						
						... 
						
						
						
						It tries to parse (untrusted) volume content, so remove it to not use it
accidentally.
QubesOS/qubes-issues#2256  
						
					 
					
						2016-08-18 11:43:01 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							06f46243ec 
							
						 
					 
					
						
						
							
							qubes/storage: add resize to Pool API  
						
						... 
						
						
						
						It was already implemented by FilePool and used by Storage object, but
wasn't included in base class. 
						
					 
					
						2016-08-18 11:42:00 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							42d6fddcd3 
							
						 
					 
					
						
						
							
							qubes/storage: support on-line resize  
						
						... 
						
						
						
						Call `qubes.ResizeDisk` qrexec service after resizing volume, to adjust
filesystem size there. 
						
					 
					
						2016-08-18 11:40:38 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6e383c703d 
							
						 
					 
					
						
						
							
							qubes/storage: allow passing just volume name to storage.resize  
						
						... 
						
						
						
						It makes much more sense to call:
    vm.storage.resize('private', 10000000000)
instead of:
    vm.storage.resize(vm.volumes['private'], 10000000000) 
						
					 
					
						2016-08-17 22:42:15 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d8286b6dab 
							
						 
					 
					
						
						
							
							tests: port vm_qrexec_gui to core3 API  
						
						
						
					 
					
						2016-08-17 22:41:57 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e19df4c5b6 
							
						 
					 
					
						
						
							
							tests: port dispvm tests to core3 API  
						
						... 
						
						
						
						Some tests do not apply, as there is no savefile and attributes
propagation is much simpler. Dropped tests:
 - test_000_firewall_propagation
 - test_001_firewall_propagation
 - test_000_prepare_dvm
QubesOS/qubes-issues#2253  
						
					 
					
						2016-08-17 04:15:35 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							46791e05f4 
							
						 
					 
					
						
						
							
							qubes/dispvm: do not clone 'template' property from base VM  
						
						... 
						
						
						
						template should point at the base VM itself. 
						
					 
					
						2016-08-17 02:14:19 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							53b2b30c0a 
							
						 
					 
					
						
						
							
							qubes: fix some error messages  
						
						
						
					 
					
						2016-08-17 02:13:59 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3a2a87839f 
							
						 
					 
					
						
						
							
							qubes/vm: fix TemplateVM.commit_changes  
						
						... 
						
						
						
						Storage method was renamed to just `commit`, as it applies not only to
templates now. 
						
					 
					
						2016-08-17 01:47:09 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d9e23d6535 
							
						 
					 
					
						
						
							
							qubes/core2migration: make pylint happy  
						
						... 
						
						
						
						It doesn't see the class that is just being defined. But since it is in
lambda, that's ok. 
						
					 
					
						2016-08-17 01:46:13 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6b546ca1e6 
							
						 
					 
					
						
						
							
							tests/backupcompatibility: no errors are expected on restoring R1 backup  
						
						... 
						
						
						
						Fallback to default kernel is enabled by default. 
						
					 
					
						2016-08-17 01:31:33 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							690727fef8 
							
						 
					 
					
						
						
							
							tests/backup: remove VMs in reversed order  
						
						... 
						
						
						
						One place had missing `reversed()`. 
						
					 
					
						2016-08-17 01:30:34 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bbbe045b62 
							
						 
					 
					
						
						
							
							qubes/backup: better handle restoring kernel=None case  
						
						... 
						
						
						
						It makes sense for HVM domains, so allow such configuration. 
						
					 
					
						2016-08-17 01:18:11 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5d8ecd60de 
							
						 
					 
					
						
						
							
							qubes: minor fixes in handling defaults  
						
						... 
						
						
						
						- fix assigning 'template' property - do not do it if VM already have it
set
- cap default maxmem at 4000, as we clamp it to 10*memory anyway (and
  default memory is 400) 
						
					 
					
						2016-08-17 00:50:38 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dd93650ea7 
							
						 
					 
					
						
						
							
							tests/backup: fix handling different VM types  
						
						... 
						
						
						
						Not all VM types have 'template' property. 
						
					 
					
						2016-08-17 00:49:53 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							460f0849a7 
							
						 
					 
					
						
						
							
							qubes/features: handle recursive templates in check_with_template  
						
						... 
						
						
						
						This is the case for DispVMs: DispVM -> AppVM -> TemplateVM 
						
					 
					
						2016-08-17 00:47:32 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1a215e47ab 
							
						 
					 
					
						
						
							
							qubes: add 'default_dispvm' property - both Qubes and QubesVM  
						
						... 
						
						
						
						QubesOS/qubes-issues#2253  
					
						2016-08-17 00:46:43 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ab6f961931 
							
						 
					 
					
						
						
							
							qubes/dispvm: misc fixes, make it actually working  
						
						... 
						
						
						
						- DispVM is no longer a special case for storage
- Add missing 'rw=True' for volatile volume
- Handle storage initialization (copy&paste from AppVM)
- Clone properties from DispVM template
QubesOS/qubes-issues#2253  
						
					 
					
						2016-08-17 00:42:17 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2f977ff4f5 
							
						 
					 
					
						
						
							
							backup: open backup collection in offline mode  
						
						... 
						
						
						
						Otherwise it may try to manipulate live libvirt objects with the same
names (and probably different UUIDs, which would fail). 
						
					 
					
						2016-08-16 00:00:14 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							eb637147fb 
							
						 
					 
					
						
						
							
							core2migration: adjust for recent storage API changes  
						
						... 
						
						
						
						QubesVM.storage.vmdir uses QubesVM.dir_path, so can't be used directly
as default value for dir_path. Use `super()`. 
						
					 
					
						2016-08-15 23:47:28 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							660c726315 
							
						 
					 
					
						
						
							
							tests: add qvm-check  
						
						
						
					 
					
						2016-08-09 05:14:13 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							da6faf83bf 
							
						 
					 
					
						
						
							
							qubes/tools: allow unpause multiple domains at once  
						
						... 
						
						
						
						There is no reason to not allow it. 
						
					 
					
						2016-08-09 05:14:13 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a1e2888e96 
							
						 
					 
					
						
						
							
							qubes/tools: fix messages in qvm-check  
						
						
						
					 
					
						2016-08-09 05:14:13 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d4e534bc05 
							
						 
					 
					
						
						
							
							qubes/vm: fix pause handling  
						
						... 
						
						
						
						1. There is no such thing as libvirt_domain.pause().
2. libvirt_domain.state() returns [state, reason] 
						
					 
					
						2016-08-09 05:14:12 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d2393f91e8 
							
						 
					 
					
						
						
							
							qubes/tools: adjust qvm-check for core3 API  
						
						
						
					 
					
						2016-08-09 05:14:12 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4d5a314e77 
							
						 
					 
					
						
						
							
							qubes/tools: add hidden --offline-mode options  
						
						... 
						
						
						
						It is useful on some cases to prevent talking to hypervisor.
Warning - it may have sense only when action do not access any runtime
VM status. For example running the domain will fail, but changing its
properties should work. 
						
					 
					
						2016-08-09 05:14:12 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							96d032919a 
							
						 
					 
					
						
						
							
							tests: minor fix to revert changes tests, mark as expected failure  
						
						... 
						
						
						
						While the test should be ok now, the functionality itself doesn't work (at
least on file volumes). 
						
					 
					
						2016-08-09 05:14:12 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ac68ffe39f 
							
						 
					 
					
						
						
							
							tests: correctly compare DeviceManager objects  
						
						... 
						
						
						
						Usefull for assertEqual(vm1.devices, vm2.devices) - clone tests, backup
tests etc. 
						
					 
					
						2016-08-09 05:14:11 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f17f80ee9d 
							
						 
					 
					
						
						
							
							qubes/tools: add qvm-template-commit  
						
						... 
						
						
						
						This tool is called from /etc/xen/scripts/block-origin script at VM
shutdown. 
						
					 
					
						2016-08-09 05:14:11 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6490767278 
							
						 
					 
					
						
						
							
							qubes/storage: update vm.storage.commit  
						
						... 
						
						
						
						Better name it 'commit', as it isn't only for template. And also fix to
call `pool.commit` 
						
					 
					
						2016-08-09 05:14:11 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ec7a84ea9d 
							
						 
					 
					
						
						
							
							minor: formatting  
						
						... 
						
						
						
						QubesOS/qubes-issues# 
						
					 
					
						2016-08-09 05:14:10 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							af7b4087f0 
							
						 
					 
					
						
						
							
							tests: port few more tests to core3 API  
						
						
						
					 
					
						2016-08-09 05:14:10 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							faa341ffa2 
							
						 
					 
					
						
						
							
							tests/backup: adjust for core3 API properties to verify after restore  
						
						
						
					 
					
						2016-08-09 05:14:10 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7d1cbd6934 
							
						 
					 
					
						
						
							
							tests: handle per-template tests in BackupTestsMixin  
						
						
						
					 
					
						2016-08-09 05:14:09 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fba6eac07f 
							
						 
					 
					
						
						
							
							qubes/tests: do not undefine libvirt domain twice  
						
						... 
						
						
						
						Do not access vm.libvirt_domain after it being already removed - this
will redefine it again in libvirt, just to undefine it in a moment.
On the other hand, few lines below there is fallback libvirt cleanup, in
case of proper one not working. 
						
					 
					
						2016-08-09 05:14:09 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6d45b97357 
							
						 
					 
					
						
						
							
							tests: workaround 'int' name being shadowed by module name  
						
						... 
						
						
						
						qubes.tests.int shadows 'int' type in qubes.tests module.
QubesOS/qubes-issues#2241  
						
					 
					
						2016-08-09 05:14:09 +02:00 
						 
				 
			
				
					
						
							
							
								Marek Marczykowski-Górecki 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3f6c96ee39 
							
						 
					 
					
						
						
							
							qubes/vm: fix handling autostart set/reset  
						
						... 
						
						
						
						1. Service symlink must have ".service" extension
2. Disable service on property reset to default 
						
					 
					
						2016-08-09 05:14:09 +02:00