OSDN Git Service

i386: split smm helper (sysemu)
authorClaudio Fontana <cfontana@suse.de>
Mon, 22 Mar 2021 13:27:47 +0000 (14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 May 2021 19:41:51 +0000 (15:41 -0400)
commita93b55ec223f07c7ca74a748e607db48cab945f6
tree8734e51556e42e6ac5df493aa03f0f31f6243f85
parent222f3e6f190c01c764be51ec7e9beb695cd11e1c
i386: split smm helper (sysemu)

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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210322132800.7470-12-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/helper.h
target/i386/tcg/meson.build
target/i386/tcg/seg_helper.c
target/i386/tcg/sysemu/meson.build
target/i386/tcg/sysemu/smm_helper.c [moved from target/i386/tcg/smm_helper.c with 98% similarity]
target/i386/tcg/translate.c