diff options
| author | Alejandro Jimenez <alejandro.j.jimenez@oracle.com> | 2025-09-19 21:34:59 +0000 | 
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2025-10-05 16:13:00 -0400 | 
| commit | 0f13cc5642ea81fc952ef20515891d12c5193d24 (patch) | |
| tree | 9e51d0f68113d3a5bf215c341b23cb1f644b747f /scripts/lib/kdoc/kdoc_output.py | |
| parent | 786d11853095af9c935aab19d5fd341cfb118feb (diff) | |
| download | qemu-0f13cc5642ea81fc952ef20515891d12c5193d24.zip qemu-0f13cc5642ea81fc952ef20515891d12c5193d24.tar.gz qemu-0f13cc5642ea81fc952ef20515891d12c5193d24.tar.bz2 | |
amd_iommu: Return an error when unable to read PTE from guest memory
Make amdvi_get_pte_entry() return an error value (-1) in cases where the
memory read fails, versus the current return of 0 to indicate failure.
The reason is that 0 is also a valid value to have stored in the PTE in
guest memory i.e. the guest does not have a mapping. Before this change,
amdvi_get_pte_entry() returned 0 for both an error and for empty PTEs, but
the page walker implementation that will be introduced in upcoming changes
needs a method to differentiate between the two scenarios.
Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20250919213515.917111-7-alejandro.j.jimenez@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions
