OSDN Git Service

Fix wrong behavior of cpu_memory_rw_debug() function in SMM
authorDmitry Poletaev <poletaev@ispras.ru>
Wed, 18 Sep 2019 10:07:06 +0000 (13:07 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Oct 2019 16:49:18 +0000 (18:49 +0200)
commit56f997500aabbc1435a8cd2ea7c39d92c02755b0
tree1d97b736f0d2907f21900b661c74d90b0b016830
parent549d4005874f602e957b07459949ae514ea96f20
Fix wrong behavior of cpu_memory_rw_debug() function in SMM

There is a problem, that you don't have access to the data using cpu_memory_rw_debug() function when in SMM. You can't remotely debug SMM mode program because of that for example.
Likely attrs version of get_phys_page_debug should be used to get correct asidx at the end to handle access properly.
Here the patch to fix it.

Signed-off-by: Dmitry Poletaev <poletaev@ispras.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/helper.c