From: "Alex Bennée" <alex.bennee@linaro.org>
To: tugouxp <13824125580@163.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] did the qemu can emulate the whole system with the processor that without support the "virtulization and kvm"?
Date: Fri, 21 Dec 2018 14:14:58 +0000 [thread overview]
Message-ID: <8736qr9db1.fsf@linaro.org> (raw)
In-Reply-To: <744a1829.ff89.167d091062b.Coremail.13824125580@163.com>
tugouxp <13824125580@163.com> writes:
> thank you.
>
> i just want to confirm one thing, that is whether the qemu can emulate a whole operation system just by analysis instructions by instructions manually without the support of KVM.
> so from the answer you give to me, it is feasible, right?
Yes - if you run qemu-system-$(ARCH) you are emulating a full machine
with hardware attached. It can either use TCG or a HW based acceleration
like KVM. HW based acceleration is only available on the same machine
type.
There is a third type - qemu-$(ARCH) which is often called linux-user
mode. Here the translation engine only translates instruction from guest
to the host and then maps system calls to the host system. This is isn't
emulating a whole system but allows you to run binaries from one
architecture on another.
>
>
>
> thanks very much!
>
>
>
>
>
>
>
>
>
> At 2018-12-21 17:01:02, "Alex Bennée" <alex.bennee@linaro.org> wrote:
>>
>>tugouxp <13824125580@163.com> writes:
>>
>>> Hi alex:
>>> now my host machine did not have the "/dev/kvm" nodes and no chance to make it exists.
>>> so i want to know whether the "/dev/kvm" is mandatory for qemu to emulate the whole system.
>>> so i can make the emulation without the support of kvm mechanism.
>>
>>QEMU runs in two modes - full system emulation with TCG doesn't require
>>KVM although it is relatively slow. On systems where there guest
>>architecture is the same as the host architecture you can run with KMV
>>(or HAX/WHPX/HVF) accelerators at near native speeds.
>>
>>The reasons for not having a /dev/kvm can vary but you haven't said what
>>your host architecture is and what OS you are running so it's hard to
>>offer advice here.
>>
>>--
>>Alex Bennée
--
Alex Bennée
next prev parent reply other threads:[~2018-12-21 14:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 11:01 [Qemu-devel] did the qemu can emulate the whole system with the processor that without support the "virtulization and kvm"? tugouxp
2018-12-20 12:31 ` Alex Bennée
2018-12-20 23:47 ` tugouxp
2018-12-21 9:01 ` Alex Bennée
2018-12-21 11:40 ` tugouxp
2018-12-21 14:03 ` Li Zhijian
2018-12-21 14:14 ` Alex Bennée [this message]
2018-12-24 2:19 ` tugouxp
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=8736qr9db1.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=13824125580@163.com \
--cc=qemu-devel@nongnu.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.