Re: [Qemu-devel] [PATCH v2 0/3] tests/vm: Improvements when KVM is not available

2018-10-10 Thread Philippe Mathieu-Daudé
Ping?

On 10/1/18 1:23 AM, Philippe Mathieu-Daudé wrote:
> Hi Fam,
> 
> Since v1: 
> http://lists.nongnu.org/archive/html/qemu-devel/2018-07/msg03411.html
> - rebased on master
> - added get_default_jobs (Fam)
> - dropped 'When using TCG, wait longer for a VM to start'
> 
> Few patches I added while testing the VM tests without KVM access.
> I doubt many people want to suffer using TCG for VM testing, but
> it was handy to debug/support aarch64 VM tests.
> 
> Also this could be a useful TCG stress test...?
> 
> Regards,
> 
> Phil.
> 
> Philippe Mathieu-Daudé (3):
>   tests/vm: Extract the kvm_available() handy function
>   tests/vm: Do not abuse parallelism when KVM is not available
>   tests/vm: Display remaining seconds to wait for a VM to start
> 
>  tests/vm/basevm.py | 25 -
>  1 file changed, 20 insertions(+), 5 deletions(-)
> 



[Qemu-devel] [PATCH v2 0/3] tests/vm: Improvements when KVM is not available

2018-09-30 Thread Philippe Mathieu-Daudé
Hi Fam,

Since v1: http://lists.nongnu.org/archive/html/qemu-devel/2018-07/msg03411.html
- rebased on master
- added get_default_jobs (Fam)
- dropped 'When using TCG, wait longer for a VM to start'

Few patches I added while testing the VM tests without KVM access.
I doubt many people want to suffer using TCG for VM testing, but
it was handy to debug/support aarch64 VM tests.

Also this could be a useful TCG stress test...?

Regards,

Phil.

Philippe Mathieu-Daudé (3):
  tests/vm: Extract the kvm_available() handy function
  tests/vm: Do not abuse parallelism when KVM is not available
  tests/vm: Display remaining seconds to wait for a VM to start

 tests/vm/basevm.py | 25 -
 1 file changed, 20 insertions(+), 5 deletions(-)

-- 
2.19.0




Re: [Qemu-devel] [PATCH v2 0/3] tests/vm: Improvements when KVM is not available

2018-09-30 Thread Philippe Mathieu-Daudé
> Also this could be a useful TCG stress test...?

For example, I get this serial output when running 'make
vm-build-ubuntu.i386' with TCG:

[0.00] Initializing cgroup subsys cpuset

[0.00] Initializing cgroup subsys cpu

[0.00] Initializing cgroup subsys cpuacct

[0.00] Linux version 4.4.0-130-generic (buildd@lgw01-amd64-037)
(gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) )
#156-Ubuntu SMP Thu Jun 14 08:51:45 UTC 2018 (Ubuntu
4.4.0-130.156-generic 4.4.134)

[0.00] KERNEL supported cpus:

[0.00]   Intel GenuineIntel

[0.00]   AMD AuthenticAMD

[0.00]   NSC Geode by NSC

[0.00]   Cyrix CyrixInstead

[0.00]   Centaur CentaurHauls

[0.00]   Transmeta GenuineTMx86

[0.00]   Transmeta TransmetaCPU

[0.00]   UMC UMC UMC UMC

[0.00] [ cut here ]

[0.00] WARNING: CPU: 0 PID: 0 at
/build/linux-qgGLIA/linux-4.4.0/arch/x86/kernel/fpu/xstate.c:517
fpu__init_system_xstate+0x347/0x6e5()

[0.00] XSAVE consistency problem, dumping leaves

[0.00] Modules linked in:

[0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.0-130-generic
#156-Ubuntu

[0.00]  c1afb967 c87860a9 00200086 c1af5e98 c13b544f c1af5ed8
c19db30c c1af5ec8

[0.00]  c1072aa7 c19db4a0 c1af5ef8  c19db30c 0205
c1bc6163 c1bc6163

[0.00]  0008 0440 c1af5f14 c1af5ee4 c1072b1e 0009
c1af5ed8 c19db4a0

[0.00] Call Trace:

[0.00]  [] dump_stack+0x58/0x79

[0.00]  [] warn_slowpath_common+0x87/0xc0

[0.00]  [] ? fpu__init_system_xstate+0x347/0x6e5

[0.00]  [] ? fpu__init_system_xstate+0x347/0x6e5

[0.00]  [] warn_slowpath_fmt+0x3e/0x60

[0.00]  [] fpu__init_system_xstate+0x347/0x6e5

[0.00]  [] fpu__init_system+0x20f/0x310

[0.00]  [] ? early_init_amd+0xd9/0x1c0

[0.00]  [] ? bsp_init_amd+0xd/0x1a0

[0.00]  [] early_cpu_init+0x1e1/0x1f9

[0.00]  [] ? early_cpu_init+0x1e1/0x1f9

[0.00]  [] setup_arch+0xe9/0xd10

[0.00]  [] start_kernel+0xc1/0x405

[0.00]  [] i386_start_kernel+0x9a/0x9e

[0.00] ---[ end trace 4d5ff9f2f68c4233 ]---

[0.00] CPUID[0d, 00]: eax=021b ebx=0a88 ecx=0a88
edx=

[0.00] CPUID[0d, 01]: eax=0005 ebx= ecx=
edx=

[0.00] CPUID[0d, 02]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 03]: eax=0040 ebx=03c0 ecx=
edx=

[0.00] CPUID[0d, 04]: eax=0040 ebx=0400 ecx=
edx=

[0.00] CPUID[0d, 05]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 06]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 07]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 08]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 09]: eax=0008 ebx=0a80 ecx=
edx=

[0.00] CPUID[0d, 0a]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 0b]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 0c]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 0d]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 0e]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 0f]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 10]: eax= ebx= ecx=
edx=

[0.00] CPUID[0d, 11]: eax= ebx= ecx=
edx=

[0.00] x86/fpu: xstate_offset[3]:  960, xstate_sizes[3]:   64

[0.00] x86/fpu: xstate_offset[4]: 1024, xstate_sizes[4]:   64

[0.00] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating
point registers'

[0.00] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'

[0.00] x86/fpu: Supporting XSAVE feature 0x08: 'MPX bounds
registers'

[0.00] x86/fpu: Supporting XSAVE feature 0x10: 'MPX CSR'

[0.00] x86/fpu: Enabled xstate features 0x1b, context size is
2696 bytes, using 'standard' format.

[0.00] x86/fpu: Using 'eager' FPU context switches.
[...]
[6.352616] Unpacking initramfs...

[   31.096218] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s!
[swapper/0:1]

[   31.096218] Modules linked in:

[   31.096218] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GW
4.4.0-130-generic #156-Ubuntu

[   31.096218] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS rel-1.11.2-0-gf9626ccb91-prebuilt.qemu-project.org 04/01/2014

[   31.096218] task: f390 ti: f3908000 task.ti: f3908000

[   31.096218] EIP: 0060:[] EFLAGS: 0202 CPU: 0

[   31.096218] EIP is at rc_get_bit+0x3c/0x4e

[   31.096218] EAX: 0413 EBX: f8c0c648 ECX: f3900021 EDX: f8c0c648

[