All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cole Robinson <crobinso@redhat.com>
To: Pavel Fedin <p.fedin@samsung.com>,
	'Peter Maydell' <peter.maydell@linaro.org>
Cc: 'QEMU Developers' <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64
Date: Thu, 07 May 2015 10:38:57 -0400	[thread overview]
Message-ID: <554B7901.7070607@redhat.com> (raw)
In-Reply-To: <00bc01d08890$3883bc10$a98b3430$@samsung.com>

On 05/07/2015 02:36 AM, Pavel Fedin wrote:
>  Hello!
> 
>> Yes. qemu-system-aarch64 -cpu cortex-a15 gets you a 32-bit Cortex-A15. This is
>> exactly like the x86 QEMU, where you can emulate all the 32-bit x86 CPUs in
>> qemu-system-x86_64.
> 
>  And what is the default in x86_64 ? I believe it's 64-bit CPU, and not i686, isn't it ?
>  I agree that -cpu cortex-a15 might work with qemu-system-aarch64. But isn't it expected to get the "native" CPU by default ? This behavior of qemu causes weird thing with libvirt/virt-manager. I create a VM, specify "aarch64" as architecture, and set "hypervisor default" as CPU model. With "hypervisor default" libvirt does not pass any -cpu option to qemu, leaving it up to the emulator (exactly as expected). So, i supply 64-bit kernel and rootfs, and nothing works. I have to explicitly change the CPU to "cortex-a57". Isn't it confusing to have such a default ?
>  This is even more confusing since currently i don't know any implementation of aarch64 except A57 and A53 (which are the same from software point of view). So, i believe, A57 is quite a reasonable default.
> 

FWIW virt-manager 1.2.0 (just released) will do the following when creating a
new VM:

- aarch64 + kvm : -cpu host
- aarch64 + tcg : -cpu cortex-a57
- arm32 + kvm : -cpu host
- arm32 + tcg : defer to qemu

Though if you explicitly request 'hypervisor default' then we won't specify
any -cpu and defer to qemu, which will hit the cortex-a15 default for aarch64

- Cole

  reply	other threads:[~2015-05-07 14:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 15:03 [Qemu-devel] [PATCH] Fix default CPU model for ARM64 Pavel Fedin
2015-05-06 15:50 ` Peter Maydell
2015-05-06 18:06   ` Pavel Fedin
2015-05-06 18:15     ` Peter Maydell
2015-05-07  6:36       ` Pavel Fedin
2015-05-07 14:38         ` Cole Robinson [this message]
2015-05-08  7:14           ` Pavel Fedin
2015-05-08  7:59             ` Peter Crosthwaite
2015-05-08  8:44               ` Pavel Fedin
2015-05-08 15:59                 ` Peter Crosthwaite
2015-05-08  8:39             ` Paolo Bonzini
2015-05-10 21:07             ` Cole Robinson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554B7901.7070607@redhat.com \
    --to=crobinso@redhat.com \
    --cc=p.fedin@samsung.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.