|
From: | Richard Henderson |
Subject: | Re: [PATCH v5 18/20] hw/i386: convert apic access to use MemTxAttrs |
Date: | Sat, 12 Nov 2022 16:02:40 +1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 11/12/22 04:25, Alex Bennée wrote:
+ switch (attrs.requester_type) { + case MTRT_MACHINE: /* MEMTX_IOPIC */
Not checking the id?
+ case MTRT_PCI: /* PCI signalled MSI */ + break; + default: + qemu_log_mask(LOG_GUEST_ERROR, "%s: rejecting write from %d", + __func__, attrs.requester_id); + return MEMTX_ACCESS_ERROR; + }
Logging the requester_id by itself isn't great -- you need the type to know what you're looking at.
Otherwise, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |