[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 14/15] hw/pci: Determine if rombar is explicitly enabled
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v8 14/15] hw/pci: Determine if rombar is explicitly enabled |
Date: |
Wed, 28 Feb 2024 13:37:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Akihiko Odaki <akihiko.odaki@daynix.com> writes:
> vfio determines if rombar is explicitly enabled by inspecting QDict.
> Inspecting QDict is not nice because QDict is untyped and depends on the
> details on the external interface. Add an infrastructure to determine if
> rombar is explicitly enabled to hw/pci.
>
> This changes the semantics of UINT32_MAX, which has always been a valid
> value to explicitly say rombar is enabled to denote the implicit default
> value. Nobody should have been set UINT32_MAX to rombar however,
> considering that its meaning was no different from 1 and typing a
> literal UINT32_MAX (0xffffffff or 4294967295) is more troublesome.
>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Remark on the previous patch applies.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
- [PATCH v8 07/15] pcie_sriov: Do not manually unrealize, (continued)
- [PATCH v8 07/15] pcie_sriov: Do not manually unrealize, Akihiko Odaki, 2024/02/28
- [PATCH v8 06/15] hw/pci: Rename has_power to enabled, Akihiko Odaki, 2024/02/28
- [PATCH v8 08/15] pcie_sriov: Reuse SR-IOV VF device instances, Akihiko Odaki, 2024/02/28
- [PATCH v8 09/15] pcie_sriov: Release VFs failed to realize, Akihiko Odaki, 2024/02/28
- [PATCH v8 10/15] pcie_sriov: Remove num_vfs from PCIESriovPF, Akihiko Odaki, 2024/02/28
- [PATCH v8 11/15] pcie_sriov: Register VFs after migration, Akihiko Odaki, 2024/02/28
- [PATCH v8 12/15] hw/pci: Replace -1 with UINT32_MAX for romsize, Akihiko Odaki, 2024/02/28
- [PATCH v8 13/15] hw/pci: Use UINT32_MAX as a default value for rombar, Akihiko Odaki, 2024/02/28
- [PATCH v8 14/15] hw/pci: Determine if rombar is explicitly enabled, Akihiko Odaki, 2024/02/28
- Re: [PATCH v8 14/15] hw/pci: Determine if rombar is explicitly enabled,
Markus Armbruster <=
- [PATCH v8 15/15] hw/qdev: Remove opts member, Akihiko Odaki, 2024/02/28