From 33cfe883c68b0748a6d27be7291e5d375ade48fb Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 23 Apr 2015 10:14:58 -0400 Subject: [PATCH] guest: arm kvm should use host-passthrough, not model=host Seems to work with libvirt, not sure if it was ever broken as the comment suggested. --- .../cli-test-xml/compare/virt-install-aarch64-kvm-import.xml | 4 +--- tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml | 4 +--- virtinst/guest.py | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/cli-test-xml/compare/virt-install-aarch64-kvm-import.xml b/tests/cli-test-xml/compare/virt-install-aarch64-kvm-import.xml index f093e835..77b768bc 100644 --- a/tests/cli-test-xml/compare/virt-install-aarch64-kvm-import.xml +++ b/tests/cli-test-xml/compare/virt-install-aarch64-kvm-import.xml @@ -13,9 +13,7 @@ - - host - + destroy restart diff --git a/tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml b/tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml index ed9835b8..f8b0b515 100644 --- a/tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml +++ b/tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml @@ -12,9 +12,7 @@ - - host - + destroy restart diff --git a/virtinst/guest.py b/virtinst/guest.py index 9b4628a5..dc55ef85 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -795,9 +795,7 @@ class Guest(XMLBuilder): return if self.os.is_arm_machvirt() and self.type == "kvm": - # Should be host-passthrough, but the libvirt support is - # incomplete for arm cpu - self.cpu.model = "host" + self.cpu.mode = self.cpu.SPECIAL_MODE_HOST_PASSTHROUGH elif self.os.is_arm64() and self.os.is_arm_machvirt(): # -M virt defaults to a 32bit CPU, even if using aarch64