From: liang yan <liangy@hpe.com>
To: Tushar Jagad <tushar.jagad@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Could not boot a guest vm from kvm mode based on APM X-Gene Host and latest qemu
Date: Wed, 16 Sep 2015 17:32:55 -0600 [thread overview]
Message-ID: <55F9FC27.4030707@hpe.com> (raw)
In-Reply-To: <20150916092446.GC4622@pnqlab044.amcc.com>
On 09/16/2015 03:24 AM, Tushar Jagad wrote:
> Hi,
>
> On Mon, Sep 14, 2015 at 06:03:48PM -0600, liang yan wrote:
>> Hello, All,
>>
>> I am trying to enable kvm for a guest vm on an APM X-Gene Host with
>> latest qemu, but could not make it work.
>>
>> The host is APM X-Gene 8-core, Linux kernel is 4.1.0-rc7-1-arm64,
>>
>> Guest kernel is linux-3.16rc3
>>
>> QEMU is latest version
>>
>> Host has these dmesg info
>> [ 2.708259] kvm [1]: GICH base=0x780c0000, GICV base=0x780e0000, IRQ=25
>> [ 2.708327] kvm [1]: timer IRQ30
>> [ 2.708335] kvm [1]: Hyp mode initialized successfully
>>
>> Host has dev/kvm.
>>
>> command-line is
>> aarch64-softmmu/qemu-system-aarch64 -machine virt,kernel_irqchip=off
>> -cpu cortex-a57 -machine accel=kvm -nographic -smp 1 -m 2048 -kernel
>> aarch64-linux-3.16rc3-buildroot.img --append "console=ttyAMA0"
>>
>>
>> when using cpu "cortex-a57", got the error "kvm_init_vcpu failed:
>> Invalid argument"
> Currently, it is not possible to run qemu with a cpu type other than the
> host. I'm currently in the process of adding the necessary support and
> have posted the necessary RFC patches for kvm[1] and qemu[2].
>
> [1] http://comments.gmane.org/gmane.linux.ports.arm.kernel/438744
> [2] https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg02374.html
> --
> Regards,
> Tushar
Hello, Tushar,
Thanks for your reply.
Actually, I already patched your code there, also used the command "-cpu
cortex-a57,bpts=2,wpts=2" ,but did not change the output,
I am trying to check the KVM code from Linux kernel now.
By the way, I am very interested in your work here, feel free to let me
know if there
are anything I can be involved.
Best,
Liang
>> when using cpu "host", got the error "Failed to retrieve host CPU features!"
>>
>> By the way, all the command line works well under "tcg" mode.
>> Anyone has a quick idea? Thanks in advance.
>>
>> Best,
>> Liang
>>
>>
next prev parent reply other threads:[~2015-09-16 23:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 0:03 [Qemu-devel] Could not boot a guest vm from kvm mode based on APM X-Gene Host and latest qemu liang yan
2015-09-16 9:24 ` Tushar Jagad
2015-09-16 23:32 ` liang yan [this message]
2015-09-16 9:55 ` Peter Maydell
2015-09-16 14:34 ` Alex Bennée
2015-09-16 14:34 ` Alex Bennée
2015-09-16 15:29 ` Marc Zyngier
2015-09-16 15:29 ` Marc Zyngier
2015-09-16 17:33 ` Marc Zyngier
2015-09-16 17:33 ` Marc Zyngier
2015-09-17 0:02 ` liang yan
2015-09-17 0:02 ` [Qemu-devel] " liang yan
2015-09-17 7:44 ` Alex Bennée
2015-09-17 7:44 ` Alex Bennée
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=55F9FC27.4030707@hpe.com \
--to=liangy@hpe.com \
--cc=qemu-devel@nongnu.org \
--cc=tushar.jagad@linaro.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 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.