Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions source/aarch64.d
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class AARCH64_VM : VirtualMachine
return [
"-machine", "virt",
"-cpu", "max",
"-bios", "/usr/share/qemu/aavmf-aarch64-code.bin"

"-bios", "/usr/share/qemu/aavmf-aarch64-code.bin",
];
}

Expand All @@ -33,7 +32,7 @@ class AARCH64_VM : VirtualMachine
{
return [
"-drive",
format("file=%s,if=virtio,cache=none,aio=native,discard=unmap", diskPath)
format("file=%s,if=virtio,cache=writeback,aio=native,discard=unmap,cache.direct=on", diskPath)
];
}

Expand Down
2 changes: 1 addition & 1 deletion source/ppc64le.d
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PPC64LE_VM : VirtualMachine
{
return [
"-drive",
format("file=%s,if=virtio,cache=none,aio=native,discard=unmap", diskPath)
format("file=%s,if=virtio,cache=writeback,aio=native,discard=unmap,cache.direct=on", diskPath)
];
}

Expand Down
4 changes: 2 additions & 2 deletions source/x86_64.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class X86_64_VM : VirtualMachine
/// Returns an array of architecture-specific QEMU arguments.
override string[] getArchArgs()
{
return ["-M", "q35"];
return ["-M", "q35", "-enable-kvm", "-cpu", "host"];
}

/// Returns an array of QEMU arguments for graphical output.
Expand All @@ -31,7 +31,7 @@ class X86_64_VM : VirtualMachine
{
return [
"-drive",
format("file=%s,if=virtio,cache=none,aio=native,discard=unmap", diskPath)
format("file=%s,if=virtio,cache=writeback,aio=native,discard=unmap,cache.direct=on", diskPath)
];
}

Expand Down
Loading