From: Wanpeng Li <kernellwp@gmail.com>
To: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: kvm <kvm@vger.kernel.org>, Paolo Bonzini <pbonzini@redhat.com>,
P J P <ppandit@redhat.com>
Subject: Re: [kvm-unit-tests PATCH 0/2] x86: Testcase for wrong TF handling in syscall/sysret
Date: Thu, 27 Jul 2017 20:05:55 +0800 [thread overview]
Message-ID: <CANRm+Cwx59GBoyWzYVB0vzq2LhLtYdM7OWKcTO5Vwz-nWmc0Lw@mail.gmail.com> (raw)
In-Reply-To: <20170622152707.18399-1-rkrcmar@redhat.com>
2017-06-22 23:27 GMT+08:00 Radim Krčmář <rkrcmar@redhat.com>:
> Patch 1 creates a new testcase executable, and patch 2 tests the bug.
>
> Paolo Bonzini (2):
> x86: move syscall MSR testcase to separate test
> x86: add testcase for syscall/sysret TF handling
./x86-run x86/syscall.flat
qemu-system-i386 -nodefaults -device pc-testdev -device
isa-debug-exit,iobase=0xf4,iosize=0x4 --enable-kvm -vnc none -serial
stdio -device pci-testdev -machine accel=kvm -kernel x86/syscall.flat
enabling apic
PASS: MSR_*STAR eager loading
Unhandled exception 6 #UD at ip 000000000040036e
error_code=0000 rflags=00010046 cs=0000003b
rax=0000000000000146 rcx=0000000000400365 rdx=0000000000000001
rbx=00000000c0000080
rbp=000000000044df80 rsi=0000000000400372 rdi=0000000000000001
r8=000000000040c70c r9=00000000000003f8 r10=0000000000000002
r11=0000000000000046
r12=00000000c0000081 r13=00000097cfdff1ab r14=00000097d130aad0
r15=0000000000000002
cr0=0000000080000011 cr2=0000000000000000 cr3=0000000000409000
cr4=0000000000000020
cr8=0000000000000000
STACK: @40036e 4002a2
I can encounter this w/ -cpu host or w/o -cpu host for both
qemu-system-i386 and qemu-system-x86_64.
Regards,
Wanpeng Li
>
> lib/x86/processor.h | 4 ++
> x86/Makefile.x86_64 | 1 +
> x86/msr.c | 19 ---------
> x86/syscall.c | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> x86/unittests.cfg | 4 ++
> 5 files changed, 117 insertions(+), 19 deletions(-)
> create mode 100644 x86/syscall.c
>
> --
> 2.13.1
>
next prev parent reply other threads:[~2017-07-27 12:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-22 15:27 [kvm-unit-tests PATCH 0/2] x86: Testcase for wrong TF handling in syscall/sysret Radim Krčmář
2017-06-22 15:27 ` [kvm-unit-tests PATCH 1/2] x86: move syscall MSR testcase to separate test Radim Krčmář
2017-06-22 15:27 ` [kvm-unit-tests PATCH 2/2] x86: add testcase for syscall/sysret TF handling Radim Krčmář
2017-07-27 12:05 ` Wanpeng Li [this message]
2017-07-27 13:09 ` [kvm-unit-tests PATCH 0/2] x86: Testcase for wrong TF handling in syscall/sysret Paolo Bonzini
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=CANRm+Cwx59GBoyWzYVB0vzq2LhLtYdM7OWKcTO5Vwz-nWmc0Lw@mail.gmail.com \
--to=kernellwp@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=ppandit@redhat.com \
--cc=rkrcmar@redhat.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.