Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-10 Thread Cole Robinson
On 05/08/2015 03:14 AM, Pavel Fedin wrote: > Hello! > >> 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 yo

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-08 Thread Peter Crosthwaite
On Fri, May 8, 2015 at 1:44 AM, Pavel Fedin wrote: > Hello! > >> Ignoring legacy, the ideal naming scheme would be: >> >> qemu-system-arm >> aarch64-linux-user >> aarch32-linux-user > > You know, i rethought. Actually, the question concerns only "virt" machine, > because for other real machines

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-08 Thread Pavel Fedin
Hello! > Ignoring legacy, the ideal naming scheme would be: > > qemu-system-arm > aarch64-linux-user > aarch32-linux-user You know, i rethought. Actually, the question concerns only "virt" machine, because for other real machines the CPU should be the same as on real HW, and this is no quest

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-08 Thread Paolo Bonzini
On 08/05/2015 09:14, Pavel Fedin wrote: > Hello! > >> 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

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-08 Thread Peter Crosthwaite
On Fri, May 8, 2015 at 12:14 AM, Pavel Fedin wrote: > Hello! > >> 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 >> >> Tho

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-08 Thread Pavel Fedin
Hello! > 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'

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-07 Thread Cole Robinson
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'

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-06 Thread Pavel Fedin
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

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-06 Thread Peter Maydell
On 6 May 2015 at 19:06, Pavel Fedin wrote: > Hello! > >> I'm afraid this is wrong -- the same command line on qemu-system-arm and >> qemu-system-aarch64 should do the same thing. > > But 64-bit A15 is nonsense, because it's 32-bit CPU, isn't it? Yes. qemu-system-aarch64 -cpu cortex-a15 gets you

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-06 Thread Pavel Fedin
Hello! > I'm afraid this is wrong -- the same command line on qemu-system-arm and > qemu-system-aarch64 should do the same thing. But 64-bit A15 is nonsense, because it's 32-bit CPU, isn't it? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-06 Thread Peter Maydell
On 6 May 2015 at 16:03, Pavel Fedin wrote: > This small patch fixes a long-standing bug: A15 model is used by default > also on ARM64 target. As a result, attempt to run the VM without explicit > -cpu specification does not do anything good. > > Signed-off-by: Pavel Fedin > --- > hw/arm/virt.c

[Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-06 Thread Pavel Fedin
This small patch fixes a long-standing bug: A15 model is used by default also on ARM64 target. As a result, attempt to run the VM without explicit -cpu specification does not do anything good. Signed-off-by: Pavel Fedin --- hw/arm/virt.c | 4 1 file changed, 4 insertions(+) diff --git a/h