← Back to team overview

kernel-packages team mailing list archive

[Bug 1431473] Re: kvm_intel (nested) module will not load [Input/output error]

 

Thanks Oleg. I guess it being canonistack we probably can assume Precise
on the host. Based on that assumption I also did some tests. And there
found that it is indeed a combination of host kernel / guest kernel
which causes this. Looking at the kernel code there are many places that
can actually exit with -EIO (sadly all without giving any hint about the
specific mismatch that is causing the failure). Those mostly seem to be
concerned with checking MSRs about correct configuration. So the cpuid
flags may be different but at the same time could be just fluke. There
should be ways to influence those in libvirt but now I think this may
not help.

So my finding on the same Hashwell/Sharbay system:
- host 3.2: guest 3.2: ok
- host 3.2: guest 3.16: not ok
- host 3.13: guest: 3.16: ok

So this seems to be some mismatch in what the hosts kvm passes into the
L1 guests vmx msr which in turn the L1 kvm module validates on load. But
since I have now a setup combination that triggers the issue I can
prepare a more verbose kvm-intel module to try locally.

-- 
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/1431473

Title:
  kvm_intel (nested) module will not load [Input/output error]

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Utopic:
  Confirmed
Status in linux source package in Vivid:
  Confirmed

Bug description:
  I have 2 different systems, both are kvm instances themselves, both running vivid.
  One of them has /dev/kvm and kvm working fine (well, fine-ish bug 1413540).
  The other will not load the kvm_intel module.

  
  === system 1 ===
  $ sudo kvm-ok
  INFO: /dev/kvm does not exist
  HINT:   sudo modprobe kvm_intel
  INFO: Your CPU supports KVM extensions
  KVM acceleration can be used

  $ cat /proc/cpuinfo 
  processor	: 0
  vendor_id	: GenuineIntel
  cpu family	: 6
  model		: 15
  model name	: Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
  stepping	: 11
  microcode	: 0x1
  cpu MHz		: 2400.084
  cache size	: 4096 KB
  physical id	: 0
  siblings	: 1
  core id		: 0
  cpu cores	: 1
  apicid		: 0
  initial apicid	: 0
  fpu		: yes
  fpu_exception	: yes
  cpuid level	: 10
  wp		: yes
  flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc rep_good nopl pni vmx ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm
  bugs		:
  bogomips	: 4800.16
  clflush size	: 64
  cache_alignment	: 64
  address sizes	: 40 bits physical, 48 bits virtual
  power management:

  $ ls -l /dev/kvm
  ls: cannot access /dev/kvm: No such file or directory

  $ sudo modprobe kvm_intel
  modprobe: ERROR: could not insert 'kvm_intel': Input/output error

  
  === system 2 ===
  $ sudo kvm-ok
  INFO: /dev/kvm exists
  KVM acceleration can be used

  $ cat /proc/cpuinfo 
  processor	: 0
  vendor_id	: GenuineIntel
  cpu family	: 6
  model		: 42
  model name	: Intel Xeon E312xx (Sandy Bridge)
  stepping	: 1
  microcode	: 0x1
  cpu MHz		: 1995.191
  cache size	: 4096 KB
  physical id	: 0
  siblings	: 1
  core id		: 0
  cpu cores	: 1
  apicid		: 0
  initial apicid	: 0
  fpu		: yes
  fpu_exception	: yes
  cpuid level	: 13
  wp		: yes
  flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm vnmi ept xsaveopt
  bugs		:
  bogomips	: 3990.38
  clflush size	: 64
  cache_alignment	: 64
  address sizes	: 40 bits physical, 48 bits virtual
  power management:

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: linux-image-3.19.0-7-generic 3.19.0-7.7
  ProcVersionSignature: User Name 3.19.0-7.7-generic 3.19.0
  Uname: Linux 3.19.0-7-generic x86_64
  AlsaDevices:
   total 0
   crw-rw---- 1 root audio 116,  1 Mar 12 17:07 seq
   crw-rw---- 1 root audio 116, 33 Mar 12 17:07 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.16.2-0ubuntu1
  Architecture: amd64
  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:
  CRDA: Error: [Errno 2] No such file or directory: 'iw'
  Date: Thu Mar 12 17:12:26 2015
  Ec2AMI: ami-00000c86
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: aki-00000548
  Ec2Ramdisk: ari-00000548
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd 
   Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: OpenStack Foundation OpenStack Nova
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-7-generic root=LABEL=cloudimg-rootfs ro init=/lib/systemd/systemd console=tty1 console=ttyS0
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 01/01/2007
  dmi.bios.vendor: Bochs
  dmi.bios.version: Bochs
  dmi.chassis.type: 1
  dmi.chassis.vendor: Bochs
  dmi.modalias: dmi:bvnBochs:bvrBochs:bd01/01/2007:svnOpenStackFoundation:pnOpenStackNova:pvr2013.1.5:cvnBochs:ct1:cvr:
  dmi.product.name: OpenStack Nova
  dmi.product.version: 2013.1.5
  dmi.sys.vendor: OpenStack Foundation

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


References