Received: from eggs.gnu.org ([2001:4830:134:3::10]:38484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpbHX-0004hY-0r for qemu-devel@nongnu.org; Thu, 20 Jun 2013 05:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpbHO-00045k-BS for qemu-devel@nongnu.org; Thu, 20 Jun 2013 05:35:54 -0400 Received: from indium.canonical.com ([91.189.90.7]:55882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpbHN-00045W-J9 for qemu-devel@nongnu.org; Thu, 20 Jun 2013 05:35:46 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1UpbHM-0001dE-QP for ; Thu, 20 Jun 2013 09:35:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id C0BE02E8048 for ; Thu, 20 Jun 2013 09:35:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 20 Jun 2013 09:26:04 -0000 From: Kashyap Chamarthy Sender: bounces@canonical.com References: <20120504033328.15007.1323.malonedeb@soybean.canonical.com> Message-Id: <20130620092604.19482.88156.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] =?utf-8?q?=5BBug_994378=5D_Re=3A_Nested-virt=29L1_?= =?utf-8?q?=28kvm_on_kvm=29guest_panic_with_parameter_=E2=80=9C-cpu?= =?utf-8?q?_host=E2=80=9D_in_qemu_command_line=2E?= Reply-To: Bug 994378 <994378@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Short: I can't reproduce here with L1 guest having has host-passthrough for CPU. Long: =3D=3D=3D=3D=3D Version Info: ------------- On Physical host: ~~~~~~~~~~~~~~~~~ $ uname -r; rpm -q libvirt-daemon-kvm qemu 3.10.0-0.rc2.git1.2.fc20.x86_64 qemu-1.4.2-3.fc19.x86_64 libvirt-daemon-kvm-1.0.5.2-1.fc19.x86_64 libguestfs-1.22.3-1.fc19.x86_64 On L1: ~~~~~~ $ uname -r; rpm -q libvirt-daemon-kvm qemu 3.10.0-0.rc3.git0.2.fc20.x86_64 libvirt-daemon-kvm-1.0.5.1-1.fc19.x86_64 qemu-1.4.2-2.fc19.x86_64 [root@dhcp47-209 ~]# = L1 guest CLI: ------------- [root@bare-metal ~]# ps -ef | grep qemu qemu 7281 1 67 04:57 ? 00:00:10 /usr/bin/qemu-system-x86_64= -machine accel=3Dkvm -name regular-guest -S -machine pc-i440fx-1.4,accel= =3Dkvm,usb=3Doff -cpu host -m 10240 -smp 4,sockets=3D4,cores=3D1,threads=3D= 1 -uuid 4ed9ac0b-7f72-dfcf-68b3-e6fe2ac588b2 -nographic -no-user-config -no= defaults -chardev socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/regu= lar-guest.monitor,server,nowait -mon chardev=3Dcharmonitor,id=3Dmonitor,mod= e=3Dcontrol -rtc base=3Dutc -no-shutdown -device piix3-usb-uhci,id=3Dusb,bu= s=3Dpci.0,addr=3D0x1.0x2 -drive file=3D/home/test/vmimages/regular-guest.qc= ow2,if=3Dnone,id=3Ddrive-virtio-disk0,format=3Dqcow2,cache=3Dnone -device v= irtio-blk-pci,scsi=3Doff,bus=3Dpci.0,addr=3D0x4,drive=3Ddrive-virtio-disk0,= id=3Dvirtio-disk0,bootindex=3D1 -netdev tap,fd=3D23,id=3Dhostnet0,vhost=3Do= n,vhostfd=3D24 -device virtio-net-pci,netdev=3Dhostnet0,id=3Dnet0,mac=3D52:= 54:00:80:c1:34,bus=3Dpci.0,addr=3D0x3 -chardev pty,id=3Dcharserial0 -device= isa-serial,chardev=3Dcharserial0,id=3Dserial0 -device usb-tablet,id=3Dinpu= t0 -device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x5 L2 guest CLI: ------------- [root@regular-guest ~]# ps -ef | grep -i qemu qemu 1138 1 88 05:18 ? 00:00:07 /usr/bin/qemu-system-x86_64= -machine accel=3Dkvm -name nguest-01 -S -machine pc-i440fx-1.4,accel=3Dkvm= ,usb=3Doff -m 2048 -smp 2,sockets=3D2,cores=3D1,threads=3D1 -uuid b47c5cbb-= b320-ce9d-c595-4e083b0e465d -nographic -no-user-config -nodefaults -chardev= socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/nguest-01.monitor,ser= ver,nowait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -rtc base= =3Dutc -no-shutdown -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.= 0x2 -drive file=3D/home/test/vmimages/nguest-01.qcow2,if=3Dnone,id=3Ddrive-= virtio-disk0,format=3Dqcow2,cache=3Dnone -device virtio-blk-pci,scsi=3Doff,= bus=3Dpci.0,addr=3D0x4,drive=3Ddrive-virtio-disk0,id=3Dvirtio-disk0,bootind= ex=3D1 -netdev tap,fd=3D23,id=3Dhostnet0,vhost=3Don,vhostfd=3D24 -device vi= rtio-net-pci,netdev=3Dhostnet0,id=3Dnet0,mac=3D52:54:00:be:d5:8e,bus=3Dpci.= 0,addr=3D0x3 -chardev pty,id=3Dcharserial0 -device isa-serial,chardev=3Dcha= rserial0,id=3Dserial0 -device usb-tablet,id=3Dinput0 -device virtio-balloon= -pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x5 A search for string 'error' in logs doesn't turn up anything: [root@nguest-01 ~]# grep -i error /var/log/boot.log = [root@nguest-01 ~]# grep -i error /var/log/messages [root@nguest-01 ~]# = Yongjie, can you please re-try? -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/994378 Title: Nested-virt)L1 (kvm on kvm)guest panic with parameter =E2=80=9C-cpu host= =E2=80=9D in qemu command line. Status in QEMU: New Bug description: Environment: ------------ Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):Linux kvm.git Commit:19853301ef3289bda2d5264c1093e74efddaeab9 qemu-kvm Commit:69abebf20280152da8fa7c418a819ae51e862231 Host Kernel Version:3.4.0-rc3 Hardware:WSM-EP, Romley-EP = Bug detailed description: -------------------------- (KVM on KVM) L1 guest panic when starting the L1 guest with =E2=80=9C-cpu= host=E2=80=9D parameter in qemu command line. Note: 1. when creating guest with =E2=80=9C-cpu qemu64,+vmx=E2=80=9D, L1 guest = and L2 guest can boot up. = 2. This should be a qemu-kvm bug. using '-cpu host' parameter, the follow= ing is the result. Kvm + qemu-kvm =3Dresult 19853301 + 69abebf2 =3D bad 19853301 + 44755ea3 =3D good 3. when booting up the guest with the good commit of 19853301 + 44755ea3= , you can see some error info, but nested virt works fine. (L1 and L2 guest can boot up.) =E2=80=9Cerror: feature "i64" not available in set error: bad option value [extfeature_edx =3D i64 xd syscall]=E2=80=9D = some logs = [root@vt-snb9 x86_64-softmmu]# ./qemu-system-x86_64 -m 2048 -net nic,mode= l=3Drtl8139 -net tap,script=3D/etc/kvm/qemu-ifup -hda /root/nested-kvm.qcow= -cpu host error: feature "i64" not available in set error: bad option value [extfeature_edx =3D i64 xd syscall] error: feature "i64" not available in set error: bad option value [extfeature_edx =3D i64 xd syscall] error: feature "i64" not available in set error: bad option value [extfeature_edx =3D i64 syscall xd] error: feature "i64" not available in set error: bad option value [extfeature_edx =3D i64 syscall xd] VNC server running on `::1:5900' Reproduce steps: ---------------- 1.start up a host with kvm (commit: 19853301) 2.rmmod kvm_intel 3.modprobe kvm_intel nested=3D1 4.qemu-system-x86_64 -m 2048 -hda L1-kvm.img -cpu host Current result: ---------------- L1 guest panic. Expected result: ---------------- L1 guest and L2 guest boot up correctly. Basic root-causing log: ---------------------- To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/994378/+subscriptions