ppc/xive: Report access size in XIVE TM operation error logs
Report access size in XIVE TM operation error logs. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Glenn Miles <milesg@linux.ibm.com> Reviewed-by: Michael Kowal <kowal@linux.ibm.com> Reviewed-by: Caleb Schlossin <calebs@linux.ibm.com> Tested-by: Gautam Menghani <gautam@linux.ibm.com> Link: https://lore.kernel.org/qemu-devel/20250512031100.439842-3-npiggin@gmail.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
301fbbaf03
commit
f0aab77941
1 changed files with 4 additions and 4 deletions
|
|
@ -326,7 +326,7 @@ static void xive_tm_raw_write(XiveTCTX *tctx, hwaddr offset, uint64_t value,
|
|||
*/
|
||||
if (size < 4 || !mask || ring_offset == TM_QW0_USER) {
|
||||
qemu_log_mask(LOG_GUEST_ERROR, "XIVE: invalid write access at TIMA @%"
|
||||
HWADDR_PRIx"\n", offset);
|
||||
HWADDR_PRIx" size %d\n", offset, size);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -357,7 +357,7 @@ static uint64_t xive_tm_raw_read(XiveTCTX *tctx, hwaddr offset, unsigned size)
|
|||
*/
|
||||
if (size < 4 || !mask || ring_offset == TM_QW0_USER) {
|
||||
qemu_log_mask(LOG_GUEST_ERROR, "XIVE: invalid read access at TIMA @%"
|
||||
HWADDR_PRIx"\n", offset);
|
||||
HWADDR_PRIx" size %d\n", offset, size);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -688,7 +688,7 @@ void xive_tctx_tm_write(XivePresenter *xptr, XiveTCTX *tctx, hwaddr offset,
|
|||
xto = xive_tm_find_op(tctx->xptr, offset, size, true);
|
||||
if (!xto) {
|
||||
qemu_log_mask(LOG_GUEST_ERROR, "XIVE: invalid write access at TIMA "
|
||||
"@%"HWADDR_PRIx"\n", offset);
|
||||
"@%"HWADDR_PRIx" size %d\n", offset, size);
|
||||
} else {
|
||||
xto->write_handler(xptr, tctx, offset, value, size);
|
||||
}
|
||||
|
|
@ -727,7 +727,7 @@ uint64_t xive_tctx_tm_read(XivePresenter *xptr, XiveTCTX *tctx, hwaddr offset,
|
|||
xto = xive_tm_find_op(tctx->xptr, offset, size, false);
|
||||
if (!xto) {
|
||||
qemu_log_mask(LOG_GUEST_ERROR, "XIVE: invalid read access to TIMA"
|
||||
"@%"HWADDR_PRIx"\n", offset);
|
||||
"@%"HWADDR_PRIx" size %d\n", offset, size);
|
||||
return -1;
|
||||
}
|
||||
ret = xto->read_handler(xptr, tctx, offset, size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue