├── .gitattributes ├── README.md └── notes ├── build_qemu_with_enabled_hyper-v_acceleration_(whpx)_on_windows.md └── images ├── Qemu-logo.png └── msys_menu.png /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # notes 2 | 3 | 4 | 5 | **[Build QEMU with enabled Hyper-v acceleration (WHPX) on Windows](notes/build_qemu_with_enabled_hyper-v_acceleration_(whpx)_on_windows.md)** -------------------------------------------------------------------------------- /notes/build_qemu_with_enabled_hyper-v_acceleration_(whpx)_on_windows.md: -------------------------------------------------------------------------------- 1 | # Build QEMU with enabled Hyper-v acceleration (WHPX) on Windows 2 | 3 | 4 |
108 |
109 | ```bash
110 | $ ./configure --help
111 |
112 | Usage: configure [options]
113 | Options: [defaults in brackets after descriptions]
114 |
115 | Standard options:
116 | --help print this message
117 | --prefix=PREFIX install in PREFIX [c:/Program Files/QEMU]
118 | --interp-prefix=PREFIX where to find shared libraries, etc.
119 | use %M for cpu name [/usr/gnemul/qemu-%M]
120 | --target-list=LIST set target list (default: build everything)
121 | Available targets: aarch64-softmmu alpha-softmmu
122 | arm-softmmu cris-softmmu hppa-softmmu i386-softmmu
123 | lm32-softmmu m68k-softmmu microblazeel-softmmu
124 | microblaze-softmmu mips64el-softmmu mips64-softmmu
125 | mipsel-softmmu mips-softmmu moxie-softmmu
126 | nios2-softmmu or1k-softmmu ppc64-softmmu ppc-softmmu
127 | riscv32-softmmu riscv64-softmmu s390x-softmmu
128 | sh4eb-softmmu sh4-softmmu sparc64-softmmu
129 | sparc-softmmu tricore-softmmu unicore32-softmmu
130 | x86_64-softmmu xtensaeb-softmmu xtensa-softmmu
131 | --target-list-exclude=LIST exclude a set of targets from the default target-list
132 |
133 | Advanced options (experts only):
134 | --cross-prefix=PREFIX use PREFIX for compile tools []
135 | --cc=CC use C compiler CC [cc]
136 | --iasl=IASL use ACPI compiler IASL [iasl]
137 | --host-cc=CC use C compiler CC [cc] for code run at
138 | build time
139 | --cxx=CXX use C++ compiler CXX [c++]
140 | --objcc=OBJCC use Objective-C compiler OBJCC [cc]
141 | --extra-cflags=CFLAGS append extra C compiler flags QEMU_CFLAGS
142 | --extra-cxxflags=CXXFLAGS append extra C++ compiler flags QEMU_CXXFLAGS
143 | --extra-ldflags=LDFLAGS append extra linker flags LDFLAGS
144 | --cross-cc-ARCH=CC use compiler when building ARCH guest test cases
145 | --cross-cc-flags-ARCH= use compiler flags when building ARCH guest tests
146 | --make=MAKE use specified make [make]
147 | --install=INSTALL use specified install [install]
148 | --python=PYTHON use specified python [python3]
149 | --smbd=SMBD use specified smbd [/usr/sbin/smbd]
150 | --with-git=GIT use specified git [git]
151 | --static enable static build [no]
152 | --mandir=PATH install man pages in PATH
153 | --datadir=PATH install firmware in PATH
154 | --docdir=PATH install documentation in PATH
155 | --bindir=PATH install binaries in PATH
156 | --libdir=PATH install libraries in PATH
157 | --libexecdir=PATH install helper binaries in PATH
158 | --sysconfdir=PATH install config in PATH
159 | --localstatedir=PATH install local state in PATH (set at runtime on win32)
160 | --firmwarepath=PATH search PATH for firmware files
161 | --with-confsuffix=SUFFIX suffix for QEMU data inside datadir/libdir/sysconfdir []
162 | --with-pkgversion=VERS use specified string as sub-version of the package
163 | --enable-debug enable common debug build options
164 | --enable-sanitizers enable default sanitizers
165 | --disable-strip disable stripping binaries
166 | --disable-werror disable compilation abort on warning
167 | --disable-stack-protector disable compiler-provided stack protection
168 | --audio-drv-list=LIST set audio drivers list:
169 | Available drivers: dsound sdl
170 | --block-drv-whitelist=L Same as --block-drv-rw-whitelist=L
171 | --block-drv-rw-whitelist=L
172 | set block driver read-write whitelist
173 | (affects only QEMU, not qemu-img)
174 | --block-drv-ro-whitelist=L
175 | set block driver read-only whitelist
176 | (affects only QEMU, not qemu-img)
177 | --enable-trace-backends=B Set trace backend
178 | Available backends: dtrace ftrace log simple syslog ust
179 | --with-trace-file=NAME Full PATH,NAME of file to store traces
180 | Default:trace-
347 | 348 | ``` 349 | # whpx Windows Hypervisor Platform acceleration support 350 | 351 | # tools build qemu-io, qemu-nbd and qemu-img tools 352 | # lzo support of lzo compression library 353 | # bzip2 support of bzip2 compression library (for reading bzip2-compressed dmg images) 354 | # sdl SDL UI 355 | # gtk gtk UI 356 | # hax HAX acceleration support 357 | # vdi vdi image format support 358 | # qcow1 qcow v1 image format support 359 | # capstone capstone disassembler support 360 | ``` 361 |
362 |458 | 459 | ```bash 460 | $ ls -la $BUILD_PATH 461 | total 285581 462 | drwxr-xr-x 1 UserName None 0 Sep 11 13:37 . 463 | drwxr-xr-x 1 UserName None 0 Sep 11 13:36 .. 464 | drwxr-xr-x 1 UserName None 0 Sep 11 13:35 applications 465 | -rw-r--r-- 1 UserName None 3211 Sep 11 13:35 bamboo.dtb 466 | -rw-r--r-- 1 UserName None 131072 Sep 11 13:35 bios.bin 467 | -rw-r--r-- 1 UserName None 262144 Sep 11 13:35 bios-256k.bin 468 | -rw-r--r-- 1 UserName None 9779 Sep 11 13:35 canyonlands.dtb 469 | -rw-r--r-- 1 UserName None 67108864 Sep 11 13:35 edk2-aarch64-code.fd 470 | -rw-r--r-- 1 UserName None 67108864 Sep 11 13:35 edk2-arm-code.fd 471 | -rw-r--r-- 1 UserName None 67108864 Sep 11 13:35 edk2-arm-vars.fd 472 | -rw-r--r-- 1 UserName None 3653632 Sep 11 13:35 edk2-i386-code.fd 473 | -rw-r--r-- 1 UserName None 3653632 Sep 11 13:35 edk2-i386-secure-code.fd 474 | -rw-r--r-- 1 UserName None 540672 Sep 11 13:35 edk2-i386-vars.fd 475 | -rw-r--r-- 1 UserName None 42903 Sep 11 13:35 edk2-licenses.txt 476 | -rw-r--r-- 1 UserName None 3653632 Sep 11 13:35 edk2-x86_64-code.fd 477 | -rw-r--r-- 1 UserName None 3653632 Sep 11 13:35 edk2-x86_64-secure-code.fd 478 | -rw-r--r-- 1 UserName None 240128 Sep 11 13:35 efi-e1000.rom 479 | -rw-r--r-- 1 UserName None 240128 Sep 11 13:35 efi-e1000e.rom 480 | -rw-r--r-- 1 UserName None 240128 Sep 11 13:35 efi-eepro100.rom 481 | -rw-r--r-- 1 UserName None 238592 Sep 11 13:35 efi-ne2k_pci.rom 482 | -rw-r--r-- 1 UserName None 238592 Sep 11 13:35 efi-pcnet.rom 483 | -rw-r--r-- 1 UserName None 242688 Sep 11 13:35 efi-rtl8139.rom 484 | -rw-r--r-- 1 UserName None 242688 Sep 11 13:35 efi-virtio.rom 485 | -rw-r--r-- 1 UserName None 236032 Sep 11 13:35 efi-vmxnet3.rom 486 | drwxr-xr-x 1 UserName None 0 Sep 11 13:35 firmware 487 | -rw-r--r-- 1 UserName None 783724 Sep 11 13:35 hppa-firmware.img 488 | drwxr-xr-x 1 UserName None 0 Sep 11 13:35 icons 489 | drwxr-xr-x 1 UserName None 0 Sep 11 13:35 keymaps 490 | -rw-r--r-- 1 UserName None 9216 Sep 11 13:35 kvmvapic.bin 491 | -rwxr-xr-x 1 UserName None 139373 Sep 11 13:37 libatk-1.0-0.dll 492 | -rwxr-xr-x 1 UserName None 74771 Sep 11 13:37 libbz2-1.dll 493 | -rwxr-xr-x 1 UserName None 1015140 Sep 11 13:37 libcairo-2.dll 494 | -rwxr-xr-x 1 UserName None 37749 Sep 11 13:37 libcairo-gobject-2.dll 495 | -rwxr-xr-x 1 UserName None 36029 Sep 11 13:37 libdatrie-1.dll 496 | -rwxr-xr-x 1 UserName None 1682539 Sep 11 13:37 libepoxy-0.dll 497 | -rwxr-xr-x 1 UserName None 183228 Sep 11 13:37 libexpat-1.dll 498 | -rwxr-xr-x 1 UserName None 34176 Sep 11 13:37 libffi-6.dll 499 | -rwxr-xr-x 1 UserName None 294979 Sep 11 13:37 libfontconfig-1.dll 500 | -rwxr-xr-x 1 UserName None 682123 Sep 11 13:37 libfreetype-6.dll 501 | -rwxr-xr-x 1 UserName None 141883 Sep 11 13:37 libfribidi-0.dll 502 | -rwxr-xr-x 1 UserName None 85136 Sep 11 13:37 libgcc_s_seh-1.dll 503 | -rwxr-xr-x 1 UserName None 171040 Sep 11 13:37 libgdk_pixbuf-2.0-0.dll 504 | -rwxr-xr-x 1 UserName None 1243245 Sep 11 13:37 libgdk-3-0.dll 505 | -rwxr-xr-x 1 UserName None 1524386 Sep 11 13:37 libgio-2.0-0.dll 506 | -rwxr-xr-x 1 UserName None 1162600 Sep 11 13:37 libglib-2.0-0.dll 507 | -rwxr-xr-x 1 UserName None 26808 Sep 11 13:37 libgmodule-2.0-0.dll 508 | -rwxr-xr-x 1 UserName None 318421 Sep 11 13:37 libgobject-2.0-0.dll 509 | -rwxr-xr-x 1 UserName None 154260 Sep 11 13:37 libgraphite2.dll 510 | -rwxr-xr-x 1 UserName None 6593944 Sep 11 13:37 libgtk-3-0.dll 511 | -rwxr-xr-x 1 UserName None 984148 Sep 11 13:37 libharfbuzz-0.dll 512 | -rwxr-xr-x 1 UserName None 1055522 Sep 11 13:37 libiconv-2.dll 513 | -rwxr-xr-x 1 UserName None 135218 Sep 11 13:37 libintl-8.dll 514 | -rwxr-xr-x 1 UserName None 638393 Sep 11 13:37 libjpeg-8.dll 515 | -rwxr-xr-x 1 UserName None 143727 Sep 11 13:37 liblzo2-2.dll 516 | -rwxr-xr-x 1 UserName None 260720 Sep 11 13:37 libpango-1.0-0.dll 517 | -rwxr-xr-x 1 UserName None 71379 Sep 11 13:37 libpangocairo-1.0-0.dll 518 | -rwxr-xr-x 1 UserName None 94480 Sep 11 13:37 libpangoft2-1.0-0.dll 519 | -rwxr-xr-x 1 UserName None 101742 Sep 11 13:37 libpangowin32-1.0-0.dll 520 | -rwxr-xr-x 1 UserName None 287905 Sep 11 13:37 libpcre-1.dll 521 | -rwxr-xr-x 1 UserName None 677220 Sep 11 13:37 libpixman-1-0.dll 522 | -rwxr-xr-x 1 UserName None 231911 Sep 11 13:37 libpng16-16.dll 523 | -rwxr-xr-x 1 UserName None 21134 Sep 11 13:37 libssp-0.dll 524 | -rwxr-xr-x 1 UserName None 1759933 Sep 11 13:37 libstdc++-6.dll 525 | -rwxr-xr-x 1 UserName None 68018 Sep 11 13:37 libthai-0.dll 526 | -rwxr-xr-x 1 UserName None 56844 Sep 11 13:37 libwinpthread-1.dll 527 | -rw-r--r-- 1 UserName None 1024 Sep 11 13:35 linuxboot.bin 528 | -rw-r--r-- 1 UserName None 1536 Sep 11 13:35 linuxboot_dma.bin 529 | -rw-r--r-- 1 UserName None 1024 Sep 11 13:35 multiboot.bin 530 | -rw-r--r-- 1 UserName None 767256 Sep 11 13:35 openbios-ppc 531 | -rw-r--r-- 1 UserName None 382048 Sep 11 13:35 openbios-sparc32 532 | -rw-r--r-- 1 UserName None 1593408 Sep 11 13:35 openbios-sparc64 533 | -rw-r--r-- 1 UserName None 36888 Sep 11 13:35 opensbi-riscv32-virt-fw_jump.bin 534 | -rw-r--r-- 1 UserName None 40968 Sep 11 13:35 opensbi-riscv64-sifive_u-fw_jump.bin 535 | -rw-r--r-- 1 UserName None 40968 Sep 11 13:35 opensbi-riscv64-virt-fw_jump.bin 536 | -rw-r--r-- 1 UserName None 156328 Sep 11 13:35 palcode-clipper 537 | -rw-r--r-- 1 UserName None 9982 Sep 11 13:35 petalogix-ml605.dtb 538 | -rw-r--r-- 1 UserName None 8259 Sep 11 13:35 petalogix-s3adsp1800.dtb 539 | -rw-r--r-- 1 UserName None 1048576 Sep 11 13:35 ppc_rom.bin 540 | -rw-r--r-- 1 UserName None 1536 Sep 11 13:35 pvh.bin 541 | -rw-r--r-- 1 UserName None 67072 Sep 11 13:35 pxe-e1000.rom 542 | -rw-r--r-- 1 UserName None 61440 Sep 11 13:35 pxe-eepro100.rom 543 | -rw-r--r-- 1 UserName None 61440 Sep 11 13:35 pxe-ne2k_pci.rom 544 | -rw-r--r-- 1 UserName None 61440 Sep 11 13:35 pxe-pcnet.rom 545 | -rw-r--r-- 1 UserName None 61440 Sep 11 13:35 pxe-rtl8139.rom 546 | -rw-r--r-- 1 UserName None 60416 Sep 11 13:35 pxe-virtio.rom 547 | -rw-r--r-- 1 UserName None 850 Sep 11 13:35 QEMU,cgthree.bin 548 | -rw-r--r-- 1 UserName None 1402 Sep 11 13:35 QEMU,tcx.bin 549 | -rw-r--r-- 1 UserName None 18752 Sep 11 13:35 qemu_vga.ndrv 550 | -rwxr-xr-x 1 UserName None 86016 Sep 11 13:35 qemu-edid.exe 551 | -rwxr-xr-x 1 UserName None 400896 Sep 11 13:35 qemu-ga.exe 552 | -rwxr-xr-x 1 UserName None 1538560 Sep 11 13:35 qemu-img.exe 553 | -rwxr-xr-x 1 UserName None 1491456 Sep 11 13:35 qemu-io.exe 554 | -rw-r--r-- 1 UserName None 154542 Sep 11 13:35 qemu-nsis.bmp 555 | -rwxr-xr-x 1 UserName None 9132032 Sep 11 13:35 qemu-system-i386.exe 556 | -rwxr-xr-x 1 UserName None 9132032 Sep 11 13:35 qemu-system-i386w.exe 557 | -rwxr-xr-x 1 UserName None 9165312 Sep 11 13:35 qemu-system-x86_64.exe 558 | -rwxr-xr-x 1 UserName None 9165312 Sep 11 13:35 qemu-system-x86_64w.exe 559 | -rw-r--r-- 1 UserName None 42608 Sep 11 13:35 s390-ccw.img 560 | -rw-r--r-- 1 UserName None 67232 Sep 11 13:35 s390-netboot.img 561 | -rwxr-xr-x 1 UserName None 1275183 Sep 11 13:37 SDL2.dll 562 | -rw-r--r-- 1 UserName None 4096 Sep 11 13:35 sgabios.bin 563 | drwxr-xr-x 1 UserName None 0 Sep 11 13:35 share 564 | -rw-r--r-- 1 UserName None 1667280 Sep 11 13:35 skiboot.lid 565 | -rw-r--r-- 1 UserName None 930656 Sep 11 13:35 slof.bin 566 | -rw-r--r-- 1 UserName None 20 Sep 11 13:35 spapr-rtas.bin 567 | -rw-r--r-- 1 UserName None 310010 Sep 11 13:35 trace-events-all 568 | -rw-r--r-- 1 UserName None 349148 Sep 11 13:35 u-boot.e500 569 | -rw-r--r-- 1 UserName None 524288 Sep 11 13:35 u-boot-sam460-20100605.bin 570 | -rw-r--r-- 1 UserName None 38400 Sep 11 13:35 vgabios.bin 571 | -rw-r--r-- 1 UserName None 38912 Sep 11 13:35 vgabios-ati.bin 572 | -rw-r--r-- 1 UserName None 27648 Sep 11 13:35 vgabios-bochs-display.bin 573 | -rw-r--r-- 1 UserName None 38400 Sep 11 13:35 vgabios-cirrus.bin 574 | -rw-r--r-- 1 UserName None 38912 Sep 11 13:35 vgabios-qxl.bin 575 | -rw-r--r-- 1 UserName None 28160 Sep 11 13:35 vgabios-ramfb.bin 576 | -rw-r--r-- 1 UserName None 38912 Sep 11 13:35 vgabios-stdvga.bin 577 | -rw-r--r-- 1 UserName None 38912 Sep 11 13:35 vgabios-virtio.bin 578 | -rw-r--r-- 1 UserName None 38912 Sep 11 13:35 vgabios-vmware.bin 579 | -rwxr-xr-x 1 UserName None 93720 Sep 11 13:37 zlib1.dll 580 | 581 | ``` 582 |
583 |