Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 00/10] replace QXL with standard VGA
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 This series advances in small steps, as follows: - introduce the Standard_VGA data constructor (in addition to QXL, Cirrus, ...); - handle Standard_VGA (as a non-default option through the requested guest caps) in the Linux and Windows guest conversions, and various output modules; - flip the default display choice from QXL to Standard_VGA if the requested guest caps don't express a display preference; - remove the QXL data constructor; - clean up the test suite. I'm posting the series as an RFC for two reasons: - No actual guests have been converted for testing. - I need further info (help) on the OVF, JSON and OpenStack output modes because they are too tightly coupled with QXL, and/or I don't know how to express "standard VGA" in them. (Watch out for the "Notes" sections in the relevant patches.) However, the series should be complete enough to discuss the general approach (and to convert some actual guests using the "QEMU cmdline" and "libvirt XML" output formats). (Side comment: today is a public holiday in Hungary, like in many other countries. The fact that I'm posting this today does not imply that I expect any feedback today (or soon after today). For personal reasons, my work schedule has been very difficult to manage, and today has been a rare day where I could actually sit down for a few hours *uninterrupted*, and work on this. So the point of working on a holiday was not to "be faster than others", but to make *any* progress worth mentioning.) Thanks, Laszlo Laszlo Ersek (10): lib/types: introduce "Standard_VGA" constructor for "guestcaps_video_type" convert_linux: use "modesetting" X.org driver for Standard_VGA convert/windows_virtio: restrict the warning with virtio-win.iso absent convert/windows_virtio: handle Standard_VGA in the requested guest caps output: handle Standard_VGA in the libvirt XML and QEMU cmdline formats convert_linux: flip default target display to Standard_VGA convert/windows_virtio: flip default target display to Standard_VGA lib/types: remove "QXL" constructor for "guestcaps_video_type" tests: remove the fake Windows guest drivers for the QXL device tests: remove the remaining QXL references (for completeness) convert/convert_linux.ml | 7 ++- convert/windows_virtio.ml | 48 +++++++------------- lib/types.ml | 4 +- lib/types.mli | 2 +- output/create_json.ml | 2 +- output/create_libvirt_xml.ml | 2 +- output/openstack_image_properties.ml | 2 +- output/output.ml | 5 +- test-data/fake-virtio-win/Makefile.am | 16 ------- test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.cat | 1 - test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.inf | 2 - test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.sys | 1 - test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxldd.dll | 1 - test-data/fake-virtio-win/drivers/amd64/Win7/qxl.cat | 1 - test-data/fake-virtio-win/drivers/amd64/Win7/qxl.inf | 2 - test-data/fake-virtio-win/drivers/amd64/Win7/qxl.sys | 1 - test-data/fake-virtio-win/drivers/amd64/Win7/qxldd.dll | 1 - test-data/fake-virtio-win/drivers/i386/Win7/qxl.cat | 1 - test-data/fake-virtio-win/drivers/i386/Win7/qxl.inf | 2 - test-data/fake-virtio-win/drivers/i386/Win7/qxl.sys | 1 - test-data/fake-virtio-win/drivers/i386/Win7/qxldd.dll | 1 - test-data/fake-virtio-win/drivers/i386/WinXP/qxl.cat | 1 - test-data/fake-virtio-win/drivers/i386/WinXP/qxl.inf | 2 - test-data/fake-virtio-win/drivers/i386/WinXP/qxl.sys | 1 - test-data/fake-virtio-win/drivers/i386/WinXP/qxldd.dll | 1 - test-data/phony-guests/guests.xml.in | 2 +- tests/test-v2v-i-ova.xml | 2 +- tests/test-v2v-in-place.sh | 2 +- tests/test-v2v-print-source.expected | 2 +- tests/test-v2v-print-source.xml.in | 2 +- tests/test-v2v-windows-conversion.sh | 2 +- v2v/v2v_unit_tests.ml | 16 ------- 32 files changed, 38 insertions(+), 98 deletions(-) delete mode 100644 test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.inf delete mode 100644 test-data/fake-virtio-win/drivers/amd64/Win7/qxl.inf delete mode 100644 test-data/fake-virtio-win/drivers/i386/Win7/qxl.inf delete mode 100644 test-data/fake-virtio-win/drivers/i386/WinXP/qxl.inf delete mode 100644 test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.cat delete mode 100644 test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.sys delete mode 100644 test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxldd.dll delete mode 100644 test-data/fake-virtio-win/drivers/amd64/Win7/qxl.cat delete mode 100644 test-data/fake-virtio-win/drivers/amd64/Win7/qxl.sys delete mode 100644 test-data/fake-virtio-win/drivers/amd64/Win7/qxldd.dll delete mode 100644 test-data/fake-virtio-win/drivers/i386/Win7/qxl.cat delete mode 100644 test-data/fake-virtio-win/drivers/i386/Win7/qxl.sys delete mode 100644 test-data/fake-virtio-win/drivers/i386/Win7/qxldd.dll delete mode 100644 test-data/fake-virtio-win/drivers/i386/WinXP/qxl.cat delete mode 100644 test-data/fake-virtio-win/drivers/i386/WinXP/qxl.sys delete mode 100644 test-data/fake-virtio-win/drivers/i386/WinXP/qxldd.dll base-commit: 17e7cbffb9e5dad526dc8f63dc771aa15b306888 -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 01/10] lib/types: introduce "Standard_VGA" constructor for "guestcaps_video_type"
In order to replace QXL with Standard_VGA in small steps, bisectably, first just introduce the Standard_VGA constructor. Extend the string_of_video function at once ("stdvga"). The value returned by this function is only used for debug logging (indirectly, via the string_of_guestcaps and string_of_requested_guestcaps functions). The virt-v2v build flags turn "non-exhaustive pattern matching" warnings into errors. Match the new "Standard_VGA" constructor with a constant false assertion wherever an expression of type "guestcaps_video_type" is matched, in order to make this patch bisectable. These assertions will be gradually replaced with actual logic in the rest of this patch set. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- convert/convert_linux.ml | 6 +++++- convert/windows_virtio.ml | 2 ++ lib/types.ml | 3 ++- lib/types.mli | 2 +- output/create_json.ml | 1 + output/create_libvirt_xml.ml | 1 + output/openstack_image_properties.ml | 1 + output/output.ml | 6 +++++- 8 files changed, 18 insertions(+), 4 deletions(-) diff --git a/convert/convert_linux.ml b/convert/convert_linux.ml index 057cf9dff7da..85d8c5ae0e92 100644 --- a/convert/convert_linux.ml +++ b/convert/convert_linux.ml @@ -829,7 +829,11 @@ let convert (g : G.guestfs) source inspect keep_serial_console rcaps _ true and configure_display_driver video - let video_driver = match video with QXL -> "qxl" | Cirrus -> "cirrus" in + let video_driver + match video with + | Standard_VGA -> assert false + | QXL -> "qxl" + | Cirrus -> "cirrus" in let updated = ref false in diff --git a/convert/windows_virtio.ml b/convert/windows_virtio.ml index f843dae2d77f..1851fe2f3292 100644 --- a/convert/windows_virtio.ml +++ b/convert/windows_virtio.ml @@ -51,6 +51,7 @@ let rec install_drivers ((g, _) as reg) inspect rcaps if not (copy_drivers g inspect driverdir) then ( match rcaps with + | { rcaps_video = Some Standard_VGA } -> assert false | { rcaps_block_bus = Some Virtio_blk | Some Virtio_SCSI } | { rcaps_net_bus = Some Virtio_net } | { rcaps_video = Some QXL } -> @@ -159,6 +160,7 @@ let rec install_drivers ((g, _) as reg) inspect rcaps g#exists (driverdir // "qxl.inf") || g#exists (driverdir // "qxldod.inf") in match rcaps.rcaps_video, has_qxl with + | Some Standard_VGA, _ -> assert false | Some QXL, false -> error (f_"there is no QXL driver for this version of Windows (%d.%d %s). virt-v2v looks for this driver in %s") inspect.i_major_version inspect.i_minor_version diff --git a/lib/types.ml b/lib/types.ml index 72d10d1ec774..0156d55954e9 100644 --- a/lib/types.ml +++ b/lib/types.ml @@ -429,7 +429,7 @@ and requested_guestcaps = { } and guestcaps_block_type = Virtio_blk | Virtio_SCSI | IDE and guestcaps_net_type = Virtio_net | E1000 | RTL8139 -and guestcaps_video_type = QXL | Cirrus +and guestcaps_video_type = Standard_VGA | QXL | Cirrus and guestcaps_machine = I440FX | Q35 | Virt let string_of_block_type = function @@ -441,6 +441,7 @@ let string_of_net_type = function | E1000 -> "e1000" | RTL8139 -> "rtl8139" let string_of_video = function + | Standard_VGA -> "stdvga" | QXL -> "qxl" | Cirrus -> "cirrus" let string_of_machine = function diff --git a/lib/types.mli b/lib/types.mli index 0bae445d8393..19790f375035 100644 --- a/lib/types.mli +++ b/lib/types.mli @@ -293,7 +293,7 @@ and requested_guestcaps = { and guestcaps_block_type = Virtio_blk | Virtio_SCSI | IDE and guestcaps_net_type = Virtio_net | E1000 | RTL8139 -and guestcaps_video_type = QXL | Cirrus +and guestcaps_video_type = Standard_VGA | QXL | Cirrus and guestcaps_machine = I440FX | Q35 | Virt val string_of_guestcaps : guestcaps -> string diff --git a/output/create_json.ml b/output/create_json.ml index 5fa2805a2dcd..aae4d09c59bd 100644 --- a/output/create_json.ml +++ b/output/create_json.ml @@ -204,6 +204,7 @@ let create_json_metadata source inspect | RTL8139 -> "rtl8139" in let video match guestcaps.gcaps_video with + | Standard_VGA -> assert false | QXL -> "qxl" | Cirrus -> "cirrus" in let machine diff --git a/output/create_libvirt_xml.ml b/output/create_libvirt_xml.ml index 64f1b0888cd6..ec1cd455ef13 100644 --- a/output/create_libvirt_xml.ml +++ b/output/create_libvirt_xml.ml @@ -421,6 +421,7 @@ let create_libvirt_xml ?pool source inspect let video let video_model match guestcaps.gcaps_video with + | Standard_VGA -> assert false | QXL -> e "model" [ "type", "qxl"; "ram", "65536" ] [] | Cirrus -> e "model" [ "type", "cirrus"; "vram", "9216" ] [] in append_attr ("heads", "1") video_model; diff --git a/output/openstack_image_properties.ml b/output/openstack_image_properties.ml index 66f5399212c8..592da3e40e44 100644 --- a/output/openstack_image_properties.ml +++ b/output/openstack_image_properties.ml @@ -44,6 +44,7 @@ let create source inspect { target_buses; guestcaps; target_firmware } | RTL8139 -> "rtl8139"); "hw_video_model", (match guestcaps.gcaps_video with + | Standard_VGA -> assert false | QXL -> "qxl" | Cirrus -> "cirrus"); "hw_machine_type", diff --git a/output/output.ml b/output/output.ml index 9c2d8853bfef..93dbd4a62865 100644 --- a/output/output.ml +++ b/output/output.ml @@ -1539,7 +1539,11 @@ and qemu_finalize dir source inspect target_meta "addr=127.0.0.1"] ); arg "-vga" - (match guestcaps.gcaps_video with Cirrus -> "cirrus" | QXL -> "qxl") + (match guestcaps.gcaps_video with + | Standard_VGA -> assert false + | Cirrus -> "cirrus" + | QXL -> "qxl" + ) ); (* Add a sound card. *) -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 02/10] convert_linux: use "modesetting" X.org driver for Standard_VGA
In a Fedora 34 guest using standard VGA video, and having no explicit X.org config file, the X.org server logs the following (excerpt):> Markers: (--) probed, (**) from config file, (==) default setting, > (++) from command line, (!!) notice, (II) informational, > (WW) warning, (EE) error, (NI) not implemented, (??) unknown. > (==) Matched modesetting as autoconfigured driver 0 > (==) Matched fbdev as autoconfigured driver 1 > (==) Matched vesa as autoconfigured driver 2 > (II) LoadModule: "modesetting" > (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so > (II) LoadModule: "fbdev" > (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so > (II) LoadModule: "vesa" > (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so > (II) Loading sub module "fbdevhw" > (II) LoadModule: "fbdevhw" > (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so > (II) UnloadModule: "fbdev" > (II) Unloading fbdev > (II) UnloadSubModule: "fbdevhw" > (II) Unloading fbdevhw > (II) UnloadModule: "vesa" > (II) Unloading vesaThis tells us that the standard VGA device model is driven by the "modesetting" driver. Update the "configure_display_driver" function (for Linux guests) accordingly. Cc: Gerd Hoffmann <kraxel at redhat.com> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- convert/convert_linux.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert/convert_linux.ml b/convert/convert_linux.ml index 85d8c5ae0e92..15f68fd4f8db 100644 --- a/convert/convert_linux.ml +++ b/convert/convert_linux.ml @@ -831,7 +831,7 @@ let convert (g : G.guestfs) source inspect keep_serial_console rcaps _ and configure_display_driver video let video_driver match video with - | Standard_VGA -> assert false + | Standard_VGA -> "modesetting" | QXL -> "qxl" | Cirrus -> "cirrus" in -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 03/10] convert/windows_virtio: restrict the warning with virtio-win.iso absent
Consider the following two situations: (a) For the Windows version being converted, the virtio-win.iso image does not offer any guest drivers (IOW, the Windows version as a whole is unsupported by virtio-win.iso). (b) For the Windows version being converted, the virtio-win.iso image offers *some* drivers (but not for all possible paravirtualized devices). There are three relevant device categories: block, network, display. If the conversion specifically requests paravirt for a given device category, and that particular paravirt driver is unavailable -- be that due to reason (a) or (b) --, the conversion fails, with an error message. This is expected. If the conversion does not express any preference for paravirt in a given device category, and that particular paravirt driver is unavailable -- be that due to reason (a) or (b) --, a warning is emitted, and the conversion continues, using an emulated device in that category. This is expected as well. However, if the conversion explicitly requests an emulated device model for a given device category -- that is, if the conversion *forbids* paravirtualization for a given device category --, and that particular paravirt driver is unavailable anyway, then the behavior between (a) and (b) differs. Under (a), a warning is emitted (incorrectly!), while under (b), no warning is emitted. Under condition (a), only issue the warning if the conversion permits paravirtualization in at least one device category. Fixes: 9ed9d048f2b296cd0ebbd638ac3a2c5c8b47fded Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- convert/windows_virtio.ml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/convert/windows_virtio.ml b/convert/windows_virtio.ml index 1851fe2f3292..11b34a03f876 100644 --- a/convert/windows_virtio.ml +++ b/convert/windows_virtio.ml @@ -59,12 +59,14 @@ let rec install_drivers ((g, _) as reg) inspect rcaps inspect.i_major_version inspect.i_minor_version inspect.i_arch inspect.i_product_variant virtio_win - | { rcaps_block_bus = (Some IDE | None); + | { rcaps_block_bus = ((Some IDE | None) as block_type); rcaps_net_bus = ((Some E1000 | Some RTL8139 | None) as net_type); - rcaps_video = (Some Cirrus | None) } -> - warning (f_"there are no virtio drivers available for this version of Windows (%d.%d %s %s). virt-v2v looks for drivers in %s\n\nThe guest will be configured to use slower emulated devices.") - inspect.i_major_version inspect.i_minor_version inspect.i_arch - inspect.i_product_variant virtio_win; + rcaps_video = ((Some Cirrus | None) as video_type) } -> + if block_type = None || net_type = None || video_type = None then + warning (f_"there are no virtio drivers available for this version of Windows (%d.%d %s %s). virt-v2v looks for drivers in %s\n\nThe guest will be configured to use slower emulated devices.") + inspect.i_major_version inspect.i_minor_version inspect.i_arch + inspect.i_product_variant virtio_win + else (); let net_type match net_type with | Some model -> model -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 04/10] convert/windows_virtio: handle Standard_VGA in the requested guest caps
Permit the conversion to request standard VGA display in the requested guest capabilities structure. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- convert/windows_virtio.ml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/convert/windows_virtio.ml b/convert/windows_virtio.ml index 11b34a03f876..ee887fa8f715 100644 --- a/convert/windows_virtio.ml +++ b/convert/windows_virtio.ml @@ -51,7 +51,6 @@ let rec install_drivers ((g, _) as reg) inspect rcaps if not (copy_drivers g inspect driverdir) then ( match rcaps with - | { rcaps_video = Some Standard_VGA } -> assert false | { rcaps_block_bus = Some Virtio_blk | Some Virtio_SCSI } | { rcaps_net_bus = Some Virtio_net } | { rcaps_video = Some QXL } -> @@ -61,7 +60,7 @@ let rec install_drivers ((g, _) as reg) inspect rcaps | { rcaps_block_bus = ((Some IDE | None) as block_type); rcaps_net_bus = ((Some E1000 | Some RTL8139 | None) as net_type); - rcaps_video = ((Some Cirrus | None) as video_type) } -> + rcaps_video = ((Some Standard_VGA | Some Cirrus | None) as video_type) } -> if block_type = None || net_type = None || video_type = None then warning (f_"there are no virtio drivers available for this version of Windows (%d.%d %s %s). virt-v2v looks for drivers in %s\n\nThe guest will be configured to use slower emulated devices.") inspect.i_major_version inspect.i_minor_version inspect.i_arch @@ -70,8 +69,12 @@ let rec install_drivers ((g, _) as reg) inspect rcaps let net_type match net_type with | Some model -> model - | None -> RTL8139 in - (IDE, net_type, Cirrus, false, false, false, false) + | None -> RTL8139 + and video_type + match video_type with + | Some model -> model + | None -> Cirrus in + (IDE, net_type, video_type, false, false, false, false) ) else ( (* Can we install the block driver? *) @@ -162,7 +165,6 @@ let rec install_drivers ((g, _) as reg) inspect rcaps g#exists (driverdir // "qxl.inf") || g#exists (driverdir // "qxldod.inf") in match rcaps.rcaps_video, has_qxl with - | Some Standard_VGA, _ -> assert false | Some QXL, false -> error (f_"there is no QXL driver for this version of Windows (%d.%d %s). virt-v2v looks for this driver in %s") inspect.i_major_version inspect.i_minor_version @@ -177,8 +179,8 @@ let rec install_drivers ((g, _) as reg) inspect rcaps | (Some QXL | None), true -> QXL - | Some Cirrus, _ -> - Cirrus in + | Some (Cirrus | Standard_VGA as video_type), _ -> + video_type in (* Did we install the miscellaneous drivers? *) let virtio_rng_supported = g#exists (driverdir // "viorng.inf") in -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 05/10] output: handle Standard_VGA in the libvirt XML and QEMU cmdline formats
Libvirt domain XML fragment (with the default video RAM size made explicit): <video> <model type='vga' vram='16384' heads='1'/> </video> Example QEMU cmdline option: -vga std References: - https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/#VGA - https://libvirt.org/formatdomain.html#video-devices Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- Notes: This is where further patches should be added for the OVF, JSON and OpenStack output modes. output/create_libvirt_xml.ml | 2 +- output/output.ml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/output/create_libvirt_xml.ml b/output/create_libvirt_xml.ml index ec1cd455ef13..623755de7212 100644 --- a/output/create_libvirt_xml.ml +++ b/output/create_libvirt_xml.ml @@ -421,7 +421,7 @@ let create_libvirt_xml ?pool source inspect let video let video_model match guestcaps.gcaps_video with - | Standard_VGA -> assert false + | Standard_VGA -> e "model" [ "type", "vga"; "vram", "16384" ] [] | QXL -> e "model" [ "type", "qxl"; "ram", "65536" ] [] | Cirrus -> e "model" [ "type", "cirrus"; "vram", "9216" ] [] in append_attr ("heads", "1") video_model; diff --git a/output/output.ml b/output/output.ml index 93dbd4a62865..b27d53059712 100644 --- a/output/output.ml +++ b/output/output.ml @@ -1540,7 +1540,7 @@ and qemu_finalize dir source inspect target_meta ); arg "-vga" (match guestcaps.gcaps_video with - | Standard_VGA -> assert false + | Standard_VGA -> "std" | Cirrus -> "cirrus" | QXL -> "qxl" ) -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 06/10] convert_linux: flip default target display to Standard_VGA
Policy change: if the requested guest caps do not express a preference for any particular video type, pick Standard_VGA. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- convert/convert_linux.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert/convert_linux.ml b/convert/convert_linux.ml index 15f68fd4f8db..ae0bd39d1b2d 100644 --- a/convert/convert_linux.ml +++ b/convert/convert_linux.ml @@ -113,7 +113,7 @@ let convert (g : G.guestfs) source inspect keep_serial_console rcaps _ let video match rcaps.rcaps_video with - | None -> QXL + | None -> Standard_VGA | Some video -> video in let block_type -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 07/10] convert/windows_virtio: flip default target display to Standard_VGA
Policy change: if the requested guest caps do not express a preference for any particular video type, pick Standard_VGA. In detail, this means the following: - If the subject Windows version is unsupported by virtio-win.iso (either entirely, or regarding just the QXL driver), then do not warn the user that we pick "something else than QXL". That's because we don't perceive Standard_VGA inferior to QXL. - Pick Cirrus too only if specifically requested. - Map the following patterns of the (rcaps.rcaps_video, has_qxl) tuple: - (None, false) - (None, true) to Standard_VGA. All six other patterns preserve their previous mappings. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- Notes: This patch breaks the following test cases: - test-v2v-o-glance.sh - test-v2v-o-json.sh - test-v2v-o-openstack.sh That's because we still have the initial "assert false" expressions for Standard_VGA in the OpenStack and JSON (... and OVF) producers, from patch 'lib/types: introduce "Standard_VGA" constructor for "guestcaps_video_type'. convert/windows_virtio.ml | 13 +++++-------- tests/test-v2v-i-ova.xml | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/convert/windows_virtio.ml b/convert/windows_virtio.ml index ee887fa8f715..1a47a1500076 100644 --- a/convert/windows_virtio.ml +++ b/convert/windows_virtio.ml @@ -61,7 +61,7 @@ let rec install_drivers ((g, _) as reg) inspect rcaps | { rcaps_block_bus = ((Some IDE | None) as block_type); rcaps_net_bus = ((Some E1000 | Some RTL8139 | None) as net_type); rcaps_video = ((Some Standard_VGA | Some Cirrus | None) as video_type) } -> - if block_type = None || net_type = None || video_type = None then + if block_type = None || net_type = None then warning (f_"there are no virtio drivers available for this version of Windows (%d.%d %s %s). virt-v2v looks for drivers in %s\n\nThe guest will be configured to use slower emulated devices.") inspect.i_major_version inspect.i_minor_version inspect.i_arch inspect.i_product_variant virtio_win @@ -73,7 +73,7 @@ let rec install_drivers ((g, _) as reg) inspect rcaps and video_type match video_type with | Some model -> model - | None -> Cirrus in + | None -> Standard_VGA in (IDE, net_type, video_type, false, false, false, false) ) else ( @@ -170,13 +170,10 @@ let rec install_drivers ((g, _) as reg) inspect rcaps inspect.i_major_version inspect.i_minor_version inspect.i_arch virtio_win - | None, false -> - warning (f_"there is no QXL driver for this version of Windows (%d.%d %s). virt-v2v looks for this driver in %s\n\nThe guest will be configured to use a basic VGA display driver.") - inspect.i_major_version inspect.i_minor_version - inspect.i_arch virtio_win; - Cirrus + | None, _ -> + Standard_VGA - | (Some QXL | None), true -> + | Some QXL, true -> QXL | Some (Cirrus | Standard_VGA as video_type), _ -> diff --git a/tests/test-v2v-i-ova.xml b/tests/test-v2v-i-ova.xml index 30f52f557d9f..d7383905fdc0 100644 --- a/tests/test-v2v-i-ova.xml +++ b/tests/test-v2v-i-ova.xml @@ -39,7 +39,7 @@ <model type='virtio'/> </interface> <video> - <model type='qxl' ram='65536' heads='1'/> + <model type='vga' vram='16384' heads='1'/> </video> <graphics type='vnc' autoport='yes' port='-1'/> <rng model='virtio'> -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 08/10] lib/types: remove "QXL" constructor for "guestcaps_video_type"
Removing the "QXL" constructor mostly needs the obvious fixup in the various pattern matches. Worth highlighting is "convert/windows_virtio.ml": the somewhat quirky QXL branches disappear, and the resultant display selections match the Linux guest case (i.e., default: stdvga, or else stdvga/cirrus per requested guest caps). Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- convert/convert_linux.ml | 1 - convert/windows_virtio.ml | 29 ++++---------------- lib/types.ml | 3 +- lib/types.mli | 2 +- output/create_json.ml | 1 - output/create_libvirt_xml.ml | 1 - output/openstack_image_properties.ml | 1 - output/output.ml | 1 - 8 files changed, 8 insertions(+), 31 deletions(-) diff --git a/convert/convert_linux.ml b/convert/convert_linux.ml index ae0bd39d1b2d..20fe68424413 100644 --- a/convert/convert_linux.ml +++ b/convert/convert_linux.ml @@ -832,7 +832,6 @@ let convert (g : G.guestfs) source inspect keep_serial_console rcaps _ let video_driver match video with | Standard_VGA -> "modesetting" - | QXL -> "qxl" | Cirrus -> "cirrus" in let updated = ref false in diff --git a/convert/windows_virtio.ml b/convert/windows_virtio.ml index 1a47a1500076..e69deab2fccc 100644 --- a/convert/windows_virtio.ml +++ b/convert/windows_virtio.ml @@ -52,15 +52,13 @@ let rec install_drivers ((g, _) as reg) inspect rcaps if not (copy_drivers g inspect driverdir) then ( match rcaps with | { rcaps_block_bus = Some Virtio_blk | Some Virtio_SCSI } - | { rcaps_net_bus = Some Virtio_net } - | { rcaps_video = Some QXL } -> + | { rcaps_net_bus = Some Virtio_net } -> error (f_"there are no virtio drivers available for this version of Windows (%d.%d %s %s). virt-v2v looks for drivers in %s") inspect.i_major_version inspect.i_minor_version inspect.i_arch inspect.i_product_variant virtio_win | { rcaps_block_bus = ((Some IDE | None) as block_type); - rcaps_net_bus = ((Some E1000 | Some RTL8139 | None) as net_type); - rcaps_video = ((Some Standard_VGA | Some Cirrus | None) as video_type) } -> + rcaps_net_bus = ((Some E1000 | Some RTL8139 | None) as net_type) } -> if block_type = None || net_type = None then warning (f_"there are no virtio drivers available for this version of Windows (%d.%d %s %s). virt-v2v looks for drivers in %s\n\nThe guest will be configured to use slower emulated devices.") inspect.i_major_version inspect.i_minor_version inspect.i_arch @@ -71,7 +69,7 @@ let rec install_drivers ((g, _) as reg) inspect rcaps | Some model -> model | None -> RTL8139 and video_type - match video_type with + match rcaps.rcaps_video with | Some model -> model | None -> Standard_VGA in (IDE, net_type, video_type, false, false, false, false) @@ -159,25 +157,10 @@ let rec install_drivers ((g, _) as reg) inspect rcaps | Some net_type, _ -> net_type in - (* Can we install the QXL driver? *) let video : guestcaps_video_type - let has_qxl - g#exists (driverdir // "qxl.inf") || - g#exists (driverdir // "qxldod.inf") in - match rcaps.rcaps_video, has_qxl with - | Some QXL, false -> - error (f_"there is no QXL driver for this version of Windows (%d.%d %s). virt-v2v looks for this driver in %s") - inspect.i_major_version inspect.i_minor_version - inspect.i_arch virtio_win - - | None, _ -> - Standard_VGA - - | Some QXL, true -> - QXL - - | Some (Cirrus | Standard_VGA as video_type), _ -> - video_type in + match rcaps.rcaps_video with + | None -> Standard_VGA + | Some video_type -> video_type in (* Did we install the miscellaneous drivers? *) let virtio_rng_supported = g#exists (driverdir // "viorng.inf") in diff --git a/lib/types.ml b/lib/types.ml index 0156d55954e9..347f3e6c2672 100644 --- a/lib/types.ml +++ b/lib/types.ml @@ -429,7 +429,7 @@ and requested_guestcaps = { } and guestcaps_block_type = Virtio_blk | Virtio_SCSI | IDE and guestcaps_net_type = Virtio_net | E1000 | RTL8139 -and guestcaps_video_type = Standard_VGA | QXL | Cirrus +and guestcaps_video_type = Standard_VGA | Cirrus and guestcaps_machine = I440FX | Q35 | Virt let string_of_block_type = function @@ -442,7 +442,6 @@ let string_of_net_type = function | RTL8139 -> "rtl8139" let string_of_video = function | Standard_VGA -> "stdvga" - | QXL -> "qxl" | Cirrus -> "cirrus" let string_of_machine = function | I440FX -> "i440fx" diff --git a/lib/types.mli b/lib/types.mli index 19790f375035..43ec0f971a3c 100644 --- a/lib/types.mli +++ b/lib/types.mli @@ -293,7 +293,7 @@ and requested_guestcaps = { and guestcaps_block_type = Virtio_blk | Virtio_SCSI | IDE and guestcaps_net_type = Virtio_net | E1000 | RTL8139 -and guestcaps_video_type = Standard_VGA | QXL | Cirrus +and guestcaps_video_type = Standard_VGA | Cirrus and guestcaps_machine = I440FX | Q35 | Virt val string_of_guestcaps : guestcaps -> string diff --git a/output/create_json.ml b/output/create_json.ml index aae4d09c59bd..ef866143d6d5 100644 --- a/output/create_json.ml +++ b/output/create_json.ml @@ -205,7 +205,6 @@ let create_json_metadata source inspect let video match guestcaps.gcaps_video with | Standard_VGA -> assert false - | QXL -> "qxl" | Cirrus -> "cirrus" in let machine match guestcaps.gcaps_machine with diff --git a/output/create_libvirt_xml.ml b/output/create_libvirt_xml.ml index 623755de7212..9cf872861110 100644 --- a/output/create_libvirt_xml.ml +++ b/output/create_libvirt_xml.ml @@ -422,7 +422,6 @@ let create_libvirt_xml ?pool source inspect let video_model match guestcaps.gcaps_video with | Standard_VGA -> e "model" [ "type", "vga"; "vram", "16384" ] [] - | QXL -> e "model" [ "type", "qxl"; "ram", "65536" ] [] | Cirrus -> e "model" [ "type", "cirrus"; "vram", "9216" ] [] in append_attr ("heads", "1") video_model; e "video" [] [ video_model ] in diff --git a/output/openstack_image_properties.ml b/output/openstack_image_properties.ml index 592da3e40e44..cbf2e9533178 100644 --- a/output/openstack_image_properties.ml +++ b/output/openstack_image_properties.ml @@ -45,7 +45,6 @@ let create source inspect { target_buses; guestcaps; target_firmware } "hw_video_model", (match guestcaps.gcaps_video with | Standard_VGA -> assert false - | QXL -> "qxl" | Cirrus -> "cirrus"); "hw_machine_type", (match guestcaps.gcaps_machine with diff --git a/output/output.ml b/output/output.ml index b27d53059712..4218354f8330 100644 --- a/output/output.ml +++ b/output/output.ml @@ -1542,7 +1542,6 @@ and qemu_finalize dir source inspect target_meta (match guestcaps.gcaps_video with | Standard_VGA -> "std" | Cirrus -> "cirrus" - | QXL -> "qxl" ) ); -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 09/10] tests: remove the fake Windows guest drivers for the QXL device
The QXL drivers no longer matter when converting Windows guests; remove the fake images and their references from the test suite. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- test-data/fake-virtio-win/Makefile.am | 16 ---------------- test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.inf | 2 -- test-data/fake-virtio-win/drivers/amd64/Win7/qxl.inf | 2 -- test-data/fake-virtio-win/drivers/i386/Win7/qxl.inf | 2 -- test-data/fake-virtio-win/drivers/i386/WinXP/qxl.inf | 2 -- test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.cat | 1 - test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.sys | 1 - test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxldd.dll | 1 - test-data/fake-virtio-win/drivers/amd64/Win7/qxl.cat | 1 - test-data/fake-virtio-win/drivers/amd64/Win7/qxl.sys | 1 - test-data/fake-virtio-win/drivers/amd64/Win7/qxldd.dll | 1 - test-data/fake-virtio-win/drivers/i386/Win7/qxl.cat | 1 - test-data/fake-virtio-win/drivers/i386/Win7/qxl.sys | 1 - test-data/fake-virtio-win/drivers/i386/Win7/qxldd.dll | 1 - test-data/fake-virtio-win/drivers/i386/WinXP/qxl.cat | 1 - test-data/fake-virtio-win/drivers/i386/WinXP/qxl.sys | 1 - test-data/fake-virtio-win/drivers/i386/WinXP/qxldd.dll | 1 - tests/test-v2v-in-place.sh | 2 +- tests/test-v2v-windows-conversion.sh | 2 +- v2v/v2v_unit_tests.ml | 16 ---------------- 20 files changed, 2 insertions(+), 54 deletions(-) diff --git a/test-data/fake-virtio-win/Makefile.am b/test-data/fake-virtio-win/Makefile.am index 55b91a95a5e5..60c2d8245db9 100644 --- a/test-data/fake-virtio-win/Makefile.am +++ b/test-data/fake-virtio-win/Makefile.am @@ -38,10 +38,6 @@ drivers = \ drivers/amd64/Win2008R2/netkvm.cat \ drivers/amd64/Win2008R2/netkvm.inf \ drivers/amd64/Win2008R2/netkvm.sys \ - drivers/amd64/Win2008R2/qxl.cat \ - drivers/amd64/Win2008R2/qxldd.dll \ - drivers/amd64/Win2008R2/qxl.inf \ - drivers/amd64/Win2008R2/qxl.sys \ drivers/amd64/Win2008R2/vioscsi.cat \ drivers/amd64/Win2008R2/vioscsi.inf \ drivers/amd64/Win2008R2/vioscsi.sys \ @@ -75,10 +71,6 @@ drivers = \ drivers/amd64/Win7/netkvm.cat \ drivers/amd64/Win7/netkvm.inf \ drivers/amd64/Win7/netkvm.sys \ - drivers/amd64/Win7/qxl.cat \ - drivers/amd64/Win7/qxldd.dll \ - drivers/amd64/Win7/qxl.inf \ - drivers/amd64/Win7/qxl.sys \ drivers/amd64/Win7/vioscsi.cat \ drivers/amd64/Win7/vioscsi.inf \ drivers/amd64/Win7/vioscsi.sys \ @@ -121,10 +113,6 @@ drivers = \ drivers/i386/Win7/netkvm.cat \ drivers/i386/Win7/netkvm.inf \ drivers/i386/Win7/netkvm.sys \ - drivers/i386/Win7/qxl.cat \ - drivers/i386/Win7/qxldd.dll \ - drivers/i386/Win7/qxl.inf \ - drivers/i386/Win7/qxl.sys \ drivers/i386/Win7/vioscsi.cat \ drivers/i386/Win7/vioscsi.inf \ drivers/i386/Win7/vioscsi.sys \ @@ -152,10 +140,6 @@ drivers = \ drivers/i386/WinXP/netkvm.cat \ drivers/i386/WinXP/netkvm.inf \ drivers/i386/WinXP/netkvm.sys \ - drivers/i386/WinXP/qxl.cat \ - drivers/i386/WinXP/qxldd.dll \ - drivers/i386/WinXP/qxl.inf \ - drivers/i386/WinXP/qxl.sys \ drivers/i386/WinXP/viostor.cat \ drivers/i386/WinXP/viostor.inf \ drivers/i386/WinXP/viostor.sys diff --git a/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.inf b/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.inf deleted file mode 100644 index 67e3fab0f3a7..000000000000 --- a/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.inf +++ /dev/null @@ -1,2 +0,0 @@ -[Version] -DriverVer = 10/29/2013,6.1.0.10020 diff --git a/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.inf b/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.inf deleted file mode 100644 index 3310167e395f..000000000000 --- a/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.inf +++ /dev/null @@ -1,2 +0,0 @@ -[Version] -DriverVer = 07/17/2013,6.1.0.10018 diff --git a/test-data/fake-virtio-win/drivers/i386/Win7/qxl.inf b/test-data/fake-virtio-win/drivers/i386/Win7/qxl.inf deleted file mode 100644 index 3310167e395f..000000000000 --- a/test-data/fake-virtio-win/drivers/i386/Win7/qxl.inf +++ /dev/null @@ -1,2 +0,0 @@ -[Version] -DriverVer = 07/17/2013,6.1.0.10018 diff --git a/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.inf b/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.inf deleted file mode 100644 index d1fe96b24e79..000000000000 --- a/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.inf +++ /dev/null @@ -1,2 +0,0 @@ -[Version] -DriverVer = 07/17/2013,5.1.0.10018 diff --git a/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.cat b/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.cat deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.cat +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.sys b/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.sys deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxl.sys +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxldd.dll b/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxldd.dll deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/amd64/Win2008R2/qxldd.dll +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.cat b/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.cat deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.cat +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.sys b/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.sys deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/amd64/Win7/qxl.sys +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/amd64/Win7/qxldd.dll b/test-data/fake-virtio-win/drivers/amd64/Win7/qxldd.dll deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/amd64/Win7/qxldd.dll +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/i386/Win7/qxl.cat b/test-data/fake-virtio-win/drivers/i386/Win7/qxl.cat deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/i386/Win7/qxl.cat +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/i386/Win7/qxl.sys b/test-data/fake-virtio-win/drivers/i386/Win7/qxl.sys deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/i386/Win7/qxl.sys +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/i386/Win7/qxldd.dll b/test-data/fake-virtio-win/drivers/i386/Win7/qxldd.dll deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/i386/Win7/qxldd.dll +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.cat b/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.cat deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.cat +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.sys b/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.sys deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/i386/WinXP/qxl.sys +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/test-data/fake-virtio-win/drivers/i386/WinXP/qxldd.dll b/test-data/fake-virtio-win/drivers/i386/WinXP/qxldd.dll deleted file mode 100644 index acbc962012bc..000000000000 --- a/test-data/fake-virtio-win/drivers/i386/WinXP/qxldd.dll +++ /dev/null @@ -1 +0,0 @@ -fake diff --git a/tests/test-v2v-in-place.sh b/tests/test-v2v-in-place.sh index 9da8fa63a99b..c5fee2f9f591 100755 --- a/tests/test-v2v-in-place.sh +++ b/tests/test-v2v-in-place.sh @@ -95,7 +95,7 @@ mktest "is-file \"$firstboot_dir/firstboot.bat\"" true mktest "is-dir \"$firstboot_dir/scripts\"" true virtio_dir="/Windows/Drivers/VirtIO" mktest "is-dir \"$virtio_dir\"" true -for drv in netkvm qxl vioscsi viostor; do +for drv in netkvm vioscsi viostor; do for sfx in cat inf sys; do mktest "is-file \"$virtio_dir/$drv.$sfx\"" true done diff --git a/tests/test-v2v-windows-conversion.sh b/tests/test-v2v-windows-conversion.sh index aeab9a48b507..a4cf191d74b4 100755 --- a/tests/test-v2v-windows-conversion.sh +++ b/tests/test-v2v-windows-conversion.sh @@ -82,7 +82,7 @@ mktest "is-file \"$firstboot_dir/firstboot.bat\"" true mktest "is-dir \"$firstboot_dir/scripts\"" true virtio_dir="/Windows/Drivers/VirtIO" mktest "is-dir \"$virtio_dir\"" true -for drv in netkvm qxl vioscsi viostor; do +for drv in netkvm vioscsi viostor; do for sfx in cat inf sys; do mktest "is-file \"$virtio_dir/$drv.$sfx\"" true done diff --git a/v2v/v2v_unit_tests.ml b/v2v/v2v_unit_tests.ml index 584c5bb7b395..889f7998cf3b 100644 --- a/v2v/v2v_unit_tests.ml +++ b/v2v/v2v_unit_tests.ml @@ -603,15 +603,11 @@ let test_virtio_iso_path_matches_guest_os ctx "drivers/i386/Win2008/vioscsi.inf", Some win2k8_32; "drivers/i386/Win7/viostor.inf", Some win7_32; "drivers/i386/Win7/viostor.sys", Some win7_32; - "drivers/i386/Win7/qxldd.dll", Some win7_32; - "drivers/i386/Win7/qxl.sys", Some win7_32; "drivers/i386/Win7/vioscsi.cat", Some win7_32; "drivers/i386/Win7/netkvm.inf", Some win7_32; "drivers/i386/Win7/netkvm.sys", Some win7_32; "drivers/i386/Win7/viostor.cat", Some win7_32; - "drivers/i386/Win7/qxl.inf", Some win7_32; "drivers/i386/Win7/vioscsi.sys", Some win7_32; - "drivers/i386/Win7/qxl.cat", Some win7_32; "drivers/i386/Win7/netkvm.cat", Some win7_32; "drivers/i386/Win7/vioscsi.inf", Some win7_32; "drivers/i386/Win2003/viostor.inf", Some win2k3_32; @@ -631,13 +627,9 @@ let test_virtio_iso_path_matches_guest_os ctx "drivers/i386/Win8/vioscsi.inf", Some win8_32; "drivers/i386/WinXP/viostor.inf", Some winxp_32; "drivers/i386/WinXP/viostor.sys", Some winxp_32; - "drivers/i386/WinXP/qxldd.dll", Some winxp_32; - "drivers/i386/WinXP/qxl.sys", Some winxp_32; "drivers/i386/WinXP/netkvm.inf", Some winxp_32; "drivers/i386/WinXP/netkvm.sys", Some winxp_32; "drivers/i386/WinXP/viostor.cat", Some winxp_32; - "drivers/i386/WinXP/qxl.inf", Some winxp_32; - "drivers/i386/WinXP/qxl.cat", Some winxp_32; "drivers/i386/WinXP/netkvm.cat", Some winxp_32; "drivers/amd64/Win8.1/viostor.inf", Some win8_1_64; "drivers/amd64/Win8.1/viostor.sys", Some win8_1_64; @@ -659,15 +651,11 @@ let test_virtio_iso_path_matches_guest_os ctx "drivers/amd64/Win2008/vioscsi.inf", Some win2k8_64; "drivers/amd64/Win7/viostor.inf", Some win7_64; "drivers/amd64/Win7/viostor.sys", Some win7_64; - "drivers/amd64/Win7/qxldd.dll", Some win7_64; - "drivers/amd64/Win7/qxl.sys", Some win7_64; "drivers/amd64/Win7/vioscsi.cat", Some win7_64; "drivers/amd64/Win7/netkvm.inf", Some win7_64; "drivers/amd64/Win7/netkvm.sys", Some win7_64; "drivers/amd64/Win7/viostor.cat", Some win7_64; - "drivers/amd64/Win7/qxl.inf", Some win7_64; "drivers/amd64/Win7/vioscsi.sys", Some win7_64; - "drivers/amd64/Win7/qxl.cat", Some win7_64; "drivers/amd64/Win7/netkvm.cat", Some win7_64; "drivers/amd64/Win7/vioscsi.inf", Some win7_64; "drivers/amd64/Win2003/viostor.inf", Some win2k3_64; @@ -696,15 +684,11 @@ let test_virtio_iso_path_matches_guest_os ctx "drivers/amd64/Win2012/vioscsi.inf", Some win2k12_64; "drivers/amd64/Win2008R2/viostor.inf", Some win2k8r2_64; "drivers/amd64/Win2008R2/viostor.sys", Some win2k8r2_64; - "drivers/amd64/Win2008R2/qxldd.dll", Some win2k8r2_64; - "drivers/amd64/Win2008R2/qxl.sys", Some win2k8r2_64; "drivers/amd64/Win2008R2/vioscsi.cat", Some win2k8r2_64; "drivers/amd64/Win2008R2/netkvm.inf", Some win2k8r2_64; "drivers/amd64/Win2008R2/netkvm.sys", Some win2k8r2_64; "drivers/amd64/Win2008R2/viostor.cat", Some win2k8r2_64; - "drivers/amd64/Win2008R2/qxl.inf", Some win2k8r2_64; "drivers/amd64/Win2008R2/vioscsi.sys", Some win2k8r2_64; - "drivers/amd64/Win2008R2/qxl.cat", Some win2k8r2_64; "drivers/amd64/Win2008R2/netkvm.cat", Some win2k8r2_64; "drivers/amd64/Win2008R2/vioscsi.inf", Some win2k8r2_64; "drivers/amd64/Win2012R2/viostor.inf", Some win2k12r2_64; -- 2.19.1.3.g30247aa5d201
Laszlo Ersek
2021-Nov-01 17:06 UTC
[Libguestfs] [virt-v2v RFC wave 2 10/10] tests: remove the remaining QXL references (for completeness)
Just for completeness' sake, change the display device from QXL to standard VGA in: - test-data/phony-guests/guests.xml.in - tests/test-v2v-print-source.xml.in This removes the last QXL occurrences in the source files. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1961107 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- test-data/phony-guests/guests.xml.in | 2 +- tests/test-v2v-print-source.expected | 2 +- tests/test-v2v-print-source.xml.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test-data/phony-guests/guests.xml.in b/test-data/phony-guests/guests.xml.in index 4139d04f689f..9f64c35cd80f 100644 --- a/test-data/phony-guests/guests.xml.in +++ b/test-data/phony-guests/guests.xml.in @@ -299,7 +299,7 @@ <model type='virtio'/> </interface> <video> - <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/> + <model type='vga' vram='16384' heads='1'/> </video> </devices> </domain> diff --git a/tests/test-v2v-print-source.expected b/tests/test-v2v-print-source.expected index afed30b5c46d..cfeade1c012d 100644 --- a/tests/test-v2v-print-source.expected +++ b/tests/test-v2v-print-source.expected @@ -9,7 +9,7 @@ hypervisor type: kvm CPU features: acpi,apic,pae firmware: unknown display: - video: qxl + video: vga sound: disks: 0 [virtio-blk] diff --git a/tests/test-v2v-print-source.xml.in b/tests/test-v2v-print-source.xml.in index 2f83fc73cb8a..d018d5fbcd27 100644 --- a/tests/test-v2v-print-source.xml.in +++ b/tests/test-v2v-print-source.xml.in @@ -27,7 +27,7 @@ <model type='virtio'/> </interface> <video> - <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/> + <model type='vga' vram='16384' heads='1'/> </video> </devices> </domain> -- 2.19.1.3.g30247aa5d201