xtask: use `-cpu host` on x86

We have started to see errors in CI:

  qemu-system-x86_64: warning: host doesn't support requested feature: CPUID[eax=80000001h].ECX.svm [bit 2]

The internet says this is the remedy.
pull/1384/head
Tamir Duberstein 1 week ago
parent 4fbce44b6a
commit 468b9b73db
No known key found for this signature in database

@ -442,7 +442,7 @@ pub(crate) fn run(opts: Options) -> Result<()> {
let (guest_arch, machine, cpu, console) = match guest_arch { let (guest_arch, machine, cpu, console) = match guest_arch {
"ARM64" => ("aarch64", Some("virt"), Some("max"), "ttyAMA0"), "ARM64" => ("aarch64", Some("virt"), Some("max"), "ttyAMA0"),
"x86" => ("x86_64", None, None, "ttyS0"), "x86" => ("x86_64", None, Some("host"), "ttyS0"),
guest_arch => (guest_arch, None, None, "ttyS0"), guest_arch => (guest_arch, None, None, "ttyS0"),
}; };

Loading…
Cancel
Save