Bug 1047432
| Summary: | unittest pmu sieve rmap_chain failed on host RHEL.7.0 | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | xhan | |
| Component: | qemu-kvm | Assignee: | Marcelo Tosatti <mtosatti> | |
| Status: | CLOSED WORKSFORME | QA Contact: | Virtualization Bugs <virt-bugs> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 7.0 | CC: | acathrow, hhuang, juzhang, michen, mtosatti, virt-maint, xhan | |
| Target Milestone: | rc | Keywords: | Reopened | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1071195 (view as bug list) | Environment: | ||
| Last Closed: | 2014-04-23 22:12:58 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1071195 | |||
the unittest is from the link: git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests Can you please execute the test as described by line 18 of the README file? https://git.kernel.org/cgit/virt/kvm/kvm-unit-tests.git/tree/README (In reply to Marcelo Tosatti from comment #3) > Can you please execute the test as described by line 18 of the README file? > > https://git.kernel.org/cgit/virt/kvm/kvm-unit-tests.git/tree/README Using qemu (supported since qemu 1.3): qemu-system-x86_64 -enable-kvm -device pc-testdev -serial stdio -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel ./x86/msr.flat Do you mean test this with upstream qemu? (In reply to xhan from comment #4) > (In reply to Marcelo Tosatti from comment #3) > > Can you please execute the test as described by line 18 of the README file? > > > > https://git.kernel.org/cgit/virt/kvm/kvm-unit-tests.git/tree/README > > Using qemu (supported since qemu 1.3): > qemu-system-x86_64 -enable-kvm -device pc-testdev -serial stdio -device > isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel ./x86/msr.flat > > Do you mean test this with upstream qemu? No, i mean use that qemu-kvm parameter list instead of the parameter list of section "Steps to Reproduce" of comment #1. But still use the qemu-kvm binary from RHEL7. sieve.flat and rmap_chain.flat cases passed. pmu test failed: qemu-kvm -enable-kvm -device pc-testdev -serial stdio -kernel x86/pmu.flat error returned: unhandled excecption 13 packages version: qemu-kvm-rhev-1.5.3-34.el7.x86_64 Should use -cpu host. Test with -cpu host for pmu case still failed. qemu-kvm -enable-kvm -device pc-testdev -serial stdio -kernel pmu.flat -cpu host VNC server running on `::1:5900' enabling apic paging enabled cr0 = 80010011 cr3 = 7fff000 cr4 = 20 PMU version: 178 GP counters: 15 GP counter width: 6 Mask length: 0 Fixed counters: 31 Fixed counter width: 223 unhandled excecption 13 unhandled excecption 13 (In reply to xhan from comment #8) > Test with -cpu host for pmu case still failed. > > qemu-kvm -enable-kvm -device pc-testdev -serial stdio -kernel pmu.flat -cpu > host > VNC server running on `::1:5900' > enabling apic > paging enabled > cr0 = 80010011 > cr3 = 7fff000 > cr4 = 20 > PMU version: 178 > GP counters: 15 > GP counter width: 6 > Mask length: 0 > Fixed counters: 31 > Fixed counter width: 223 > unhandled excecption 13 > unhandled excecption 13 Works for me with the following command line: qemu-system-x86_64 -enable-kvm -device pc-testdev -serial stdio -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel ./x86/pmu.flat -cpu host |
Description of problem: Run unittest on RHEL.7.0, these cases failed. pmu sieve rmap_chain Version-Release number of selected component (if applicable): qemu-kvm-rhev-1.5.3-30.el7.x86_64 kernel-3.10.0-64.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Download kvm-unit-unittest and compile 2. run pmu case qemu \ -name 'virt-tests-vm1' \ -sandbox off \ -M pc-q35-rhel7.0.0 \ -nodefaults \ -vga qxl \ -global qxl-vga.vram_size=33554432 \ -device intel-hda,bus=pcie.0,addr=02 \ -device hda-duplex \ -monitor stdio \ -chardev socket,id=serial_id_serial0,path=/tmp/serial-serial0-20131228-090906-YaSVBTPT,server,nowait \ -device isa-serial,chardev=serial_id_serial0 \ -device virtio-serial-pci,id=virtio_serial_pci0,bus=pcie.0,addr=03 \ -chardev socket,id=devvs,path=/tmp/virtio_port-vs-20131228-090906-YaSVBTPT,server,nowait \ -device virtserialport,chardev=devvs,name=vs,id=vs,bus=virtio_serial_pci0.0 \ -chardev socket,id=seabioslog_id_20131228-090906-YaSVBTPT,path=/tmp/seabios-20131228-090906-YaSVBTPT,server,nowait \ -device isa-debugcon,chardev=seabioslog_id_20131228-090906-YaSVBTPT,iobase=0x402 \ -device nec-usb-xhci,id=usb1,bus=pcie.0,addr=04 \ -drive id=drive_image1,if=none,cache=unsafe,snapshot=off,aio=native,file=RHEL-Server-7.0-64-virtio.qcow2 \ -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=1,bus=pcie.0,addr=05 \ -device virtio-net-pci,mac=9a:13:14:15:16:17,id=idtymjqp,netdev=idDQIWEy,bus=pcie.0,addr=06 \ -netdev tap,id=idDQIWEy,vhost=on,script= \ -m 4096 \ -smp 2,maxcpus=2,cores=1,threads=1,sockets=2 \ -cpu host \ -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \ -kernel '/home/manual_test/latest_unittests/unittests/pmu.flat' \ -spice port=3000,password=123456,addr=0,tls-port=3200,x509-dir=/tmp/spice_x509d,tls-channel=main,tls-channel=inputs,image-compression=auto_glz,zlib-glz-wan-compression=auto,streaming-video=all,agent-mouse=on,playback-compression=on,ipv4 \ -device pc-testdev \ -device isa-debug-exit,iobase=0xf4,iosize=0x04 \ -rtc base=utc,clock=host,driftfix=slew \ -boot order=cdn,once=c,menu=off \ -no-kvm-pit-reinjection \ -enable-kvm 3. error occurs: KVM internal error. Suberror: 1 emulation failure EAX=0000000d EBX=0000b79c ECX=00009caa EDX=000341f2 ESI=00000001 EDI=000041f0 EBP=0000ffb7 ESP=00000066 EIP=00000000 EFL=00017f97 [DOS-APC] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =b714 000b7140 0000ffff 00009300 CS =b714 000b7140 0000ffff 00009b00 SS =0000 00000000 0000ffff 00009300 DS =88aa 00088aa0 0000ffff 00009300 FS =0000 00000000 0000ffff 00009300 GS =0000 00000000 0000ffff 00009300 LDT=0000 00000000 0000ffff 00008200 TR =0000 00000000 0000ffff 00008b00 GDT= 00000000 0000ffff IDT= 00000000 0000ffff CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff4ff0 DR7=0000000000000400 EFER=0000000000000000 Code=<00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4. run sieve case replace the command line with "-kernel '/home/manual_test/latest_unittests/unittests/sieve.flat' \" error: KVM internal error. Suberror: 1 emulation failure EAX=000000b4 EBX=00001cf3 ECX=00000101 EDX=00020000 ESI=000000d8 EDI=00000050 EBP=00000000 ESP=000002b4 EIP=00008727 EFL=00010482 [D-S----] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =ffff 000ffff0 0000ffff 00009300 CS =9d09 0009d090 0000ffff 00009b00 SS =0000 00000000 0000ffff 00009300 DS =ffff 000ffff0 0000ffff 00009300 FS =0000 00000000 0000ffff 00009300 GS =0000 00000000 0000ffff 00009300 LDT=0000 00000000 0000ffff 00008200 TR =0000 00000000 0000ffff 00008b00 GDT= 00000000 0000ffff IDT= 00000000 0000ffff CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000000 Code=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5. run rmap_chain case replace the command line: -kernel '/home/manual_test/latest_unittests/unittests/rmap_chain.flat' error: KVM internal error. Suberror: 1 emulation failure EAX=0000a96d EBX=00000000 ECX=00000806 EDX=000306a9 ESI=00000075 EDI=00000000 EBP=0000000c ESP=00002c54 EIP=0000ffff EFL=00010006 [-----P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =ffff 000ffff0 0000ffff 00009300 CS =9599 00095990 0000ffff 00009b00 SS =0000 00000000 0000ffff 00009300 DS =0000 00000000 0000ffff 00009300 FS =0000 00000000 0000ffff 00009300 GS =0000 00000000 0000ffff 00009300 LDT=0000 00000000 0000ffff 00008200 TR =0000 00000000 0000ffff 00008b00 GDT= 00000000 0000ffff IDT= 00000000 0000ffff CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000000 Code=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Actual results: error occurs when doing the unittests Expected results: unitttest should return successfully. Additional info: