[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH-for-5.1] hw/pci-host/q35: Ignore write of reserved PCIEXB
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC PATCH-for-5.1] hw/pci-host/q35: Ignore write of reserved PCIEXBAR LENGTH field |
Date: |
Fri, 17 Jul 2020 21:39:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 7/17/20 8:38 PM, Richard Henderson wrote:
> On 7/17/20 11:17 AM, Philippe Mathieu-Daudé wrote:
>> case MCH_HOST_BRIDGE_PCIEXBAR_LENGTH_RVD:
>> - default:
>> - abort();
>> + qemu_log_mask(LOG_GUEST_ERROR, "Q35: Reserved PCIEXBAR LENGTH\n");
>> + return;
>> }
>
> Did you really want to remove the default case?
The field takes 2 bits, 3 cases are covered...
> I guess the mask means that only *_RVD is left over, but the default sorta
> self-documents that.
OK I don't have problem keeping it - until a compiler start warning
about it "default case already covered" ;)
>
> Either way,
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Thanks!
>
>
> r~
>