Skip to content

Commit

Permalink
virtuerl: switch CPU model to host passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
verbit committed Jun 14, 2024
1 parent 1dd9658 commit e21d829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtuerl/src/virtuerl_qemu.erl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ handle_continue(setup_base, #{id := DomainId, domain := Domain} = State) ->
];
_ -> []
end,
Cmd = iolist_to_binary(["kvm -machine type=q35 -no-shutdown -S -nic tap,ifname=",TapName,",script=no,downscript=no,model=virtio-net-pci,mac=",virtuerl_util:mac_to_str(MacAddr), " -vnc unix:vnc.sock -display none -smp ",integer_to_binary(Vcpu)," -m ",integer_to_binary(Memory),
Cmd = iolist_to_binary(["kvm -machine type=q35 -no-shutdown -S -nic tap,ifname=",TapName,",script=no,downscript=no,model=virtio-net-pci,mac=",virtuerl_util:mac_to_str(MacAddr), " -vnc unix:vnc.sock -display none -cpu host -smp ",integer_to_binary(Vcpu)," -m ",integer_to_binary(Memory),
" -chardev socket,id=chrtpm,path=swtpm.sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0",
" -drive if=pflash,format=raw,file=/usr/share/OVMF/OVMF_CODE_4M.ms.fd,readonly=on",
" -drive if=pflash,format=raw,file=OVMF_VARS_4M.ms.fd",
Expand Down

0 comments on commit e21d829

Please sign in to comment.