Diff for /wikisrc/users/kamil/qemu.mdwn between versions 1.4 and 1.5

version 1.4, 2019/01/30 02:07:44 version 1.5, 2019/02/13 05:49:21
Line 91  membarrier     | membarrier system call  Line 91  membarrier     | membarrier system call 
 fdt            | fdt device tree                                    | unknown, should work  fdt            | fdt device tree                                    | unknown, should work
 bluez          | bluez stack connectivity                           | unknown  bluez          | bluez stack connectivity                           | unknown
 kvm            | KVM acceleration support                           | N/A , Linux specific kernel APIs required in userland  kvm            | KVM acceleration support                           | N/A , Linux specific kernel APIs required in userland
 hax            | HAX acceleration support                           | mostly works, patches pending  hax            | HAX acceleration support                           | mostly works
 hvf            | Hypervisor.framework acceleration support          | not ported, Darwin specific  hvf            | Hypervisor.framework acceleration support          | not ported, Darwin specific
 whpx           | Windows Hypervisor Platform acceleration support   | N/A  whpx           | Windows Hypervisor Platform acceleration support   | N/A
 rdma           | Enable RDMA-based migration and PVRDMA support     | unknown, probably not supported  rdma           | Enable RDMA-based migration and PVRDMA support     | unknown, probably not supported
Line 162  capstone       | capstone disassembler s Line 162  capstone       | capstone disassembler s
 2. Make QEMU PaX MPROTECT safe.  2. Make QEMU PaX MPROTECT safe.
   
 3. Develop NetBSD USER emulation, attempt to either share the code with FreeBSD (bsd-user, old broken, downstream patches) or with Linux (linux-user, recent, actively maintained). Preferred approach is to share as much code with linux-user as possible, regardless of the state of bsd-user.  3. Develop NetBSD USER emulation, attempt to either share the code with FreeBSD (bsd-user, old broken, downstream patches) or with Linux (linux-user, recent, actively maintained). Preferred approach is to share as much code with linux-user as possible, regardless of the state of bsd-user.
   
   ## HAXM
   
   > HAXM is a cross-platform hardware-assisted virtualization engine (hypervisor), widely used as an accelerator for Android Emulator and QEMU. It has always supported running on Windows and macOS, and has been ported to other host operating systems as well, such as Linux and NetBSD.
   
   > HAXM runs as a kernel-mode driver on the host operating system, and provides a KVM-like interface to user space, thereby enabling applications like QEMU to utilize the hardware virtualization capabilities built into modern Intel CPUs, namely Intel Virtualization Technology.
   
   
   More information on the porting process is available on The NetBSD blog:
   
   http://blog.netbsd.org/tnf/entry/the_hardware_assisted_virtualization_challenge
   
   A tutorial (outdated) by an early user of the support:
   
   http://polprog.net/blog/netbsd-hax/
   
   NetBSD/amd64 is the only supported host of the package, but it shouldn't be difficult to expand it to Darwin, Windows and Linux if there would be users and maintainers for these OSes.
   
   NetBSD as host version 8.0 and HEAD (8.99.3x) tested. The minimal version that could work in theory is 6.x, but everything prior 8.0 is untested.
   
   There is no longer need to keep a patched host kernel.
   
   There is need to keep at least a copy syssrc in /usr/src(/sys).
   
   Guests known to work:
   
    - NetBSD/amd64 8.99.3x (other variations untested)
    - Windows 7 32-bit
    - FreeBSD 12 32-bit
    - Linux (noapic boot)
    - Minix3 i386
    - Plan9 (i386?)
    - FREEDOS
   
   Other OSes are either broken or untested.
   
   Usage:
   
   1. Install emulators/haxm from pkgsrc
   2. Install emulators/qemu 3.1.0nb5 or newer from pkgsrc
   3. Use auxiliary scripts for HAXM (superuser privileges needed):
   
    - haxm-mknod     # creates /dev entries
    - haxm-modload   # insert the HAXM kernel module
    - haxm-modunload # remove the HAXM module from kernel
   
   Optionally grant access to the HAXM device nodes to user(s):
   
    - /dev/HAX
    - /dev/hax_vm/*
    - /dev/hax_vm*/*
   
   4. Append HAXM option to qemu
   
   qemu --accel hax

Removed from v.1.4  
changed lines
  Added in v.1.5


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb