/qemu/tests/qtest/libqos/ |
H A D | virtio-net.c | 29 static void virtio_net_cleanup(QVirtioNet *interface) in virtio_net_cleanup() argument 33 for (i = 0; i < interface->n_queues; i++) { in virtio_net_cleanup() 34 qvirtqueue_cleanup(interface->vdev->bus, interface->queues[i], alloc); in virtio_net_cleanup() 36 g_free(interface->queues); in virtio_net_cleanup() 39 static void virtio_net_setup(QVirtioNet *interface) in virtio_net_setup() argument 41 QVirtioDevice *vdev = interface->vdev; in virtio_net_setup() 52 interface->n_queues = qvirtio_config_readw(vdev, 8) * 2; in virtio_net_setup() 54 interface->n_queues = 2; in virtio_net_setup() 56 interface->n_queues++; /* Account for the ctrl queue */ in virtio_net_setup() 58 interface->queues = g_new(QVirtQueue *, interface->n_queues); in virtio_net_setup() [all …]
|
H A D | virtio-iommu.c | 25 const char *interface) in qvirtio_iommu_get_driver() argument 27 if (!g_strcmp0(interface, "virtio-iommu")) { in qvirtio_iommu_get_driver() 30 if (!g_strcmp0(interface, "virtio")) { in qvirtio_iommu_get_driver() 34 fprintf(stderr, "%s not present in virtio-iommu-device\n", interface); in qvirtio_iommu_get_driver() 38 static void virtio_iommu_cleanup(QVirtioIOMMU *interface) in virtio_iommu_cleanup() argument 40 qvirtqueue_cleanup(interface->vdev->bus, interface->vq, alloc); in virtio_iommu_cleanup() 43 static void virtio_iommu_setup(QVirtioIOMMU *interface) in virtio_iommu_setup() argument 45 QVirtioDevice *vdev = interface->vdev; in virtio_iommu_setup() 54 interface->vq = qvirtqueue_setup(interface->vdev, alloc, 0); in virtio_iommu_setup() 55 qvirtio_set_driver_ok(interface->vdev); in virtio_iommu_setup() [all …]
|
H A D | virtio-9p.c | 82 static void virtio_9p_cleanup(QVirtio9P *interface) in virtio_9p_cleanup() argument 84 qvirtqueue_cleanup(interface->vdev->bus, interface->vq, alloc); in virtio_9p_cleanup() 87 static void virtio_9p_setup(QVirtio9P *interface) in virtio_9p_setup() argument 91 features = qvirtio_get_features(interface->vdev); in virtio_9p_setup() 93 qvirtio_set_features(interface->vdev, features); in virtio_9p_setup() 95 interface->vq = qvirtqueue_setup(interface->vdev, alloc, 0); in virtio_9p_setup() 96 qvirtio_set_driver_ok(interface->vdev); in virtio_9p_setup() 117 const char *interface) in virtio_9p_get_driver() argument 119 if (!g_strcmp0(interface, "virtio-9p")) { in virtio_9p_get_driver() 122 if (!g_strcmp0(interface, "virtio")) { in virtio_9p_get_driver() [all …]
|
H A D | virtio-scsi.c | 28 const char *interface) in qvirtio_scsi_get_driver() argument 30 if (!g_strcmp0(interface, "virtio-scsi")) { in qvirtio_scsi_get_driver() 33 if (!g_strcmp0(interface, "virtio")) { in qvirtio_scsi_get_driver() 37 fprintf(stderr, "%s not present in virtio-scsi-device\n", interface); in qvirtio_scsi_get_driver() 42 const char *interface) in qvirtio_scsi_device_get_driver() argument 45 return qvirtio_scsi_get_driver(&v_scsi->scsi, interface); in qvirtio_scsi_device_get_driver() 53 QVirtioSCSI *interface = &virtio_bdevice->scsi; in virtio_scsi_device_create() local 55 interface->vdev = virtio_dev; in virtio_scsi_device_create() 64 const char *interface) in qvirtio_scsi_pci_get_driver() argument 67 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_scsi_pci_get_driver() [all …]
|
H A D | virtio-balloon.c | 27 const char *interface) in qvirtio_balloon_get_driver() argument 29 if (!g_strcmp0(interface, "virtio-balloon")) { in qvirtio_balloon_get_driver() 32 if (!g_strcmp0(interface, "virtio")) { in qvirtio_balloon_get_driver() 36 fprintf(stderr, "%s not present in virtio-balloon-device\n", interface); in qvirtio_balloon_get_driver() 41 const char *interface) in qvirtio_balloon_device_get_driver() argument 44 return qvirtio_balloon_get_driver(&v_balloon->balloon, interface); in qvirtio_balloon_device_get_driver() 52 QVirtioBalloon *interface = &virtio_bdevice->balloon; in virtio_balloon_device_create() local 54 interface->vdev = virtio_dev; in virtio_balloon_device_create() 63 const char *interface) in qvirtio_balloon_pci_get_driver() argument 66 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_balloon_pci_get_driver() [all …]
|
H A D | virtio-serial.c | 26 const char *interface) in qvirtio_serial_get_driver() argument 28 if (!g_strcmp0(interface, "virtio-serial")) { in qvirtio_serial_get_driver() 31 if (!g_strcmp0(interface, "virtio")) { in qvirtio_serial_get_driver() 35 fprintf(stderr, "%s not present in virtio-serial-device\n", interface); in qvirtio_serial_get_driver() 40 const char *interface) in qvirtio_serial_device_get_driver() argument 43 return qvirtio_serial_get_driver(&v_serial->serial, interface); in qvirtio_serial_device_get_driver() 51 QVirtioSerial *interface = &virtio_device->serial; in virtio_serial_device_create() local 53 interface->vdev = virtio_dev; in virtio_serial_device_create() 61 static void *qvirtio_serial_pci_get_driver(void *object, const char *interface) in qvirtio_serial_pci_get_driver() argument 64 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_serial_pci_get_driver() [all …]
|
H A D | virtio-rng.c | 27 const char *interface) in qvirtio_rng_get_driver() argument 29 if (!g_strcmp0(interface, "virtio-rng")) { in qvirtio_rng_get_driver() 32 if (!g_strcmp0(interface, "virtio")) { in qvirtio_rng_get_driver() 36 fprintf(stderr, "%s not present in virtio-rng-device\n", interface); in qvirtio_rng_get_driver() 41 const char *interface) in qvirtio_rng_device_get_driver() argument 44 return qvirtio_rng_get_driver(&v_rng->rng, interface); in qvirtio_rng_device_get_driver() 52 QVirtioRng *interface = &virtio_rdevice->rng; in virtio_rng_device_create() local 54 interface->vdev = virtio_dev; in virtio_rng_device_create() 62 static void *qvirtio_rng_pci_get_driver(void *object, const char *interface) in qvirtio_rng_pci_get_driver() argument 65 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_rng_pci_get_driver() [all …]
|
H A D | vhost-user-blk.c | 34 const char *interface) in qvhost_user_blk_get_driver() argument 36 if (!g_strcmp0(interface, "vhost-user-blk")) { in qvhost_user_blk_get_driver() 39 if (!g_strcmp0(interface, "virtio")) { in qvhost_user_blk_get_driver() 43 fprintf(stderr, "%s not present in vhost-user-blk-device\n", interface); in qvhost_user_blk_get_driver() 48 const char *interface) in qvhost_user_blk_device_get_driver() argument 51 return qvhost_user_blk_get_driver(&v_blk->blk, interface); in qvhost_user_blk_device_get_driver() 59 QVhostUserBlk *interface = &vhost_user_blk->blk; in vhost_user_blk_device_create() local 61 interface->vdev = virtio_dev; in vhost_user_blk_device_create() 69 static void *qvhost_user_blk_pci_get_driver(void *object, const char *interface) in qvhost_user_blk_pci_get_driver() argument 72 if (!g_strcmp0(interface, "pci-device")) { in qvhost_user_blk_pci_get_driver() [all …]
|
H A D | virtio-blk.c | 31 const char *interface) in qvirtio_blk_get_driver() argument 33 if (!g_strcmp0(interface, "virtio-blk")) { in qvirtio_blk_get_driver() 36 if (!g_strcmp0(interface, "virtio")) { in qvirtio_blk_get_driver() 40 fprintf(stderr, "%s not present in virtio-blk-device\n", interface); in qvirtio_blk_get_driver() 45 const char *interface) in qvirtio_blk_device_get_driver() argument 48 return qvirtio_blk_get_driver(&v_blk->blk, interface); in qvirtio_blk_device_get_driver() 56 QVirtioBlk *interface = &virtio_blk->blk; in virtio_blk_device_create() local 58 interface->vdev = virtio_dev; in virtio_blk_device_create() 66 static void *qvirtio_blk_pci_get_driver(void *object, const char *interface) in qvirtio_blk_pci_get_driver() argument 69 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_blk_pci_get_driver() [all …]
|
H A D | virtio-gpio.c | 52 const char *interface) in qvirtio_gpio_get_driver() argument 54 if (!g_strcmp0(interface, "vhost-user-gpio")) { in qvirtio_gpio_get_driver() 57 if (!g_strcmp0(interface, "virtio")) { in qvirtio_gpio_get_driver() 65 const char *interface) in qvirtio_gpio_device_get_driver() argument 68 return qvirtio_gpio_get_driver(&v_gpio->gpio, interface); in qvirtio_gpio_device_get_driver() 89 QVhostUserGPIO *interface = &virtio_device->gpio; in virtio_gpio_device_create() local 91 interface->vdev = virtio_dev; in virtio_gpio_device_create() 120 static void *qvirtio_gpio_pci_get_driver(void *object, const char *interface) in qvirtio_gpio_pci_get_driver() argument 124 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_gpio_pci_get_driver() 127 return qvirtio_gpio_get_driver(&v_gpio->gpio, interface); in qvirtio_gpio_pci_get_driver() [all …]
|
H A D | virtio-scmi.c | 54 const char *interface) in qvirtio_scmi_get_driver() argument 56 if (!g_strcmp0(interface, "vhost-user-scmi")) { in qvirtio_scmi_get_driver() 59 if (!g_strcmp0(interface, "virtio")) { in qvirtio_scmi_get_driver() 67 const char *interface) in qvirtio_scmi_device_get_driver() argument 70 return qvirtio_scmi_get_driver(&v_scmi->scmi, interface); in qvirtio_scmi_device_get_driver() 91 QVhostUserSCMI *interface = &virtio_device->scmi; in virtio_scmi_device_create() local 93 interface->vdev = virtio_dev; in virtio_scmi_device_create() 122 static void *qvirtio_scmi_pci_get_driver(void *object, const char *interface) in qvirtio_scmi_pci_get_driver() argument 126 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_scmi_pci_get_driver() 129 return qvirtio_scmi_get_driver(&v_scmi->scmi, interface); in qvirtio_scmi_pci_get_driver() [all …]
|
/qemu/ui/ |
H A D | dbus-display1.xml | 6 This interface is implemented on ``/org/qemu/Display1/VM``. 8 <interface name="org.qemu.Display1.VM"> 37 Unlike the standard D-Bus Introspectable interface, querying this 40 (earlier version of the display interface do not provide this property) 43 </interface> 48 This interface is implemented on ``/org/qemu/Display1/Console_$id``. You 60 <interface name="org.qemu.Display1.Console"> 71 :dbus:iface:`org.qemu.Display1.Listener` interface. 152 Unlike the standard D-Bus Introspectable interface, querying this 155 (earlier version of the display interface do not provide this property) [all …]
|
/qemu/tests/unit/ |
H A D | test-qgraph.c | 49 static void check_interface(const char *interface) in check_interface() argument 51 g_assert_cmpint(qos_graph_has_machine(interface), ==, FALSE); in check_interface() 52 g_assert_nonnull(qos_graph_get_node(interface)); in check_interface() 53 g_assert_cmpint(qos_graph_has_node(interface), ==, TRUE); in check_interface() 54 g_assert_cmpint(qos_graph_get_node_type(interface), ==, QNODE_INTERFACE); in check_interface() 55 qos_graph_node_set_availability(interface, TRUE); in check_interface() 56 g_assert_cmpint(qos_graph_get_node_availability(interface), ==, TRUE); in check_interface() 83 static void check_produces(const char *machine, const char *interface) in check_produces() argument 87 qos_node_produces(machine, interface); in check_produces() 88 check_interface(interface); in check_produces() [all …]
|
/qemu/docs/devel/testing/ |
H A D | qgraph.rst | 25 (interface in qgraph terms) and the framework takes care of 28 Following the above example, an interface would be ``sdhci``, 30 that interface. In this way, if the command line of a sdhci driver 47 - **QNODE_INTERFACE**: for example ``sdhci`` (interface for all ``-sdhci`` 49 An interface is not explicitly created, it will be automatically 51 An interface is simply a struct that abstracts the various drivers 54 - **QNODE_TEST**: for example ``sdhci-test``. A test consumes an interface 60 implement ``get_driver()`` to return the allocator mapped to the interface 73 - ``X PRODUCES Y``: ``X`` provides the interface ``Y`` 89 allocated accordingly and the final interface is passed to the test [all …]
|
/qemu/docs/specs/ |
H A D | pvpanic.rst | 15 ISA Interface 35 PCI Interface 38 The PCI interface is similar to the ISA interface except that it uses an MMIO 43 ACPI Interface 56 Returns a byte, with the same semantics as the I/O port interface. 64 Arg0 is a byte to be written, with the same semantics as the I/O interface.
|
H A D | tpm.rst | 7 Guest-side hardware interface 10 TIS interface 13 The QEMU TPM emulation implements a TPM TIS hardware interface 15 Specific TPM Interface Specification (TIS)", Specification Version 19 The TIS interface makes a memory mapped IO region in the area 22 QEMU files related to TPM TIS interface: 36 CRB interface 39 QEMU also implements a TPM CRB interface following the Trusted 44 The CRB interface makes a memory mapped IO region in the area 48 QEMU files related to TPM CRB interface: [all …]
|
H A D | acpi_cpu_hotplug.rst | 1 QEMU<->ACPI BIOS CPU hotplug interface 5 describes the interface between QEMU and the ACPI BIOS. 11 Legacy ACPI CPU hotplug interface registers 20 to modern CPU hotplug interface, write 0 into it to do switch. 27 Modern ACPI CPU hotplug interface registers 189 (x86) Detecting and enabling modern CPU hotplug interface 192 QEMU starts with legacy CPU hotplug interface enabled. Detecting and 193 switching to modern interface is based on the 2 legacy CPU hotplug features: 198 Use following steps to detect and enable modern CPU hotplug interface: 204 If read value is 0x0, the modern interface is enabled. [all …]
|
H A D | fw_cfg.rst | 5 Guest-side Hardware Interface 8 This hardware interface allows the guest to retrieve various data items 42 interface (see below). Furthermore, writeability of any specific item is 56 * Read/Write (writes ignored as of QEMU v2.4, but see the DMA interface) 97 ACPI Interface 118 If the DMA interface is available, then reading the DMA Address 127 - Bit 0: traditional interface. Always set. 128 - Bit 1: DMA interface. 169 the DMA interface in QEMU v2.9+) 172 through the DMA interface in QEMU v2.9+) [all …]
|
/qemu/include/hw/intc/ |
H A D | arm_gic.h | 22 * QEMU interface: 53 * - CPU interface for the accessing core (GICC*) 54 * - virtual interface control registers (GICH*) (only if virt extns present) 55 * - virtual CPU interface for the accessing core (GICV*) (only if virt) 56 * - CPU 0 CPU interface registers 57 * - CPU 1 CPU interface registers 59 * - CPU 0 virtual interface control registers (only if virt extns present) 60 * - CPU 1 virtual interface control registers (only if virt extns present)
|
/qemu/qapi/ |
H A D | net.json | 82 # Create a new Network Interface Card. 206 # Used to configure a host TAP network interface backend. 208 # @ifname: interface name 215 # @script: script to initialize the interface 217 # @downscript: script to shut down the interface 225 # @vnet_hdr: enable the IFF_VNET_HDR flag on the tap interface 370 # Connect a host TAP network interface to a host bridge device. 405 # @ifname: Either the name of an existing network interface supported 442 # @ifname: The name of an existing network interface. 457 # to the interface (default: false). Requires @sock-fds. [all …]
|
/qemu/docs/system/arm/ |
H A D | nuvoton.rst | 47 * DDR4 memory controller (dummy interface indicating memory training is done) 49 * Flash Interface Unit (FIU; no protection features) 63 * LPC/eSPI host-to-BMC interface, including 65 * Keyboard and mouse controller interface (KBCI) 70 * eSPI slave interface 71 * Block-transfer interface (8XX only) 77 * PECI interface 88 * Temperature sensor interface (8XX only)
|
/qemu/include/hw/ |
H A D | resettable.h | 2 * Resettable interface header. 47 * Interface for resettable objects. 52 * All objects which can be reset must implement this interface; 58 * The base class implementation of the interface provides this 151 * implementing the interface. 161 * Resettable interface. 170 * Put an object @obj into reset. @obj must implement Resettable interface. 185 * Release the object @obj from reset. @obj must implement Resettable interface. 195 * @obj must implement Resettable interface. 202 * All 3 objects must implement resettable interface. @oldp or @newp may be
|
/qemu/docs/sphinx/ |
H A D | dbusdomain.py | 52 ifacename = self.env.ref_context.get("dbus:interface") 73 Implementation of ``dbus:interface``. 80 self.env.ref_context["dbus:interface"] = self.arguments[0] 83 self.env.ref_context.pop("dbus:interface") 86 signode += addnodes.desc_annotation("interface ", "interface ") 94 section += nodes.title(name, "%s interface" % name) 254 refnode["dbus:interface"] = env.ref_context.get("dbus:interface") 294 if x[1].objtype == "interface" 333 "interface": ObjType(_("interface"), "iface", "obj"), 339 "interface": DBusInterface,
|
/qemu/include/system/ |
H A D | address-spaces.h | 22 /* Get the root memory region. This interface should only be used temporarily 23 * until a proper bus interface is available. 27 /* Get the root I/O port region. This interface should only be used 28 * temporarily until a proper bus interface is available.
|
/qemu/include/hw/xen/interface/ |
H A D | xen-compat.h | 5 * Guest OS interface to Xen. Compatibility layer. 16 /* Xen is built with matching headers and implements the latest interface. */ 19 /* Guests which do not specify a version get the legacy interface. */ 24 #error "These header files do not support the requested interface version."
|