All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Wanpeng Li" <kernellwp@gmail.com>, "Radim Krčmář" <rkrcmar@redhat.com>
Cc: kvm <kvm@vger.kernel.org>, 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 15:09:14 +0200	[thread overview]
Message-ID: <2a9a7ccb-4d60-78dc-177b-c7953612b64c@redhat.com> (raw)
In-Reply-To: <CANRm+Cwx59GBoyWzYVB0vzq2LhLtYdM7OWKcTO5Vwz-nWmc0Lw@mail.gmail.com>

On 27/07/2017 14:05, Wanpeng Li wrote:
> 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.

Correct.  From x86/unittests.cfg:

[syscall]
file = syscall.flat
extra_params = -cpu Opteron_G1,vendor=AuthenticAMD

Paolo

      reply	other threads:[~2017-07-27 13:09 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 ` [kvm-unit-tests PATCH 0/2] x86: Testcase for wrong TF handling in syscall/sysret Wanpeng Li
2017-07-27 13:09   ` Paolo Bonzini [this message]

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=2a9a7ccb-4d60-78dc-177b-c7953612b64c@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kernellwp@gmail.com \
    --cc=kvm@vger.kernel.org \
    --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.