From: Yu Ning <yu.ning@linux.intel.com>
To: Kamil Rytarowski <n54@gmx.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] HAXM is now open source
Date: Fri, 17 Nov 2017 18:30:24 +0800 [thread overview]
Message-ID: <a4842f5b-4f81-1486-d044-a5ba623ccdf9@linux.intel.com> (raw)
In-Reply-To: <cd3fcaf0-8f53-6adf-3898-d0dab2aa6f92@gmx.com>
On 11/17/2017 16:53, Kamil Rytarowski wrote:
> On 14.11.2017 09:54, Yu Ning wrote:
>> Hello,
>>
>> As some of you may have noticed, since QEMU 2.9.0, an accelerator known
>> as “hax” has been available for Windows and macOS builds of QEMU, thanks
>> to the hard work of Vincent Palatin and help from this community (Paolo
>> Bonzini, Stefan Weil, et al.).
>>
>> The accelerator requires a host kernel module (driver) known as Intel
>> Hardware Accelerated Execution Manager (HAXM), i.e. intelhaxm.sys on
>> Windows or intelhaxm.kext on macOS, similar to how the KVM accelerator
>> depends on kvm.ko on Linux.
>>
>> Today, we released the source code of the HAXM kernel module under the
>> BSD 3-clause license:
>>
>> https://github.com/intel/haxm
>>
>> We look forward to working with the community to improve HAXM (both the
>> kernel module and the accelerator). The code is accompanied by some
>> basic documentation (README.md and API.md), which is incomplete, but
>> hopefully helps people get started. If you have any questions or
>> suggestions, please create an issue or post a comment on GitHub.
>>
>> Thanks,
>> Yu
>>
> Please make it clear whether this module can be ported (as host) to
> other OSes
It was designed with only Windows and Mac hosts in mind, and we don't
plan to support more host OSes. But porting HAXM to another host OS is
possible. If you take a look at the HAXM source tree, there are pretty
clear boundaries between host-independent code (core/, include/*.h),
Windows-specific code (windows/, include/windows/) and Mac-specific code
(darwin/, include/darwin/).
> and whether it can support arbitrary guests OSes (for the
> same CPU).
Unfortunately not, but again it can be done. Initially HAXM was
designed to support only two guest OSes, namely Android and Tizen. When
we upstreamed the HAXM accelerator module to QEMU, we verified it using
various desktop OS images, mostly Linux-based (Chrome OS, Debian,
Ubuntu, CentOS, etc.), although there were a few others (FreeDOS, etc.).
Nevertheless, you may run into issues when you boot a completely
different guest OS (e.g. Windows, which we have never tested), or even
with one that is similar to what I've mentioned (e.g. Fedora, which IIRC
will boot to a kernel panic). In such cases, the culprit is usually
bug(s) in the HAXM kernel module, causing incorrect behavior when the
guest executes certain x86 instructions. Once all the bugs exposed by a
specific guest OS are fixed, that guest OS will work correctly.
next prev parent reply other threads:[~2017-11-17 10:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 8:54 [Qemu-devel] HAXM is now open source Yu Ning
2017-11-14 11:09 ` Thomas Huth
2017-11-14 19:13 ` John Snow
2017-11-15 8:25 ` Yu Ning
2017-11-15 14:18 ` Paolo Bonzini
2017-11-17 8:17 ` Yu Ning
2017-11-17 8:30 ` Thomas Huth
2017-11-17 8:34 ` Yu Ning
2017-11-17 8:53 ` Kamil Rytarowski
2017-11-17 10:30 ` Yu Ning [this message]
2017-11-17 11:09 ` Kamil Rytarowski
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=a4842f5b-4f81-1486-d044-a5ba623ccdf9@linux.intel.com \
--to=yu.ning@linux.intel.com \
--cc=n54@gmx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).