public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: Lei Wen <adrian.wenl@gmail.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>,
	"kvm\@vger.kernel.org" <kvm@vger.kernel.org>,
	"kvmarm\@lists.cs.columbia.edu" <kvmarm@lists.cs.columbia.edu>
Subject: Re: kvm enable over cortex-a53?
Date: Wed, 04 Jun 2014 10:20:24 +0100	[thread overview]
Message-ID: <87sinlxc87.fsf@approximate.cambridge.arm.com> (raw)
In-Reply-To: <CALZhoSTHSkUbfJFs=v4=ORDWdSp95CyfH8kXf6v2B8WOzF-gVQ@mail.gmail.com> (Lei Wen's message of "Wed, 4 Jun 2014 07:19:42 +0100")

On Wed, Jun 04 2014 at  7:19:42 am BST, Lei Wen <adrian.wenl@gmail.com> wrote:
> On Tue, Jun 3, 2014 at 5:11 PM, Marc Zyngier <marc.zyngier@arm.com> wrote:
>> On Tue, Jun 03 2014 at  3:14:33 am BST, Lei Wen <adrian.wenl@gmail.com> wrote:
>>> Hi Marc,
>>>
>>> On Mon, Jun 2, 2014 at 5:27 PM, Marc Zyngier <marc.zyngier@arm.com> wrote:
>>>> kvmtool tells you where the console lives (it is one of the virtio-mmio
>>>> devices that it prints out when it starts). The address you quote
>>>> (assuming that this is an IPA) doesn't seem to have anything to do with
>>>> anything kvmtool emulates. Pretty sure your kernel is trying to poke at
>>>> some area without parsing the device tree...
>>>
>>> Do you have any suggestion for how to debug it?...
>>
>> I suggest you start with a very simple guest kernel config (only virtio
>> drivers), no additional stuff. My gut feeling is that you have stuff in
>> your 3.10 kernel that shouldn't be there.
>>
>> Your best bet would probably to use a recent tree for your guests.
>
> I see.
> After remove the earlyprintk=uart8250-32bit,0xd4030000 in the kvmtool
> command line, the KVM_EXIT_MMIO message is gone.

Not surprising. Telling the kernel to poke random addresses that are
only relevant to the host is never going to have the effect you seem to
expect.

> But the console is silence afterward, supposing there is something
> wrong in boot the guest kernel.
> Is there some method to access the guest kernel's log buffer?
> Or some other way to output the guest kernel's message with earlyprintk?

If using kvmtool, the method is to use "earlyprintk=uart8250-32bit,0x3f8".

> I see virtio_block is defined in foundation-v8.dts, is it a must to have
> such device node? Shall I map the uart phys register range by
> this node?

No. The host devices are not delevant to the guest at all. The guest
never accesses any physical devices apart from GIC and timers. kvmtool
creates a completely virtual platform that has nothing to do with the
host.

You don't have to touch kvmtool at all, this is a self-contained
platform emulation. If it doesn't work properly, there is only two
options:
- your guest is not configured properly
- the KVM backport to your 3.10 kernel is less than perfect.

Overall, you'd be much better off using a mainline kernel with a model,
get familiar with the tools and configurations, and only then try to
replicate this on your HW.

	M.
-- 
Jazz is not dead. It just smells funny.

  reply	other threads:[~2014-06-04  9:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-02  9:09 kvm enable over cortex-a53? Lei Wen
2014-06-02  9:27 ` Marc Zyngier
2014-06-03  2:14   ` Lei Wen
2014-06-03  9:11     ` Marc Zyngier
2014-06-04  6:19       ` Lei Wen
2014-06-04  9:20         ` Marc Zyngier [this message]
2014-06-05  9:14           ` Lei Wen

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=87sinlxc87.fsf@approximate.cambridge.arm.com \
    --to=marc.zyngier@arm.com \
    --cc=adrian.wenl@gmail.com \
    --cc=christoffer.dall@linaro.org \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    /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