Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-23 Thread Chris J Arges
Ariel,
You can easily use a supported 3.16 kernel on Ubuntu 14.04:
sudo apt-get install --install-recommends linux-generic-lts-utopic

If you have further problems with 3.16 or 3.13 on the distro kernel
please feel free to file a bug:
https://bugs.launchpad.net/ubuntu/+filebug

Hope that helps.
Thanks!
--chris j arges



Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Ariel Zeitlin
Hi, Paolo
We are using a pretty new kernel 3.13.0-43 as part of Ubuntu14.04.

What version would you recommend?
Do we need the upgrade on L0, L1 or both?

Thanks,
Ariel

‏בתאריך יום שישי, 9 בינואר 2015, Paolo Bonzini pbonz...@redhat.com כתב:



 On 09/01/2015 15:08, Ariel Zeitlin wrote:
 
  At the time of the hanging this line is added:
 
  nested_vmx_run: VMCS MSR_{LOAD,STORE} unsupported

 You have to try with a newer kernel.

 Paolo



Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Paolo Bonzini


On 09/01/2015 16:30, Ariel Zeitlin wrote:
 Hi, Paolo
 We are using a pretty new kernel 3.13.0-43 as part of Ubuntu14.04.
 
 What version would you recommend? 

At least 3.16.

3.13 is about a year old, and nested virtualization is a very new feature.

 Do we need the upgrade on L0, L1 or both?

Start with L0, but it may be that you need to upgrade L1 as well.

Paolo



Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Ariel Zeitlin
Thanks, will try that

‏בתאריך יום שישי, 9 בינואר 2015, Paolo Bonzini pbonz...@redhat.com כתב:



 On 09/01/2015 16:30, Ariel Zeitlin wrote:
  Hi, Paolo
  We are using a pretty new kernel 3.13.0-43 as part of Ubuntu14.04.
 
  What version would you recommend?

 At least 3.16.

 3.13 is about a year old, and nested virtualization is a very new feature.

  Do we need the upgrade on L0, L1 or both?

 Start with L0, but it may be that you need to upgrade L1 as well.

 Paolo



[Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Ariel Zeitlin
Hi, all
I am trying to use nested virtualization setup and experiencing L2 guest
(Windows) hanging during boot.
I have seen some threads about it, but did not manage to make sense of how
can I work around it.

Would appreciate any guidance for a solution or workaround.

Thanks,
Ariel

Some details are attached.

*L0 logs look like this:*
[117402.803802] kvm [11772]: vcpu0 unhandled rdmsr: 0x345
[117402.823629] kvm_set_msr_common: 54 callbacks suppressed
[117402.823631] kvm [11772]: vcpu0 unhandled wrmsr: 0x680 data 0
[117402.833796] kvm [11772]: vcpu0 unhandled wrmsr: 0x6c0 data 0
[117402.843967] kvm [11772]: vcpu0 unhandled wrmsr: 0x681 data 0
[117402.854106] kvm [11772]: vcpu0 unhandled wrmsr: 0x6c1 data 0
[117402.864272] kvm [11772]: vcpu0 unhandled wrmsr: 0x682 data 0
[117402.874429] kvm [11772]: vcpu0 unhandled wrmsr: 0x6c2 data 0
[117402.884613] kvm [11772]: vcpu0 unhandled wrmsr: 0x683 data 0
[117402.893675] kvm [11772]: vcpu0 unhandled wrmsr: 0x6c3 data 0
[117402.902550] kvm [11772]: vcpu0 unhandled wrmsr: 0x684 data 0
[117402.911442] kvm [11772]: vcpu0 unhandled wrmsr: 0x6c4 data 0

At the time of the hanging this line is added:

nested_vmx_run: VMCS MSR_{LOAD,STORE} unsupported


*L1 logs look like this:*

Jan  9 11:34:43 hpvm---2 kernel: [  217.975781] kvm [2106]: vcpu0 disabled
perfctr wrmsr: 0xc1 data 0x



*The setup details are as follows:*

*L0 - Ubuntu 14.04, kernel 3.13.0-43:*

*CPUID*
Vendor ID: GenuineIntel; CPUID level 13

Intel-specific functions:
Version 000206d7:
Type 0 - Original OEM
Family 6 - Pentium Pro
Model 13 -
Stepping 7
Reserved 8

Extended brand string:Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
CLFLUSH instruction cache line size: 8
Initial APIC ID: 39
Hyper threading siblings: 32

Feature flags bfebfbff:
FPUFloating Point Unit
VMEVirtual 8086 Mode Enhancements
DE Debugging Extensions
PSEPage Size Extensions
TSCTime Stamp Counter
MSRModel Specific Registers
PAEPhysical Address Extension
MCEMachine Check Exception
CX8COMPXCHG8B Instruction
APIC   On-chip Advanced Programmable Interrupt Controller present and
enabled
SEPFast System Call
MTRR   Memory Type Range Registers
PGEPTE Global Flag
MCAMachine Check Architecture
CMOV   Conditional Move and Compare Instructions
FGPAT  Page Attribute Table
PSE-36 36-bit Page Size Extension
CLFSH  CFLUSH instruction
DS Debug store
ACPI   Thermal Monitor and Clock Ctrl
MMXMMX instruction set
FXSR   Fast FP/MMX Streaming SIMD Extensions save/restore
SSEStreaming SIMD Extensions instruction set
SSE2   SSE2 extensions
SS Self Snoop
HT Hyper Threading
TM Thermal monitor
31 reserved

TLB and cache info:
5a: unknown TLB/cache descriptor
03: Data TLB: 4KB pages, 4-way set assoc, 64 entries
76: unknown TLB/cache descriptor
ff: unknown TLB/cache descriptor
b2: unknown TLB/cache descriptor
f0: unknown TLB/cache descriptor
ca: unknown TLB/cache descriptor
Processor serial: 0002-06D7----

*L1 - Ubuntu 14.04, kernel 3.13.0-43*

*CPUID*
CPU 0:
   vendor_id = GenuineIntel
   version information (1/eax):
  processor type  = primary processor (0)
  family  = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom,
AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
  model   = 0xa (10)
  stepping id = 0x1 (1)
  extended family = 0x0 (0)
  extended model  = 0x2 (2)
  (simple synth)  = Intel Core i5-2000 / Core i7-2000 / Mobile Core
i3-2000 / Mobile Core i5-2000 / Mobile Core i7-2000 / Pentium
G500/G600/G800 / Celeron G400/G500/700/800/B800 / Xeon E3-1200 (Sandy
Bridge), 32nm
   miscellaneous (1/ebx):
  process local APIC physical ID = 0x0 (0)
  cpu count  = 0x0 (0)
  CLFLUSH line size  = 0x8 (8)
  brand index= 0x0 (0)
   brand id = 0x00 (0): unknown
   feature information (1/edx):
  x87 FPU on chip= true
  virtual-8086 mode enhancement  = true
  debugging extensions   = true
  page size extensions   = true
  time stamp counter = true
  RDMSR and WRMSR support= true
  physical address extensions= true
  machine check exception= true
  CMPXCHG8B inst.= true
  APIC on chip   = true
  SYSENTER and SYSEXIT   = true
  memory type range registers= true
  PTE global bit = true
  machine check architecture = true
  conditional move/compare instruction   = true
  page attribute table   = true
  page size extension= true
  processor serial number= false
  CLFLUSH instruction= true
  debug store= false
  

Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Paolo Bonzini


On 09/01/2015 15:08, Ariel Zeitlin wrote:
 
 At the time of the hanging this line is added:
 
 nested_vmx_run: VMCS MSR_{LOAD,STORE} unsupported

You have to try with a newer kernel.

Paolo