forked from xt-sys/exectos
Compare commits
1 Commits
cpuid-enha
...
whpx
Author | SHA1 | Date | |
---|---|---|---|
84402a1db4 |
@@ -45,14 +45,27 @@ if(QEMU_EMULATOR)
|
|||||||
-boot menu=on -d int -no-reboot -no-shutdown -serial stdio
|
-boot menu=on -d int -no-reboot -no-shutdown -serial stdio
|
||||||
VERBATIM USES_TERMINAL)
|
VERBATIM USES_TERMINAL)
|
||||||
|
|
||||||
# This target starts up a QEMU+SEABIOS virtual machine using KVM accelerator
|
if(WIN32)
|
||||||
add_custom_target(testkvm
|
# This target starts up a QEMU+OVMF virtual machine using WHPX accelerator on Windows
|
||||||
DEPENDS diskimg
|
add_custom_target(testkvm
|
||||||
COMMAND ${QEMU_COMMAND} -name "ExectOS-${ARCH}-BIOS-KVM" -machine type=q35,kernel_irqchip=on,accel="kvm:whpx",mem-merge=off,vmport=off -enable-kvm -cpu host,-hypervisor,+topoext
|
DEPENDS install
|
||||||
-smp 2,sockets=1,cores=1,threads=2 -m 4G -overcommit mem-lock=off -rtc clock=host,base=localtime,driftfix=none
|
COMMAND ${QEMU_COMMAND} -name "ExectOS-${ARCH}-WHPX" -machine accel=whpx,kernel-irqchip=off
|
||||||
-hda ${EXECTOS_BINARY_DIR}/output/disk.img
|
-bios ${EXECTOS_SOURCE_DIR}/sdk/firmware/OVMF-pure-efi.fd
|
||||||
-boot menu=on -d int -no-reboot -no-shutdown -serial stdio
|
-hda fat:rw:${EXECTOS_BINARY_DIR}/output/binaries
|
||||||
VERBATIM USES_TERMINAL)
|
-no-reboot -no-shutdown -serial stdio
|
||||||
|
COMMENT "Using WHPX acceleration on Windows"
|
||||||
|
VERBATIM USES_TERMINAL)
|
||||||
|
|
||||||
|
else()
|
||||||
|
# This target starts up a QEMU+SEABIOS virtual machine using KVM accelerator
|
||||||
|
add_custom_target(testkvm
|
||||||
|
DEPENDS diskimg
|
||||||
|
COMMAND ${QEMU_COMMAND} -name "ExectOS-${ARCH}-BIOS-KVM" -machine type=q35,kernel_irqchip=on,accel="kvm:whpx",mem-merge=off,vmport=off -enable-kvm -cpu host,-hypervisor,+topoext
|
||||||
|
-smp 2,sockets=1,cores=1,threads=2 -m 4G -overcommit mem-lock=off -rtc clock=host,base=localtime,driftfix=none
|
||||||
|
-hda ${EXECTOS_BINARY_DIR}/output/disk.img
|
||||||
|
-boot menu=on -d int -no-reboot -no-shutdown -serial stdio
|
||||||
|
VERBATIM USES_TERMINAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
# This target starts up a QEMU+SEABIOS virtual machine using TCG accelerator
|
# This target starts up a QEMU+SEABIOS virtual machine using TCG accelerator
|
||||||
add_custom_target(testtcg
|
add_custom_target(testtcg
|
||||||
|
BIN
sdk/firmware/OVMF-pure-efi.fd
Normal file
BIN
sdk/firmware/OVMF-pure-efi.fd
Normal file
Binary file not shown.
Reference in New Issue
Block a user