[Kernel-packages] [Bug 1847948] Re: Improve NVMe guest performance on Bionic QEMU

2019-10-15 Thread Murilo Opsfelder Araújo
Christian,

Patch from comment 8 seems yet another nice improvement.  We haven't
tried it to have a strong opinion.

If it's included, then I think patch from comment 9 won't hurt being
added too.

Murilo

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1847948

Title:
  Improve NVMe guest performance on Bionic QEMU

Status in The Ubuntu-power-systems project:
  Triaged
Status in linux package in Ubuntu:
  Fix Released
Status in qemu package in Ubuntu:
  Fix Released
Status in linux source package in Bionic:
  New
Status in qemu source package in Bionic:
  Triaged

Bug description:
  [Impact]

   * In the past qemu has generally not allowd MSI-X BAR mapping on VFIO.
 But there can be platforms (like ppc64 spapr) that can and want to do 
 exactly that.

   * Backport two patches from upstream (in since qemu 2.12 / Disco).

   * Due to that there is a tremendous speedup, especially useful with page 
 size bigger than 4k. This avoids that being split into chunks and makes 
 direct MMIO access possible for the guest.

  [Test Case]

   * On ppc64 pass through an NVME device to the guest and run I/O 
 benchmarks, see below for Details how to set that up.
 Note this needs the HWE kernel or another kernel fixup for [1].

  [Regression Potential]

   * Changes:
 a) if the host driver allows mapping of MSI-X data the entire BAR is 
mapped. This is only done if the kernel reports that capability [1].
This ensures that only on kernels able to do so qemu does expose the 
new behavior (safe against regression in that regard)
 b) on ppc64 MSI-X emulation is disabled for VFIO devices this is local 
to just this HW and will not affect other HW.

 Generally the regressions that come to mind are slight changes in 
 behavior (real HW vs the former emulation) that on some weird/old 
 guests could cause trouble. But then it is limited to only PPC where 
 only a small set of certified HW is really allowed.

 The mapping that might be added even on other platforms should not 
 consume too much extra memory as long as it isn't used. Further since 
 it depends on the kernel capability it isn't randomly issues on kernels 
 where we expect it to fail.

 So while it is quite a change, it seems safe to me.

  [Other Info]
   
   * I know, one could as well call that a "feature", but it really is a 
 performance bug fix more than anything else. Also the SRU policy allows
 exploitation/toleration of new HW especially for LTS releases. 
 Therefore I think this is fine as SRU.

  [1]:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a32295c612c57990d17fb0f41e7134394b2f35f6

  
  == Comment: #0 - Murilo Opsfelder Araujo  - 2019-10-11 14:16:14 ==

  ---Problem Description---
  Back-port the following patches to Bionic QEMU to improve NVMe guest 
performance by more than 200%:

  ?vfio-pci: Allow mmap of MSIX BAR?
  
https://git.qemu.org/?p=qemu.git;a=commit;h=ae0215b2bb56a9d5321a185dde133bfdd306a4c0

  ?ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices?
  
https://git.qemu.org/?p=qemu.git;a=commit;h=fcad0d2121976df4b422b4007a5eb7fcaac01134

  ---uname output---
  na

  ---Additional Hardware Info---
  0030:01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe 
SSD Controller 172Xa/172Xb (rev 01)

  Machine Type = AC922

  ---Debugger---
  A debugger is not configured

  ---Steps to Reproduce---
   Install or setup a guest image and boot it.

  Once guest is running, passthrough the NVMe disk to the guest using
  the XML:

  host$ cat nvme-disk.xml
  
     
  
  
  
  

  host$ virsh attach-device  nvme-disk.xml --live

  On the guest, run fio benchmarks:

  guest$ fio --direct=1 --rw=randrw --refill_buffers --norandommap
  --randrepeat=0 --ioengine=libaio --bs=4k --rwmixread=100 --iodepth=16
  --runtime=60 --name=job1 --filename=/dev/nvme0n1 --numjobs=4

  Results are similar with numjobs=4 and numjobs=64, respectively:

     READ: bw=385MiB/s (404MB/s), 78.0MiB/s-115MiB/s (81.8MB/s-120MB/s), 
io=11.3GiB (12.1GB), run=30001-30001msec
     READ: bw=382MiB/s (400MB/s), 2684KiB/s-12.6MiB/s (2749kB/s-13.2MB/s), 
io=11.2GiB (12.0GB), run=30001-30009msec

  With the two patches applied, performance improved significantly for
  numjobs=4 and numjobs=64 cases, respectively:

     READ: bw=1191MiB/s (1249MB/s), 285MiB/s-309MiB/s (299MB/s-324MB/s), 
io=34.9GiB (37.5GB), run=30001-30001msec
     READ: bw=4273MiB/s (4481MB/s), 49.7MiB/s-113MiB/s (52.1MB/s-119MB/s), 
io=125GiB (134GB), run=30001-30005msec

  Userspace tool common name: qemu

  Userspace rpm: qemu

  The userspace tool has the following bit modes: 64-bit

  Userspace tool obtained from project website:  na

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems

[Kernel-packages] [Bug 1847948] Re: Improve NVMe guest performance on Bionic QEMU

2019-10-15 Thread Murilo Opsfelder Araújo
Christian,

Using QEMU from comment 6, it improved the performance for numjobs=4 and
numjobs=64 cases, respectively:

   READ: bw=1140MiB/s (1195MB/s), 271MiB/s-302MiB/s (284MB/s-317MB/s), 
io=66.8GiB (71.7GB), run=60001-60001msec
   READ: bw=4271MiB/s (4479MB/s), 30.1MiB/s-82.6MiB/s (31.6MB/s-86.6MB/s), 
io=250GiB (269GB), run=60001-60003msec

$ dpkg -l | grep ppa1
ii  qemu  1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  fast 
processor emulator
ii  qemu-block-extra:ppc64el  1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  extra 
block backend modules for qemu-system and qemu-utils
ii  qemu-kvm  1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU Full 
virtualization on x86 hardware
ii  qemu-system   1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries
ii  qemu-system-arm   1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries (arm)
ii  qemu-system-common1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries (common files)
ii  qemu-system-mips  1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries (mips)
ii  qemu-system-misc  1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries (miscellaneous)
ii  qemu-system-ppc   1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries (ppc)
ii  qemu-system-s390x 1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries (s390x)
ii  qemu-system-sparc 1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries (sparc)
ii  qemu-system-x86   1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU full 
system emulation binaries (x86)
ii  qemu-user 1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU user 
mode emulation binaries
ii  qemu-user-binfmt  1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU user 
mode binfmt registration for qemu-user
ii  qemu-utils1:2.11+dfsg-1ubuntu7.20~ppa1  ppc64el  QEMU 
utilities

Note 0: We booted a newer kernel on the host that contained the patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a32295c612c57990d17fb0f41e7134394b2f35f6

Using Bionic kernel 4.15.0-65.74, the performance hasn't changed.
Most likely because Bionic kernel doesn't contain the above patch yet.

Note 1: Kudos to Murilo Vicentini for running the tests and capturing
the numbers.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1847948

Title:
  Improve NVMe guest performance on Bionic QEMU

Status in The Ubuntu-power-systems project:
  Triaged
Status in linux package in Ubuntu:
  Fix Released
Status in qemu package in Ubuntu:
  Fix Released
Status in linux source package in Bionic:
  New
Status in qemu source package in Bionic:
  Triaged

Bug description:
  [Impact]

   * In the past qemu has generally not allowd MSI-X BAR mapping on VFIO.
 But there can be platforms (like ppc64 spapr) that can and want to do 
 exactly that.

   * Backport two patches from upstream (in since qemu 2.12 / Disco).

   * Due to that there is a tremendous speedup, especially useful with page 
 size bigger than 4k. This avoids that being split into chunks and makes 
 direct MMIO access possible for the guest.

  [Test Case]

   * On ppc64 pass through an NVME device to the guest and run I/O 
 benchmarks, see below for Details how to set that up.
 Note this needs the HWE kernel or another kernel fixup for [1].

  [Regression Potential]

   * Changes:
 a) if the host driver allows mapping of MSI-X data the entire BAR is 
mapped. This is only done if the kernel reports that capability [1].
This ensures that only on kernels able to do so qemu does expose the 
new behavior (safe against regression in that regard)
 b) on ppc64 MSI-X emulation is disabled for VFIO devices this is local 
to just this HW and will not affect other HW.

 Generally the regressions that come to mind are slight changes in 
 behavior (real HW vs the former emulation) that on some weird/old 
 guests could cause trouble. But then it is limited to only PPC where 
 only a small set of certified HW is really allowed.

 The mapping that might be added even on other platforms should not 
 consume too much extra memory as long as it isn't used. Further since 
 it depends on the kernel capability it isn't randomly issues on kernels 
 where we expect it to fail.

 So while it is quite a change, it seems safe to me.

  [Other Info]
   
   * I know, one could as well call that a "feature", but it really is a 
 performance bug fix more than anything else. Also the SRU policy allows
 exploitation/toleration of new HW especially for LTS releases. 
 Therefore I think this is fine as SRU.

  [1]:
  
https://git.kernel.org/pub/scm/linu

[Kernel-packages] [Bug 1847948] Re: Improve NVMe guest performance on Bionic QEMU

2019-10-14 Thread Murilo Opsfelder Araújo
Christian,

The test case for this is to:

- passthrough the NVMe disk to guest;
- and run fio benchmarks against the passed-through NVMe disk in the guest.

I have detailed these steps and pasted the commands in the bug
description.  Please let me know if steps are not clear.

The only required HW is an NVMe disk.  We (IBM) can verify and do the
tests, if needed.

Thank you!

Murilo

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1847948

Title:
  Improve NVMe guest performance on Bionic QEMU

Status in The Ubuntu-power-systems project:
  Triaged
Status in linux package in Ubuntu:
  Fix Released
Status in qemu package in Ubuntu:
  Fix Released
Status in linux source package in Bionic:
  New
Status in qemu source package in Bionic:
  Triaged

Bug description:
  == Comment: #0 - Murilo Opsfelder Araujo  - 2019-10-11 14:16:14 ==

  ---Problem Description---
  Back-port the following patches to Bionic QEMU to improve NVMe guest 
performance by more than 200%:

  ?vfio-pci: Allow mmap of MSIX BAR?
  
https://git.qemu.org/?p=qemu.git;a=commit;h=ae0215b2bb56a9d5321a185dde133bfdd306a4c0

  ?ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices?
  
https://git.qemu.org/?p=qemu.git;a=commit;h=fcad0d2121976df4b422b4007a5eb7fcaac01134
   
  ---uname output---
  na
   
  ---Additional Hardware Info---
  0030:01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe 
SSD Controller 172Xa/172Xb (rev 01) 

   
  Machine Type = AC922 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
   Install or setup a guest image and boot it.

  Once guest is running, passthrough the NVMe disk to the guest using
  the XML:

  host$ cat nvme-disk.xml
  
 
  
  
  
  

  host$ virsh attach-device  nvme-disk.xml --live

  On the guest, run fio benchmarks:

  guest$ fio --direct=1 --rw=randrw --refill_buffers --norandommap
  --randrepeat=0 --ioengine=libaio --bs=4k --rwmixread=100 --iodepth=16
  --runtime=60 --name=job1 --filename=/dev/nvme0n1 --numjobs=4

  Results are similar with numjobs=4 and numjobs=64, respectively:

 READ: bw=385MiB/s (404MB/s), 78.0MiB/s-115MiB/s (81.8MB/s-120MB/s), 
io=11.3GiB (12.1GB), run=30001-30001msec
 READ: bw=382MiB/s (400MB/s), 2684KiB/s-12.6MiB/s (2749kB/s-13.2MB/s), 
io=11.2GiB (12.0GB), run=30001-30009msec

  With the two patches applied, performance improved significantly for
  numjobs=4 and numjobs=64 cases, respectively:

 READ: bw=1191MiB/s (1249MB/s), 285MiB/s-309MiB/s (299MB/s-324MB/s), 
io=34.9GiB (37.5GB), run=30001-30001msec
 READ: bw=4273MiB/s (4481MB/s), 49.7MiB/s-113MiB/s (52.1MB/s-119MB/s), 
io=125GiB (134GB), run=30001-30005msec

   
  Userspace tool common name: qemu 

  Userspace rpm: qemu 
   
  The userspace tool has the following bit modes: 64-bit 

  Userspace tool obtained from project website:  na

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1847948/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1723914] Re: ubuntu-kvm-unit test failed with emulator test on ppc64le

2018-04-02 Thread Murilo Opsfelder Araújo
** Patch added: "debdiff for Xenial qemu"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1723914/+attachment/5099155/+files/debdiff_qemu_xenial.patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1723914

Title:
  ubuntu-kvm-unit test failed with emulator test on ppc64le

Status in The Ubuntu-power-systems project:
  Confirmed
Status in linux package in Ubuntu:
  Confirmed
Status in qemu package in Ubuntu:
  New

Bug description:
  Similar to bug 1723904, bug 1712803.
  The failed "emulator" test from kvm-unit-test will pass with qemu-2.7.1 built 
from source.

  ubuntu@modoc:~/kvm-unit-tests$ sudo /bin/bash -c "TESTNAME=emulator 
TIMEOUT=90s ACCEL= ./powerpc/run powerpc/emulator.elf -smp 1
  > "
  timeout -k 1s --foreground 90s /usr/bin/qemu-system-ppc64 -nodefaults 
-machine pseries,accel=kvm -bios powerpc/boot_rom.bin -display none -serial 
stdio -kernel powerpc/emulator.elf -smp 1 # -initrd /tmp/tmp.BJ2sE7V2Jc
  FAIL: emulator: 64bit: detected
  PASS: emulator: invalid: exception
  PASS: emulator: lswx: alignment
  PASS: emulator: lswi: alignment
  SUMMARY: 4 tests, 1 unexpected failures

  EXIT: STATUS=3

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.10.0-37-generic 4.10.0-37.41~16.04.1
  ProcVersionSignature: User Name 4.10.0-37.41~16.04.1-generic 4.10.17
  Uname: Linux 4.10.0-37-generic ppc64le
  ApportVersion: 2.20.1-0ubuntu2.10
  Architecture: ppc64el
  Date: Mon Oct 16 10:10:46 2017
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcLoadAvg: 0.00 0.00 0.57 1/1457 83356
  ProcLocks:
   1: POSIX  ADVISORY  WRITE 1604 00:14:19651 0 EOF
   2: POSIX  ADVISORY  WRITE 2937 00:14:55331 0 EOF
   3: FLOCK  ADVISORY  WRITE 3046 00:14:67623 0 EOF
   4: POSIX  ADVISORY  WRITE 3124 00:14:57398 0 EOF
   5: POSIX  ADVISORY  WRITE 3047 00:14:87068 0 EOF
  ProcSwaps:
   Filename TypeSizeUsedPriority
   /swap.img   file 8388544 0   -1
  ProcVersion: Linux version 4.10.0-37-generic (buildd@bos01-ppc64el-026) (gcc 
version 5.4.0 20160609 (User Name/IBM 5.4.0-6ubuntu1~16.04.4) ) 
#41~16.04.1-User Name SMP Fri Oct 6 22:44:24 UTC 2017
  SourcePackage: linux-hwe
  UpgradeStatus: No upgrade log present (probably fresh install)
  cpu_cores: Number of cores present = 20
  cpu_coreson: Number of cores online = 20
  cpu_smt: SMT is off

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1723914/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1723914] Re: ubuntu-kvm-unit test failed with emulator test on ppc64le

2018-04-02 Thread Murilo Opsfelder Araújo
Manoj, Christian,

Please refer to the attached debdiff (it was my first debdiff, so it
might contain errors :)).

Let me know if you need anything else.

Cheers
Murilo

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1723914

Title:
  ubuntu-kvm-unit test failed with emulator test on ppc64le

Status in The Ubuntu-power-systems project:
  Confirmed
Status in linux package in Ubuntu:
  Confirmed
Status in qemu package in Ubuntu:
  New

Bug description:
  Similar to bug 1723904, bug 1712803.
  The failed "emulator" test from kvm-unit-test will pass with qemu-2.7.1 built 
from source.

  ubuntu@modoc:~/kvm-unit-tests$ sudo /bin/bash -c "TESTNAME=emulator 
TIMEOUT=90s ACCEL= ./powerpc/run powerpc/emulator.elf -smp 1
  > "
  timeout -k 1s --foreground 90s /usr/bin/qemu-system-ppc64 -nodefaults 
-machine pseries,accel=kvm -bios powerpc/boot_rom.bin -display none -serial 
stdio -kernel powerpc/emulator.elf -smp 1 # -initrd /tmp/tmp.BJ2sE7V2Jc
  FAIL: emulator: 64bit: detected
  PASS: emulator: invalid: exception
  PASS: emulator: lswx: alignment
  PASS: emulator: lswi: alignment
  SUMMARY: 4 tests, 1 unexpected failures

  EXIT: STATUS=3

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.10.0-37-generic 4.10.0-37.41~16.04.1
  ProcVersionSignature: User Name 4.10.0-37.41~16.04.1-generic 4.10.17
  Uname: Linux 4.10.0-37-generic ppc64le
  ApportVersion: 2.20.1-0ubuntu2.10
  Architecture: ppc64el
  Date: Mon Oct 16 10:10:46 2017
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcLoadAvg: 0.00 0.00 0.57 1/1457 83356
  ProcLocks:
   1: POSIX  ADVISORY  WRITE 1604 00:14:19651 0 EOF
   2: POSIX  ADVISORY  WRITE 2937 00:14:55331 0 EOF
   3: FLOCK  ADVISORY  WRITE 3046 00:14:67623 0 EOF
   4: POSIX  ADVISORY  WRITE 3124 00:14:57398 0 EOF
   5: POSIX  ADVISORY  WRITE 3047 00:14:87068 0 EOF
  ProcSwaps:
   Filename TypeSizeUsedPriority
   /swap.img   file 8388544 0   -1
  ProcVersion: Linux version 4.10.0-37-generic (buildd@bos01-ppc64el-026) (gcc 
version 5.4.0 20160609 (User Name/IBM 5.4.0-6ubuntu1~16.04.4) ) 
#41~16.04.1-User Name SMP Fri Oct 6 22:44:24 UTC 2017
  SourcePackage: linux-hwe
  UpgradeStatus: No upgrade log present (probably fresh install)
  cpu_cores: Number of cores present = 20
  cpu_coreson: Number of cores online = 20
  cpu_smt: SMT is off

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1723914/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1723914] Re: ubuntu-kvm-unit test failed with emulator test on ppc64le

2018-03-28 Thread Murilo Opsfelder Araújo
Pior to commit 8b9f2118ca40b1de72d8f75b59a5fb4d347a69f7 ("ppc64: set
MSR_SF bit"), qemu-system-ppc64 was not setting the 64-bit mode bit in
MSR.

Applying it on top of qemu 2.5 from Ubuntu 16.04.04, makes kvm-unit-
tests happy.

muriloo@jaspion1:~/sources/ubuntu$ dpkg-source -x qemu_2.5+dfsg-5ubuntu10.24.dsc
muriloo@jaspion1:~/sources/ubuntu$ cd qemu-2.5+dfsg/
muriloo@jaspion1:~/sources/ubuntu/qemu-2.5+dfsg$ patch -p1 < 
~/sources/qemu/0001-ppc64-set-MSR_SF-bit.patch
patching file target-ppc/translate_init.c
Hunk #1 succeeded at 9581 (offset -122 lines).
muriloo@jaspion1:~/sources/ubuntu/qemu-2.5+dfsg$ ./configure 
--target-list=ppc64-softmmu && make -j$(nproc)
muriloo@jaspion1:~/sources/ubuntu/qemu-2.5+dfsg$ cd 
~/sources/kvm-unit-tests/build/
muriloo@jaspion1:~/sources/kvm-unit-tests/build$ ../configure --endian=little 
&& make -j$(nproc)
muriloo@jaspion1:~/sources/kvm-unit-tests/build$ sudo 
QEMU=/home/muriloo/sources/ubuntu/qemu-2.5+dfsg/ppc64-softmmu/qemu-system-ppc64 
TESTNAME=emulator TIMEOUT=90s ACCEL= ./powerpc/run powerpc/emulator.elf -smp 1
[sudo] password for muriloo: 
timeout -k 1s --foreground 90s 
/home/muriloo/sources/ubuntu/qemu-2.5+dfsg/ppc64-softmmu/qemu-system-ppc64 
-nodefaults -machine pseries,accel=kvm -bios powerpc/boot_rom.bin -display none 
-serial stdio -kernel powerpc/emulator.elf -smp 1 # -initrd /tmp/tmp.Tanwa3UNM4
PASS: emulator: 64bit: detected
PASS: emulator: invalid: exception
PASS: emulator: lswx: alignment
PASS: emulator: lswi: alignment
SUMMARY: 4 tests

EXIT: STATUS=1

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1723914

Title:
  ubuntu-kvm-unit test failed with emulator test on ppc64le

Status in linux package in Ubuntu:
  Confirmed
Status in qemu package in Ubuntu:
  New

Bug description:
  Similar to bug 1723904, bug 1712803.
  The failed "emulator" test from kvm-unit-test will pass with qemu-2.7.1 built 
from source.

  ubuntu@modoc:~/kvm-unit-tests$ sudo /bin/bash -c "TESTNAME=emulator 
TIMEOUT=90s ACCEL= ./powerpc/run powerpc/emulator.elf -smp 1
  > "
  timeout -k 1s --foreground 90s /usr/bin/qemu-system-ppc64 -nodefaults 
-machine pseries,accel=kvm -bios powerpc/boot_rom.bin -display none -serial 
stdio -kernel powerpc/emulator.elf -smp 1 # -initrd /tmp/tmp.BJ2sE7V2Jc
  FAIL: emulator: 64bit: detected
  PASS: emulator: invalid: exception
  PASS: emulator: lswx: alignment
  PASS: emulator: lswi: alignment
  SUMMARY: 4 tests, 1 unexpected failures

  EXIT: STATUS=3

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.10.0-37-generic 4.10.0-37.41~16.04.1
  ProcVersionSignature: User Name 4.10.0-37.41~16.04.1-generic 4.10.17
  Uname: Linux 4.10.0-37-generic ppc64le
  ApportVersion: 2.20.1-0ubuntu2.10
  Architecture: ppc64el
  Date: Mon Oct 16 10:10:46 2017
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcLoadAvg: 0.00 0.00 0.57 1/1457 83356
  ProcLocks:
   1: POSIX  ADVISORY  WRITE 1604 00:14:19651 0 EOF
   2: POSIX  ADVISORY  WRITE 2937 00:14:55331 0 EOF
   3: FLOCK  ADVISORY  WRITE 3046 00:14:67623 0 EOF
   4: POSIX  ADVISORY  WRITE 3124 00:14:57398 0 EOF
   5: POSIX  ADVISORY  WRITE 3047 00:14:87068 0 EOF
  ProcSwaps:
   Filename TypeSizeUsedPriority
   /swap.img   file 8388544 0   -1
  ProcVersion: Linux version 4.10.0-37-generic (buildd@bos01-ppc64el-026) (gcc 
version 5.4.0 20160609 (User Name/IBM 5.4.0-6ubuntu1~16.04.4) ) 
#41~16.04.1-User Name SMP Fri Oct 6 22:44:24 UTC 2017
  SourcePackage: linux-hwe
  UpgradeStatus: No upgrade log present (probably fresh install)
  cpu_cores: Number of cores present = 20
  cpu_coreson: Number of cores online = 20
  cpu_smt: SMT is off

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1723914/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp