@@ -22,7 +22,7 @@
#include <sys/select.h>
#include "qemu/queue.h"
-#include "hw/misc/ivshmem.h"
+#include "hw/misc/ivshmem-pci.h"
/**
* Maximum number of notification vectors supported by the client
@@ -30,7 +30,7 @@
#include "qemu/event_notifier.h"
#include "qemu/queue.h"
-#include "hw/misc/ivshmem.h"
+#include "hw/misc/ivshmem-pci.h"
/**
* Maximum number of notification vectors supported by the server
@@ -85,7 +85,7 @@ Emulated Devices
devices/can.rst
devices/ccid.rst
devices/cxl.rst
- devices/ivshmem.rst
+ devices/ivshmem-pci.rst
devices/ivshmem-flat.rst
devices/keyboard.rst
devices/net.rst
@@ -17,7 +17,7 @@ running Linux), and an arm VM (using the ivshmem-flat device and running Zephyr
instead).
The ivshmem-flat device does not support the use of a ``memdev`` option (see
-ivshmem.rst for more details). It relies on the ivshmem server to create and
+ivshmem-pci.rst for more details). It relies on the ivshmem server to create and
distribute the proper shared memory file descriptor and the eventfd(s) to notify
(interrupt) the peers. Therefore, to use this device, it is always necessary to
have an ivshmem server up and running for proper device creation.
similarity index 96%
rename from docs/system/devices/ivshmem.rst
rename to docs/system/devices/ivshmem-pci.rst
@@ -1,5 +1,5 @@
-Inter-VM Shared Memory device
------------------------------
+Inter-VM Shared Memory PCI device
+---------------------------------
On Linux hosts, a shared memory device is available. The basic syntax
is:
@@ -67,12 +67,12 @@ config MACIO
select MAC_NVRAM
select MOS6522
-config IVSHMEM_DEVICE
+config IVSHMEM_PCI
bool
default y if PCI_DEVICES
depends on PCI && LINUX && IVSHMEM && MSI_NONBROKEN
-config IVSHMEM_FLAT_DEVICE
+config IVSHMEM_FLAT
bool
default y
depends on LINUX && IVSHMEM
@@ -37,7 +37,7 @@
#include "system/hostmem.h"
#include "qapi/visitor.h"
-#include "hw/misc/ivshmem.h"
+#include "hw/misc/ivshmem-pci.h"
#include "qom/object.h"
#define PCI_VENDOR_ID_IVSHMEM PCI_VENDOR_ID_REDHAT_QUMRANET
@@ -38,8 +38,8 @@ 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-pci.c'))
-system_ss.add(when: 'CONFIG_IVSHMEM_FLAT_DEVICE', if_true: files('ivshmem-flat.c'))
+system_ss.add(when: 'CONFIG_IVSHMEM_PCI', if_true: files('ivshmem-pci.c'))
+system_ss.add(when: 'CONFIG_IVSHMEM_FLAT', if_true: files('ivshmem-flat.c'))
system_ss.add(when: 'CONFIG_ALLWINNER_SRAMC', if_true: files('allwinner-sramc.c'))
system_ss.add(when: 'CONFIG_ALLWINNER_A10_CCM', if_true: files('allwinner-a10-ccm.c'))
similarity index 88%
rename from include/hw/misc/ivshmem.h
rename to include/hw/misc/ivshmem-pci.h
@@ -17,9 +17,9 @@
* Contributions after 2012-01-13 are licensed under the terms of the
* GNU GPL, version 2 or (at your option) any later version.
*/
-#ifndef IVSHMEM_H
-#define IVSHMEM_H
+#ifndef IVSHMEM_PCI_H
+#define IVSHMEM_PCI_H
#define IVSHMEM_PROTOCOL_VERSION 0
-#endif /* IVSHMEM_H */
+#endif /* IVSHMEM_PCI_H */
@@ -37,7 +37,7 @@ endif
qtests_pci = \
(config_all_devices.has_key('CONFIG_VGA') ? ['display-vga-test'] : []) + \
- (config_all_devices.has_key('CONFIG_IVSHMEM_DEVICE') ? ['ivshmem-test'] : [])
+ (config_all_devices.has_key('CONFIG_IVSHMEM_PCI') ? ['ivshmem-test'] : [])
qtests_cxl = \
(config_all_devices.has_key('CONFIG_CXL') ? ['cxl-test'] : [])
For consistency, rename the remaining parts of ivshmem PCI device after it was renamed from ivshmem to ivshmem-pci. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> --- contrib/ivshmem-client/ivshmem-client.h | 2 +- contrib/ivshmem-server/ivshmem-server.h | 2 +- docs/system/device-emulation.rst | 2 +- docs/system/devices/ivshmem-flat.rst | 2 +- docs/system/devices/{ivshmem.rst => ivshmem-pci.rst} | 4 ++-- hw/misc/Kconfig | 4 ++-- hw/misc/ivshmem-pci.c | 2 +- hw/misc/meson.build | 4 ++-- include/hw/misc/{ivshmem.h => ivshmem-pci.h} | 6 +++--- tests/qtest/meson.build | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) rename docs/system/devices/{ivshmem.rst => ivshmem-pci.rst} (96%) rename include/hw/misc/{ivshmem.h => ivshmem-pci.h} (88%)