[PATCH 4/4] hw/misc/ivshmem: Rename ivshmem to ivshmem-pci

Gustavo Romero posted 4 patches 1 year ago
There is a newer version of this series
[PATCH 4/4] hw/misc/ivshmem: Rename ivshmem to ivshmem-pci
Posted by Gustavo Romero 1 year ago
Because now there is also an MMIO ivshmem device (ivshmem-flat.c), and
ivshmem.c is a PCI specific implementation, rename it to ivshmem-pci.c.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
---
 hw/misc/{ivshmem.c => ivshmem-pci.c} | 0
 hw/misc/meson.build                  | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename hw/misc/{ivshmem.c => ivshmem-pci.c} (100%)

diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem-pci.c
similarity index 100%
rename from hw/misc/ivshmem.c
rename to hw/misc/ivshmem-pci.c
diff --git a/hw/misc/meson.build b/hw/misc/meson.build
index 7b03fc1345..6f0a7c31cd 100644
--- a/hw/misc/meson.build
+++ b/hw/misc/meson.build
@@ -37,7 +37,7 @@ system_ss.add(when: 'CONFIG_SIFIVE_U_PRCI', if_true: files('sifive_u_prci.c'))
 subdir('macio')
 
 # ivshmem devices
-system_ss.add(when: 'CONFIG_IVSHMEM_DEVICE', if_true: files('ivshmem.c'))
+system_ss.add(when: 'CONFIG_IVSHMEM_DEVICE', if_true: files('ivshmem-pci.c'))
 system_ss.add(when: 'CONFIG_IVSHMEM_FLAT_DEVICE', if_true: files('ivshmem-flat.c'))
 
 system_ss.add(when: 'CONFIG_ALLWINNER_SRAMC', if_true: files('allwinner-sramc.c'))
-- 
2.34.1
Re: [PATCH 4/4] hw/misc/ivshmem: Rename ivshmem to ivshmem-pci
Posted by Philippe Mathieu-Daudé 12 months ago
On 27/11/23 06:20, Gustavo Romero wrote:
> Because now there is also an MMIO ivshmem device (ivshmem-flat.c), and
> ivshmem.c is a PCI specific implementation, rename it to ivshmem-pci.c.
> 
> Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
> ---
>   hw/misc/{ivshmem.c => ivshmem-pci.c} | 0
>   hw/misc/meson.build                  | 2 +-
>   2 files changed, 1 insertion(+), 1 deletion(-)
>   rename hw/misc/{ivshmem.c => ivshmem-pci.c} (100%)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>