summaryrefslogtreecommitdiffstats
path: root/hw/i386/intel_iommu_internal.h
diff options
context:
space:
mode:
authorRichard Henderson2022-12-01 08:45:22 +0100
committerPaolo Bonzini2022-12-01 09:53:24 +0100
commit8218c048be1567db9dfd3cf1e19fbff76bce8cfd (patch)
treeec48a710457947bdec939b85cb449d3be7571d5f /hw/i386/intel_iommu_internal.h
parenttarget/i386: allow MMX instructions with CR4.OSFXSR=0 (diff)
downloadqemu-8218c048be1567db9dfd3cf1e19fbff76bce8cfd.tar.gz
qemu-8218c048be1567db9dfd3cf1e19fbff76bce8cfd.tar.xz
qemu-8218c048be1567db9dfd3cf1e19fbff76bce8cfd.zip
target/i386: Always completely initialize TranslateFault
In get_physical_address, the canonical address check failed to set TranslateFault.stage2, which resulted in an uninitialized read from the struct when reporting the fault in x86_cpu_tlb_fill. Adjust all error paths to use structure assignment so that the entire struct is always initialized. Reported-by: Daniel Hoffman <dhoff749@gmail.com> Fixes: 9bbcf372193a ("target/i386: Reorg GET_HPHYS") Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20221201074522.178498-1-richard.henderson@linaro.org> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1324 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/intel_iommu_internal.h')
0 files changed, 0 insertions, 0 deletions