public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Avi Kivity <avi@qumranet.com>
Cc: kvm@vger.kernel.org
Subject: Re: lapic & npt
Date: Fri, 06 Jun 2008 16:45:22 +0200	[thread overview]
Message-ID: <48494D82.4030803@redhat.com> (raw)
In-Reply-To: <4846BFE0.8070507@qumranet.com>

Avi Kivity wrote:
> Gerd Hoffmann wrote:
>>   Hi,
>>
>> I've just noticed that xenner doesn't work for 64bit xen guest kernels
>> on my new shiny barcelona box.  The VM crashes when trying to access the
>> lapic.  lapic setup is done before idt setup, register dump looks like
>> init state, thus it most likely is a triple fault resetting the vcpu.
>> Turning off npt fixes it.
>>
>> xenner maps the lapic to ffff820000000000 (64bit guests) or fe900000
>> (32bit guests).  32bit works fine even with npt enabled.
>>
>> host kernel is fedora 9 with kvm-69 modules.
>>
>> ideas anyone?
> 
> Turn on logging in lapic.c.  See if something turns up.
> 
> If not, the page tables are probably set up incorrectly, but in a way
> that kvm doesn't notice.

Figured meanwhile the instruction accessing the lapic register somehow
beames me into my gpf handler.  With a quite strange rsp value.  Hmm.
To be analyzed further after kvm forum I guess, unless someone has a
bright idea ...

cheers,
  Gerd

-- 
http://kraxel.fedorapeople.org/xenner/

  reply	other threads:[~2008-06-06 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04 16:11 lapic & npt Gerd Hoffmann
2008-06-04 16:16 ` Avi Kivity
2008-06-06 14:45   ` Gerd Hoffmann [this message]
2008-06-06 16:30     ` Avi Kivity
2008-06-27 14:42       ` Gerd Hoffmann
2008-06-30 10:21   ` Gerd Hoffmann
2008-06-04 18:56 ` Vringfd Dong, Eddie

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=48494D82.4030803@redhat.com \
    --to=kraxel@redhat.com \
    --cc=avi@qumranet.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