[libvirt] 'host-passthrough' for arm64

2014-01-20 Thread Oleg Strikov
Hello guys, I'm trying to come up with basic OpenStack support for arm64 node. I'd like to use 'libvirt_cpu_mode=host-passthrough' configuration option with Nova which issues cpu mode='host-passthrough' to libvirt xml config. But with this option passed libvirt crashes with 'error: unsupported

[libvirt] [PATCH] qemu: Enable 'host-passthrough' cpu mode for aarch64

2014-01-23 Thread Oleg Strikov
-by: Oleg Strikov oleg.stri...@canonical.com --- src/cpu/cpu_aarch64.c | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/cpu/cpu_aarch64.c b/src/cpu/cpu_aarch64.c index 3959deb..4afe9db 100644 --- a/src/cpu/cpu_aarch64.c +++ b/src/cpu/cpu_aarch64

[libvirt] [PATCH] qemu: Use virtio network device for aarch64/virt

2014-01-24 Thread Oleg Strikov
-by: Oleg Strikov oleg.stri...@canonical.com --- src/qemu/qemu_domain.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index c947e2e..a0e9a33 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -795,11 +795,12

[libvirt] [PATCH v2] qemu: Use virtio network device for aarch64/virt

2014-01-27 Thread Oleg Strikov
-by: Oleg Strikov oleg.stri...@canonical.com --- src/qemu/qemu_domain.c |3 ++- .../qemuxml2argv-aarch64-virt-default-nic.args |6 ++ .../qemuxml2argv-aarch64-virt-default-nic.xml | 22 tests/qemuxml2argvtest.c

[libvirt] [PATCH v3] qemu: Use virtio network device for aarch64/virt

2014-01-27 Thread Oleg Strikov
-by: Oleg Strikov oleg.stri...@canonical.com --- src/qemu/qemu_domain.c |3 ++- .../qemuxml2argv-aarch64-virt-default-nic.args |6 ++ .../qemuxml2argv-aarch64-virt-default-nic.xml | 22 tests/qemuxml2argvtest.c

[libvirt] [PATCH] qemu: Implement a stub cpuArchDriver.baseline() handler for aarch64

2014-02-11 Thread Oleg Strikov
backend supports only 'host-passthrough' cpu mode on aarch64. Signed-off-by: Oleg Strikov oleg.stri...@canonical.com --- src/cpu/cpu_aarch64.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/cpu/cpu_aarch64.c b/src/cpu/cpu_aarch64.c index f674bff

[libvirt] [PATCH v2] qemu: Use virtio network device for aarch64/virt

2014-02-14 Thread Oleg Strikov
-by: Oleg Strikov oleg.stri...@canonical.com --- Changes since v1: * qemuxml2argvtest suite has been extended to validate correct setup for aarch64 guests when no NIC model is provided in the XML src/qemu/qemu_domain.c |3 ++- .../qemuxml2argv-aarch64-virt-default

[libvirt] [PATCH] qemu: Enable 'host-passthrough' cpu mode for arm

2014-02-26 Thread Oleg Strikov
-off-by: Oleg Strikov oleg.stri...@canonical.com --- This is a port of the following aarch64-specific change: http://libvirt.org/git/?p=libvirt.git;a=commit;h=29ea437e408e441bad67e4ffae731286d356ca4a Only function names were changed. --- src/cpu/cpu_arm.c | 30 ++ 1

[libvirt] [PATCH] qemu: Implement a stub cpuArchDriver.baseline() handler for arm

2014-03-03 Thread Oleg Strikov
Openstack Nova calls virConnectBaselineCPU() during initialization of the instance to get a full list of CPU features. This patch adds a stub to arm-specific code to handle this request (no actual work is done). Signed-off-by: Oleg Strikov oleg.stri...@canonical.com --- This is a port

[libvirt] [PATCH] qemu: Implement a stub cpuArchDriver.compare() handler for arm and aarch64

2014-05-07 Thread Oleg Strikov
Libvirt calls cpuArchDriver.compare() while doing guest migration. We don't have any logic to distinguish between different arm and aarch64 models that's why this patch allows migration to any host. Signed-off-by: Oleg Strikov oleg.stri...@canonical.com --- src/cpu/cpu_aarch64.c |9