From: Andrew Nguyen <xmphyr@gmail.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Zhao Liu <zhao1.liu@intel.com>,
Peter Maydell <peter.maydell@linaro.org>,
Andrew Nguyen <xmphyr@gmail.com>
Subject: [PATCH v2 1/2] target/i386: make error message for -cpu host more informative
Date: Wed, 18 Nov 2026 00:02:52 -0600 [thread overview]
Message-ID: <20261118-4836-cpu-host-error-v2-1-ba02bb640d9d@gmail.com> (raw)
In-Reply-To: <20261118-4836-cpu-host-error-v2-0-ba02bb640d9d@gmail.com>
Included the mention of WHPX when the option -cpu host doesn't have
an accelerator option.
Signed-off-by: Andrew Nguyen <xmphyr@gmail.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4836
---
target/i386/cpu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index eab0d5a4d4..7dd5535f80 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -10229,7 +10229,8 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp)
if (xcc->host_cpuid_required && !accel_uses_host_cpuid()) {
g_autofree char *name = x86_cpu_class_get_model_name(xcc);
- error_setg(&local_err, "CPU model '%s' requires KVM or HVF", name);
+ error_setg(&local_err, "The '%s' CPU type can only be used with KVM,
+ HVF or WHPX", name);
goto out;
}
--
2.43.0
next prev parent reply other threads:[~2026-11-18 6:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 6:02 [PATCH v2 0/2] target/i386: make error message for -cpu host more informative Andrew Nguyen
2026-11-18 6:02 ` Andrew Nguyen [this message]
2026-11-18 6:02 ` [PATCH v2 2/2] target/i386: check hardware acceleration with -cpu host and scalable error Andrew Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261118-4836-cpu-host-error-v2-1-ba02bb640d9d@gmail.com \
--to=xmphyr@gmail.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=zhao1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.