public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Nix <nix@esperi.org.uk>
Cc: kvm@vger.kernel.org,
	Linux-Kernel-Mailing-List <linux-kernel@vger.kernel.org>,
	Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: 2.6.31.5 x86-64 KVM: 'emulation failed (pagetable) rip 7fb49335da7b 66 0f 7f 07'
Date: Wed, 02 Dec 2009 15:25:16 +0200	[thread overview]
Message-ID: <4B166ABC.9040004@redhat.com> (raw)
In-Reply-To: <4B1283F5.5060204@redhat.com>

On 11/29/2009 04:23 PM, Avi Kivity wrote:
> On 11/29/2009 03:48 PM, Nix wrote:
>> On 29 Nov 2009, Avi Kivity uttered the following:
>>> 66 0f 7f 07              movdqa %xmm0,(%rdi)
>>>
>>> which we don't emulate.
>> x86-64 glibc 2.10 memset(), perhaps? On SSE-capable platforms that does
>> a whole bunch of
>>
>> L(SSE0QB):  movdqa %xmm0,-0xb0(%rdi)
>> L(SSE0QA):  movdqa %xmm0,-0xa0(%rdi)
>> L(SSE0Q9):  movdqa %xmm0,-0x90(%rdi)
>> L(SSE0Q8):  movdqa %xmm0,-0x80(%rdi)
>> L(SSE0Q7):  movdqa %xmm0,-0x70(%rdi)
>> L(SSE0Q6):  movdqa %xmm0,-0x60(%rdi)
>> L(SSE0Q5):  movdqa %xmm0,-0x50(%rdi)
>> L(SSE0Q4):  movdqa %xmm0,-0x40(%rdi)
>> L(SSE0Q3):  movdqa %xmm0,-0x30(%rdi)
>> L(SSE0Q2):  movdqa %xmm0,-0x20(%rdi)
>> L(SSE0Q1):  movdqa %xmm0,-0x10(%rdi)
>> L(SSE0Q0):  retq
>>
>> (multiple blocks of this, catering for alignment, I guess)
>>
>> and x86-64 is always SSE-capable.
>
> Most likely, either this or something similar is called on a userspace 
> device driver.  Can you check if this is triggered by starting X?
>
> If so, we'll have to emulate this instruction, which will be a bitch.
>

Not just in the emulator, also in the userspace interface.  We only 
support up to 8 bytes mmio.

Our options in fixing this are:

- extend mmio support to 16 (32? more?) bytes, require new kernel and 
new userspace
- use coalesced_mmio for this
    - if the mmio happens for a non coalesced mmio region, we flush 
immediately
    - what if userspace doesn't support coalesced mmio? (unlikely these 
days)
    - doesn't work for reads (unlikely for 16 byte accesses?)

-- 
error compiling committee.c: too many arguments to function


      parent reply	other threads:[~2009-12-02 13:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-27 21:56 2.6.31.5 x86-64 KVM: 'emulation failed (pagetable) rip 7fb49335da7b 66 0f 7f 07' Nix
2009-11-29 10:43 ` Avi Kivity
2009-11-29 13:48   ` Nix
2009-11-29 14:23     ` Avi Kivity
2009-11-29 23:31       ` Nix
2009-11-30  8:15         ` Avi Kivity
2009-11-30 12:05         ` Alejandro Riveira Fernández
2009-11-30 21:40           ` Nix
2009-12-01  9:59             ` Avi Kivity
2009-12-01 10:12               ` Avi Kivity
2009-12-02 13:25       ` Avi Kivity [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=4B166ABC.9040004@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=nix@esperi.org.uk \
    /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