kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
To: Avi Kivity <avi@redhat.com>
Cc: kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH] x86 emulator: Add decode entries for 0x05 opcode
Date: Mon, 20 Oct 2008 10:52:43 +0200	[thread overview]
Message-ID: <20081020105243.4662c636@frecb000711> (raw)
In-Reply-To: <48FC458B.3010005@redhat.com>

On Mon, 20 Oct 2008 10:47:07 +0200
Avi Kivity <avi@redhat.com> wrote:

> Guillaume Thouvenin wrote:
> > I added an "add imm" test case in user/test/x86/emulator.c but kvmctl
> > doesn't start the test. I use the following command:
> >
> > # ./user/kvmctl ./user/test/x86/emulator.flat
> >
> >   
> 
> For 64-bit tests you need the bootstrap code:
> 
> ./user/kvmctl ./user/test/x86/bootstrap ./user/test/x86/emulator.flat

Yes right, I've tested that too and it produced an error:

kvm_run: failed entry, reason 7
rax 0000000000004000 rbx 0000000000000000 rcx 0000000000000080 rdx 0000000000000600
rsi 0000000000000000 rdi 0000000000000000 rsp 000000000000fffe rbp 0000000000000000
r8  0000000000000000 r9  0000000000000000 r10 0000000000000000 r11 0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000
rip 000000000001002a rflags 00033046
cs f000 (000f0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (fffbd000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)
gdt 0/0
idt 0/ffff
cr0 60000010 cr2 0 cr3 4000 cr4 20 cr8 0 efer 0

And I got the following message:

kvm: 15727: cpu0 unhandled rdmsr: 0x80

 
> but emulator.c is only able to test instructions that access memory. For 
> add acc, imm you need realmode.c.

Thanks for your help,

Regards,
Guillaume

  reply	other threads:[~2008-10-20  8:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-20  6:52 [PATCH] x86 emulator: Add decode entries for 0x05 opcode Guillaume Thouvenin
2008-10-20  7:21 ` Avi Kivity
2008-10-20  7:31   ` Guillaume Thouvenin
2008-10-20  8:42   ` Guillaume Thouvenin
2008-10-20  8:47     ` Avi Kivity
2008-10-20  8:52       ` Guillaume Thouvenin [this message]
2008-10-20  9:04         ` Avi Kivity
2008-10-20 11:11   ` [PATCH] x86 emulator: Add decode entries for 0x04 and 0x05 opcodes Guillaume Thouvenin
2008-10-22 10:02     ` Avi Kivity

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=20081020105243.4662c636@frecb000711 \
    --to=guillaume.thouvenin@ext.bull.net \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).