[gnome-boxes] installer-media: Implement prefers_q35
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] installer-media: Implement prefers_q35
- Date: Fri, 12 Oct 2018 14:18:16 +0000 (UTC)
commit d9b20efbba3a6b849fc2161ae05144ff6da3d827
Author: Fabiano FidĂȘncio <fidencio redhat com>
Date: Thu Oct 11 18:30:06 2018 +0200
installer-media: Implement prefers_q35
We should prefer q35 whenever it's supported.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1581422
Signed-off-by: Fabiano FidĂȘncio <fidencio redhat com>
src/installer-media.vala | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/src/installer-media.vala b/src/installer-media.vala
index 4a8d913e..5bde3cae 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -51,7 +51,17 @@
public bool prefers_q35 {
get {
- return false;
+ if (os == null)
+ return true;
+
+ var device = find_device_by_prop (supported_devices, DEVICE_PROP_NAME, "qemu-x86-q35");
+ if (device == null)
+ return false;
+
+ if (supports_virtio_net && !supports_virtio1_net)
+ return false;
+
+ return true;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]