[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v22 08/17] i386: split smm helper (sysemu)
From: |
Richard Henderson |
Subject: |
Re: [PATCH v22 08/17] i386: split smm helper (sysemu) |
Date: |
Wed, 24 Feb 2021 17:32:10 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 2/24/21 5:34 AM, Claudio Fontana wrote:
> smm is only really useful for sysemu, split in two modules
> around the CONFIG_USER_ONLY, in order to remove the ifdef
> and use the build system instead.
>
> add cpu_abort() when detecting attempts to enter SMM mode via
> SMI interrupt in user-mode, and assert that the cpu is not
> in SMM mode while translating RSM instructions.
>
> Signed-off-by: Claudio Fontana <cfontana@suse.de>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target/i386/helper.h | 4 ++++
> target/i386/tcg/seg_helper.c | 4 ++++
> target/i386/tcg/{ => sysemu}/smm_helper.c | 19 ++-----------------
> target/i386/tcg/translate.c | 5 +++++
> target/i386/tcg/meson.build | 1 -
> target/i386/tcg/sysemu/meson.build | 1 +
> 6 files changed, 16 insertions(+), 18 deletions(-)
> rename target/i386/tcg/{ => sysemu}/smm_helper.c (98%)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- Re: [PATCH v22 02/17] cpu: call AccelCPUClass::cpu_realizefn in cpu_exec_realizefn, (continued)
- [PATCH v22 04/17] target/i386: fix host_cpu_adjust_phys_bits error handling, Claudio Fontana, 2021/02/24
- [PATCH v22 03/17] accel: introduce new accessor functions, Claudio Fontana, 2021/02/24
- [PATCH v22 01/17] i386: split cpu accelerators from cpu.c, using AccelCPUClass, Claudio Fontana, 2021/02/24
- [PATCH v22 07/17] i386: split off sysemu-only functionality in tcg-cpu, Claudio Fontana, 2021/02/24
- [PATCH v22 05/17] accel-cpu: make cpu_realizefn return a bool, Claudio Fontana, 2021/02/24
- [PATCH v22 08/17] i386: split smm helper (sysemu), Claudio Fontana, 2021/02/24
- Re: [PATCH v22 08/17] i386: split smm helper (sysemu),
Richard Henderson <=
- [PATCH v22 06/17] meson: add target_user_arch, Claudio Fontana, 2021/02/24
- [PATCH v22 09/17] i386: split tcg excp_helper into sysemu and user parts, Claudio Fontana, 2021/02/24
- [PATCH v22 10/17] i386: move TCG btp_helper into sysemu/, Claudio Fontana, 2021/02/24
- [PATCH v22 13/17] i386: split svm_helper into sysemu and stub-only user, Claudio Fontana, 2021/02/24