Doesn't support arm64

Bug #1265425 reported by Ming Lei
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Without attached patch, we can't create VM on arm64 with KVM.

Tags: arm64 hs-arm64
Revision history for this message
Ming Lei (tom-leiming) wrote :
Revision history for this message
Robie Basak (racb) wrote :

Thank you for work and for the patch!

I'm keen to make sure that we don't diverge from Linaro and libvirt upstream on armhf/arm64 enablement. I know that this is an active area of work in Linaro at the moment. I believe Clark Laughlin is working on it?

Clark, how does this fit in with your plans, please? Or perhaps you could review and/or use it?

I just want to avoid putting something into Ubuntu that then conflicts with your work.

Marking Wishlist as arm64 support would be a new feature.

Changed in libvirt (Ubuntu):
importance: Undecided → Wishlist
summary: - don't support arm64
+ Doesn't support arm64
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libvirt (Ubuntu):
status: New → Confirmed
Revision history for this message
Robie Basak (racb) wrote :

I've just spoken to Ming about this. He wrote this patch as a workaround, and isn't sure that it's suitable to land for the general case. So I'd like to hold from landing this in Ubuntu or from sending it upstream until it has been reviewed for suitability.

Robie Basak (racb)
tags: added: arm64
Revision history for this message
Robie Basak (racb) wrote :
tags: added: hs-arm64
Revision history for this message
Ming Lei (tom-leiming) wrote :

Looks the upstreamed commit mentioned in #5 includes most of the patch we are using, and that is great
really, :-)

But maybe below part is needed too:

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index e964c75..c947e2e 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -793,10 +794,14 @@ qemuDomainDefaultNetModel(const virDomainDef *def)
         def->os.arch == VIR_ARCH_S390X)
         return "virtio";

- if (def->os.arch == VIR_ARCH_ARMV7L) {
+ if (def->os.arch == VIR_ARCH_ARMV7L ||
+ def->os.arch == VIR_ARCH_AARCH64) {
         if (STREQ(def->os.machine, "versatilepb"))
             return "smc91c111";

+ if (strstr(def->os.machine, "virt"))
+ return "virtio";
+
         /* Incomplete. vexpress (and a few others) use this, but not all
          * arm boards */
         return "lan9118";

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1265425] Re: Doesn't support arm64

Quoting Ming Lei (<email address hidden>):
> Looks the upstreamed commit mentioned in #5 includes most of the patch we are using, and that is great
> really, :-)
>
> But maybe below part is needed too:
>
> diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
> index e964c75..c947e2e 100644
> --- a/src/qemu/qemu_domain.c
> +++ b/src/qemu/qemu_domain.c
> @@ -793,10 +794,14 @@ qemuDomainDefaultNetModel(const virDomainDef *def)
> def->os.arch == VIR_ARCH_S390X)
> return "virtio";
>
> - if (def->os.arch == VIR_ARCH_ARMV7L) {
> + if (def->os.arch == VIR_ARCH_ARMV7L ||
> + def->os.arch == VIR_ARCH_AARCH64) {
> if (STREQ(def->os.machine, "versatilepb"))
> return "smc91c111";
>
> + if (strstr(def->os.machine, "virt"))
> + return "virtio";
> +
> /* Incomplete. vexpress (and a few others) use this, but not all
> * arm boards */
> return "lan9118";

Can you create a single patch with what remains of what you need? Also,
if you look at the changelog for the upstreamed patch they had to do
some work to the testcase to be accepted - does what remains of your
patch need any testcase tweaking?

Revision history for this message
Ming Lei (tom-leiming) wrote :

On Thu, Jan 9, 2014 at 1:39 AM, Serge Hallyn
> Can you create a single patch with what remains of what you need? Also,

Yes, I will do it.

> if you look at the changelog for the upstreamed patch they had to do
> some work to the testcase to be accepted - does what remains of your
> patch need any testcase tweaking?

Sorry, I didn't understand this stuff, and I just remember without the patch,
we can't bring up a VM on arm64 with qemu...

Thanks for your comment.

Thanks
--
Ming Lei

Ming Lei (tom-leiming)
Changed in libvirt (Ubuntu):
status: Confirmed → Fix Committed
Changed in libvirt (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.