diff options
| author | Dmitry Poletaev <poletaev@ispras.ru> | 2019-09-18 13:07:06 +0300 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-10-04 18:49:18 +0200 |
| commit | 56f997500aabbc1435a8cd2ea7c39d92c02755b0 (patch) | |
| tree | 1d97b736f0d2907f21900b661c74d90b0b016830 /target/i386/cpu.c | |
| parent | 549d4005874f602e957b07459949ae514ea96f20 (diff) | |
| download | focaccia-qemu-56f997500aabbc1435a8cd2ea7c39d92c02755b0.tar.gz focaccia-qemu-56f997500aabbc1435a8cd2ea7c39d92c02755b0.zip | |
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>
Diffstat (limited to 'target/i386/cpu.c')
| -rw-r--r-- | target/i386/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 2b7225f875..80cfab0581 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -5984,7 +5984,7 @@ static void x86_cpu_common_class_init(ObjectClass *oc, void *data) #ifndef CONFIG_USER_ONLY cc->asidx_from_attrs = x86_asidx_from_attrs; cc->get_memory_mapping = x86_cpu_get_memory_mapping; - cc->get_phys_page_debug = x86_cpu_get_phys_page_debug; + cc->get_phys_page_attrs_debug = x86_cpu_get_phys_page_attrs_debug; cc->write_elf64_note = x86_cpu_write_elf64_note; cc->write_elf64_qemunote = x86_cpu_write_elf64_qemunote; cc->write_elf32_note = x86_cpu_write_elf32_note; |