qemu-kvm in zesty proposed failed with KVM_GET_DEVICE_ATTR failed error

Bug #1734326 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
qemu-kvm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This is a potential regression for ARM64 qemu-kvm package (1:2.8+dfsg-3ubuntu2.8).

With qemu-kvm updated from 1:2.8+dfsg-3ubuntu2.7, the kvm-unit-test in our test suite will fail with:
  Unexpected error in kvm_device_access() at /build/qemu-2b6oyQ/qemu-2.8+dfsg/kvm-all.c:2151:
  qemu-system-aarch64: KVM_GET_DEVICE_ATTR failed: Group 6 attr 0x000000000000c664: No such device or address
  QEMU Aborted

Steps:
 1. Deploy a ARM64 zesty system
 2. git clone https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
 3. cd kvm-unit-tests
 4. ./configure; make
 5. sudo ./run_tests -v
 6. Enable proposed and upgrade the qemu-kvm package, repeat step 5

$ dpkg -l | grep qemu
ii ipxe-qemu 1.0.0+git-20150424.a25a16d-1ubuntu2 all PXE boot firmware - ROM images for qemu
ii qemu-block-extra:arm64 1:2.8+dfsg-3ubuntu2.7 arm64 extra block backend modules for qemu-system and qemu-utils
ii qemu-kvm 1:2.8+dfsg-3ubuntu2.8 arm64 QEMU Full virtualization
ii qemu-system-arm 1:2.8+dfsg-3ubuntu2.8 arm64 QEMU full system emulation binaries (arm)
ii qemu-system-common 1:2.8+dfsg-3ubuntu2.7 arm64 QEMU full system emulation binaries (common files)
ii qemu-utils 1:2.8+dfsg-3ubuntu2.7 arm64 QEMU utilities

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: linux-image-4.10.0-40-generic 4.10.0-40.44
ProcVersionSignature: User Name 4.10.0-40.44-generic 4.10.17
Uname: Linux 4.10.0-40-generic aarch64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Nov 24 11:12 seq
 crw-rw---- 1 root audio 116, 33 Nov 24 11:12 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.4-0ubuntu4.8
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CurrentDmesg:

Date: Fri Nov 24 11:26:56 2017
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
MachineType: Cavium ThunderX CRB
PciMultimedia:

ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB:
 0 EFI VGA
 1 astdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.10.0-40-generic root=UUID=c5160401-c147-4329-9683-b946ce7d0d37 ro
RelatedPackageVersions:
 linux-restricted-modules-4.10.0-40-generic N/A
 linux-backports-modules-4.10.0-40-generic N/A
 linux-firmware 1.164.1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/12/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 5.11
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: To be filled by O.E.M.
dmi.board.vendor: To be filled by O.E.M.
dmi.board.version: To be filled by O.E.M.
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 0
dmi.chassis.vendor: Cavium
dmi.chassis.version: To be filled by O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd12/12/2012:svnCavium:pnThunderXCRB:pvrTobefilledbyO.E.M.:rvnTobefilledbyO.E.M.:rnTobefilledbyO.E.M.:rvrTobefilledbyO.E.M.:cvnCavium:ct0:cvrTobefilledbyO.E.M.:
dmi.product.name: ThunderX CRB
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Cavium

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Po-Hsu Lin (cypressyew)
summary: - qemu-kvm in proposed failed with KVM_GET_DEVICE_ATTR failed error
+ qemu-kvm in zesty proposed failed with KVM_GET_DEVICE_ATTR failed error
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This likely is due to the major backport action in bug 1710019.
This SRU is stalled anyway by disagreement of kernel and hwe - so I've asked to cancel it from -proposed and take some time to take a look.

Thanks for the report - it helped to catch that before being released.

Changed in qemu-kvm (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1734326

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

After discussion the offfending change in zesty-proposed will be cancelled.
Once done I'll set this to "Fix Released" (even thou it is the non-release that fixes it).

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Cancelled from proposed, done ...

Changed in qemu-kvm (Ubuntu):
status: Confirmed → 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.