From: Jan Kiszka <jan.kiszka@web.de>
To: Kashyap Chamarthy <kashyap.cv@gmail.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"Nakajima, Jun" <jun.nakajima@intel.com>,
"Ren, Yongjie" <yongjie.ren@intel.com>
Subject: Re: [nVMX w/ Haswell] KVM unit-tests in L1 - eventinj test fails trying to send NMI
Date: Wed, 26 Jun 2013 08:28:11 +0200 [thread overview]
Message-ID: <51CA89FB.9070503@web.de> (raw)
In-Reply-To: <CAOaxAcauPWC4pnJwhh0Yy3EgDwwscRpEVR+mRJsKCbLL6=AbuQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3487 bytes --]
On 2013-06-05 11:06, Kashyap Chamarthy wrote:
> Adding Jan, Jun, to see if they have any inputs here.
Thanks for the note, it's very helpful! This test actually fails on
older CPUs as well, and I can finally reproduce the issue that Jay also
reported. I'm not able to "cure" it by going back to 3b656cf764^, just
alter the error report. Anyway, a start. Now I just need time to debug it...
Jan
>
> /kashyap
>
> On Tue, Jun 4, 2013 at 6:14 PM, Kashyap Chamarthy <kashyap.cv@gmail.com> wrote:
>> Heya,
>>
>> So, I invoked this in L1 with:
>> =======================
>> [test@foo kvm-unit-tests]$ time qemu-system-x86_64 -enable-kvm -device
>> pc-testdev -serial stdio -nographic -no-user-config -nodefaults
>> -device
>> isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel ./x86/eventinj.flat |
>> tee /var/tmp/eventinj-test.txt
>> enabling apic
>> paging enabled
>> cr0 = 80010011
>> cr3 = 7fff000
>> cr4 = 20
>> Try to divide by 0
>> DE isr running divider is 0
>> Result is 150
>> DE exception: PASS
>> Try int 3
>> BP isr running
>> After int 3
>> BP exception: PASS
>> Try send vec 33 to itself
>> irq1 running
>> After vec 33 to itself
>> vec 33: PASS
>> Try int $33
>> irq1 running
>> After int $33
>> int $33: PASS
>> Try send vec 32 and 33 to itself
>> irq1 running
>> irq0 running
>> After vec 32 and 33 to itself
>> vec 32/33: PASS
>> Try send vec 32 and int $33
>> irq1 running
>> irq0 running
>> After vec 32 and int $33
>> vec 32/int $33: PASS
>> Try send vec 33 and 62 and mask one with TPR
>> irq1 running
>> After 33/62 TPR test
>> TPR: PASS
>> irq0 running
>> Try send NMI to itself
>> After NMI to itself
>> NMI: FAIL
>> Try int 33 with shadowed stack
>> irq1 running
>> After int 33 with shadowed stack
>> int 33 with shadowed stack: PASS
>>
>> summary: 9 tests, 1 failures
>>
>> real 0m0.647s
>> user 0m0.164s
>> sys 0m0.146s
>> [test@foo kvm-unit-tests]$
>> =======================
>>
>> Any hints on further debugging this ?
>>
>>
>> Other info:
>> --------------
>>
>> - L1's qemu-kvm CLI
>> =======================
>> # ps -ef | grep -i qemu
>> qemu 5455 1 94 Jun02 ? 1-07:14:29
>> /usr/bin/qemu-system-x86_64 -machine accel=kvm -name regular-guest -S
>> -machine pc-i440fx-1.4,accel=kvm,usb=off -cpu Haswell,+vmx -m 10240
>> -smp 4,sockets=4,cores=1,threads=1 -uuid
>> 4ed9ac0b-7f72-dfcf-68b3-e6fe2ac588b2 -nographic -no-user-config
>> -nodefaults -chardev
>> socket,id=charmonitor,path=/var/lib/libvirt/qemu/regular-guest.monitor,server,nowait
>> -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc
>> -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
>> -drive file=/home/test/vmimages/regular-guest.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
>> -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
>> -netdev tap,fd=23,id=hostnet0,vhost=on,vhostfd=24 -device
>> virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:80:c1:34,bus=pci.0,addr=0x3
>> -chardev pty,id=charserial0 -device
>> isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0
>> -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
>> root 12255 5419 0 08:41 pts/2 00:00:00 grep --color=auto -i qemu
>> =======================
>>
>> - Setup details --
>> https://github.com/kashyapc/nvmx-haswell/blob/master/SETUP-nVMX.rst
>>
>> /kashyap
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
next prev parent reply other threads:[~2013-06-26 6:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-04 12:44 [nVMX w/ Haswell] KVM unit-tests in L1 - eventinj test fails trying to send NMI Kashyap Chamarthy
2013-06-05 9:06 ` Kashyap Chamarthy
2013-06-26 6:28 ` Jan Kiszka [this message]
2013-06-26 8:03 ` Kashyap Chamarthy
2013-06-26 17:19 ` Jan Kiszka
2013-06-27 9:36 ` Kashyap Chamarthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51CA89FB.9070503@web.de \
--to=jan.kiszka@web.de \
--cc=jun.nakajima@intel.com \
--cc=kashyap.cv@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=yongjie.ren@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.