0b51f8ff5d
(TOCTOU) race condition Resolved by upgrade to version 4.0.0 (jsc#SLE-16582) virt-manager-4.0.0.tar.gz - Other features and bug fixes (bsc#1027942) virt-install –os-variant/–osinfo is now a hard requirement for most cases Add ‘Enable shared memory’ UI checkbox (Lin Ma) add UI preference to default to UEFI for new VMs (Charles Arnold) Add virtiofs filesystem driver UI option Fill in all –cputune, –cpu, –shmem, –input, and –boot suboptions (Hugues Fafard) virt-* mdev improvements (Shalini Chellathurai Saroja) bhyve improvments (Roman Bogorodskiy) Revive network portgroup UI enable a TPM by default when UEFI is used (Daniel P. Berrangé) Use cpu host-passthrough by default on qemu x86 use virtio-gpu video for most modern distros Default to extra pcie root ports for q35 set discard=unmap by default for sparse disks and block devices We now require xorissofs for –location ISO We now use setuptools rather than just plain distutils - Add virtman-revert-use-of-AyatanaAppIndicator3.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=558
38 lines
1.6 KiB
Diff
38 lines
1.6 KiB
Diff
Set cache mode for target installation disk to unsafe for better
|
|
performance.
|
|
Index: virt-manager-3.3.0/virtinst/install/installer.py
|
|
===================================================================
|
|
--- virt-manager-3.3.0.orig/virtinst/install/installer.py
|
|
+++ virt-manager-3.3.0/virtinst/install/installer.py
|
|
@@ -567,16 +567,29 @@ class Installer(object):
|
|
|
|
def _build_postboot_xml(self, final_xml, meter):
|
|
initial_guest = Guest(self.conn, parsexml=final_xml)
|
|
+ # At install time set the target disk to 'unsafe' for
|
|
+ # better performance if the target is not a block device
|
|
+ saved_cache = "None"
|
|
+ if initial_guest.devices.disk:
|
|
+ target_disk = initial_guest.devices.disk[0]
|
|
+ saved_cache = target_disk.driver_cache
|
|
+ if target_disk.type != DeviceDisk.TYPE_BLOCK and target_disk.driver_io != "native":
|
|
+ target_disk.driver_cache = DeviceDisk.CACHE_MODE_UNSAFE
|
|
+
|
|
self._alter_bootconfig(initial_guest)
|
|
self._alter_install_resources(initial_guest, meter)
|
|
if self.has_cloudinit():
|
|
initial_guest.set_smbios_serial_cloudinit()
|
|
|
|
+ install_xml = initial_guest.get_xml()
|
|
+ if saved_cache != "None":
|
|
+ target_disk.driver_cache = saved_cache
|
|
+
|
|
final_guest = Guest(self.conn, parsexml=final_xml)
|
|
self._remove_install_cdrom_media(final_guest)
|
|
self._remove_unattended_install_cdrom_device(final_guest)
|
|
|
|
- return initial_guest.get_xml(), final_guest.get_xml()
|
|
+ return install_xml, final_guest.get_xml()
|
|
|
|
def _build_xml(self, guest, meter):
|
|
initial_xml = None
|