qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 2/3] target/i386: ignore CPL0-specific features in user mo


From: Richard Henderson
Subject: Re: [PATCH v2 2/3] target/i386: ignore CPL0-specific features in user mode emulation
Date: Mon, 26 Jun 2023 12:04:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 6/26/23 10:33, Paolo Bonzini wrote:
Features such as PCID are only accessible through privileged operations,
and therefore have no impact on any user-mode operation.  Allow reporting
them to programs running under user mode emulation, so that "-cpu" can be
used with more named CPU models.

XSAVES would be similar, but it doesn't make sense to provide it until
XSAVEC is implemented.

With this change, all CPUs up to Broadwell-v4 can be emulate.  Skylake-Client
requires XSAVEC, while EPYC also requires SHA-NI, MISALIGNSSE and TOPOEXT.
MISALIGNSSE is not hard to implement, but I am not sure it is worth using
a precious hflags bit for it.

Fixes:https://gitlab.com/qemu-project/qemu/-/issues/1534
Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
---
  target/i386/cpu.c | 83 +++++++++++++++++++++++++++++++++++++++++++----
  1 file changed, 76 insertions(+), 7 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]