From: Zhao Liu <zhao1.liu@intel.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH] target/i386: Treat qtest like TCG for supported-features
Date: Tue, 31 Mar 2026 16:46:13 +0800 [thread overview]
Message-ID: <acuJ1c5J3sTVzvy0@intel.com> (raw)
In-Reply-To: <20260330151437.1787008-1-peter.maydell@linaro.org>
On Mon, Mar 30, 2026 at 04:14:37PM +0100, Peter Maydell wrote:
> Date: Mon, 30 Mar 2026 16:14:37 +0100
> From: Peter Maydell <peter.maydell@linaro.org>
> Subject: [PATCH] target/i386: Treat qtest like TCG for supported-features
> X-Mailer: git-send-email 2.43.0
>
> In x86_cpu_get_supported_feature_word() we figure out the supported
> features differently for each accelerator. The default case is
> "set all feature bits"; however this triggers a warning because
> it enables two features which conflict with each other:
>
> $ ./build/x86/qemu-system-x86_64 -cpu max -accel qtest -S
> qemu-system-x86_64: warning: this feature conflicts with APX: CPUID[eax=07h,ecx=00h].EBX.mpx [bit 14]
> qemu-system-x86_64: warning: this feature conflicts with MPX: CPUID[eax=07h,ecx=01h].EDX.apxf [bit 21]
>
> Treat qtest like TCG here, to avoid the complaint.
I see, this is a proper way to resolve this for max cpu with qtest,
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
so,
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
> ---
> This suggests to me that the default case is not something
> we ever want to be in, and we should instead be exhaustively
> enumerating the accelerators and asserting if we don't know
> how to handle this for the accelerator in use. But there are
> several accelerators that we don't have code for here...
yes, when I have some time, I’d see if I can sort this out, to clarify
what accelerator needs to be covered here.
Regards,
Zhao
next prev parent reply other threads:[~2026-03-31 8:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-30 15:14 [PATCH] target/i386: Treat qtest like TCG for supported-features Peter Maydell
2026-03-30 21:58 ` Philippe Mathieu-Daudé
2026-03-31 8:46 ` Zhao Liu [this message]
2026-03-31 13:07 ` Philippe Mathieu-Daudé
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=acuJ1c5J3sTVzvy0@intel.com \
--to=zhao1.liu@intel.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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.