| /OK3568_Linux_fs/kernel/drivers/virtio/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 config VIRTIO config 5 This option is selected by any driver which implements the virtio 16 bool "Virtio drivers" 22 tristate "PCI driver for virtio devices" 23 depends on PCI 24 select VIRTIO 26 This driver provides support for virtio based paravirtual device 27 drivers over PCI. This requires that your VMM has appropriate PCI 28 virtio backends. Most QEMU based VMMs should support these devices [all …]
|
| H A D | virtio_pci_legacy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Virtio PCI driver - legacy device support 5 * This module allows virtio devices to be used over a virtual PCI device. 19 /* virtio config->get_features() implementation */ 26 return ioread32(vp_dev->ioaddr + VIRTIO_PCI_HOST_FEATURES); in vp_get_features() 29 /* virtio config->finalize_features() implementation */ 38 BUG_ON((u32)vdev->features != vdev->features); in vp_finalize_features() 41 iowrite32(vdev->features, vp_dev->ioaddr + VIRTIO_PCI_GUEST_FEATURES); in vp_finalize_features() 46 /* virtio config->get() implementation */ 51 void __iomem *ioaddr = vp_dev->ioaddr + in vp_get() [all …]
|
| H A D | virtio_pci_common.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Virtio PCI driver - APIs for common functionality for all device versions 7 * This module allows virtio devices to be used over a virtual PCI device. 21 #include <linux/pci.h> 24 #include <linux/virtio.h> 38 /* MSI-X vector (or none) */ 47 /* In legacy mode, these two point to within ->legacy. */ 52 /* The IO mapping for the PCI config space (non-legacy mode) */ 54 /* Device-specific data (non-legacy mode) */ 56 /* Base of vq notifications (non-legacy mode). */ [all …]
|
| H A D | virtio_pci_modern.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Virtio PCI driver - modern (virtio 1.0) device support 5 * This module allows virtio devices to be used over a virtual PCI device. 23 * Type-safe wrappers for io accesses. 27 * method, i.e. 32-bit accesses for 32-bit fields, 16-bit accesses 28 * for 16-bit fields and 8-bit accesses for 8-bit fields. 85 dev_err(&dev->dev, in map_capability() 91 if (length - start < minlen) { in map_capability() 92 dev_err(&dev->dev, in map_capability() 98 length -= start; in map_capability() [all …]
|
| H A D | virtio_pci_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Virtio PCI driver - common functionality for all device versions 5 * This module allows virtio devices to be used over a virtual PCI device. 24 "Force legacy mode for transitional virtio 1 devices"); 33 if (vp_dev->intx_enabled) in vp_synchronize_vectors() 34 synchronize_irq(vp_dev->pci_dev->irq); in vp_synchronize_vectors() 36 for (i = 0; i < vp_dev->msix_vectors; ++i) in vp_synchronize_vectors() 37 synchronize_irq(pci_irq_vector(vp_dev->pci_dev, i)); in vp_synchronize_vectors() 45 iowrite16(vq->index, (void __iomem *)vq->priv); in vp_notify() 54 virtio_config_changed(&vp_dev->vdev); in vp_config_changed() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/virtio/ |
| H A D | iommu.txt | 1 * virtio IOMMU PCI device 3 When virtio-iommu uses the PCI transport, its programming interface is 4 discovered dynamically by the PCI probing infrastructure. However the 6 masters. Therefore, the PCI root complex that hosts the virtio-iommu 11 - compatible: Should be "virtio,pci-iommu" 12 - reg: PCI address of the IOMMU. As defined in the PCI Bus 13 Binding reference [1], the reg property is a five-cell 18 - #iommu-cells: Each platform DMA master managed by the IOMMU is assigned 20 For virtio-iommu, #iommu-cells must be 1. 24 - DMA from the IOMMU device isn't managed by another IOMMU. Therefore the [all …]
|
| H A D | mmio.txt | 1 * virtio memory mapped device 3 See https://ozlabs.org/~rusty/virtio-spec/ for more details. 7 - compatible: "virtio,mmio" compatibility string 8 - reg: control registers base address and size including configuration space 9 - interrupts: interrupt generated by the device 11 Required properties for virtio-iommu: 13 - #iommu-cells: When the node corresponds to a virtio-iommu device, it is 14 linked to DMA masters using the "iommus" or "iommu-map" 15 properties [1][2]. #iommu-cells specifies the size of the 16 "iommus" property. For virtio-iommu #iommu-cells must be [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/conf/machine/ |
| H A D | qemuarm64.conf | 5 require conf/machine/include/arm/armv8a/tune-cortexa57.inc 16 QB_SYSTEM_NAME = "qemu-system-aarch64" 17 QB_MACHINE = "-machine virt" 18 QB_CPU = "-cpu cortex-a57" 19 QB_SMP = "-smp 4" 20 QB_CPU_KVM = "-cpu host -machine gic-version=3" 22 QB_GRAPHICS = "-device virtio-gpu-pci" 23 QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd" 24 # Virtio Networking support 25 QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" [all …]
|
| H A D | qemuarm.conf | 2 #@NAME: QEMU Arm Cortex-A15 machine 5 require conf/machine/include/arm/armv7a/tune-cortexa15.inc 16 QB_SYSTEM_NAME = "qemu-system-arm" 17 QB_MACHINE = "-machine virt,highmem=off" 18 QB_CPU = "-cpu cortex-a15" 19 QB_SMP = "-smp 4" 23 QB_GRAPHICS = "-device virtio-gpu-pci" 24 QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd" 25 # Virtio Networking support 26 QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/ |
| H A D | 0007_let_dma_memory_map_function_take_MemTxAttrs_argument.patch | 2 From: =?utf8?q?Philippe=20Mathieu-Daud=C3=A9?= <philmd@redhat.com> 5 MIME-Version: 1.0 6 Content-Type: text/plain; charset=utf8 7 Content-Transfer-Encoding: 8bit 17 - dma_memory_map(E1, E2, E3, E4) 20 CVE: CVE-2021-3611 21 Upstream-Status: Backport [https://git.qemu.org/?p=qemu.git;a=commit;h=a1d4b0a3051b3079c8db607f519b… 23 Reviewed-by: Richard Henderson <richard.henderson@linaro.org> 24 Reviewed-by: Li Qiang <liq3ea@gmail.com> 25 Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_drv.c | 31 #include <linux/pci.h> 42 static int virtio_gpu_modeset = -1; 49 struct pci_dev *pdev = to_pci_dev(vdev->dev.parent); in virtio_gpu_pci_quirk() 50 const char *pname = dev_name(&pdev->dev); in virtio_gpu_pci_quirk() 51 bool vga = (pdev->class >> 8) == PCI_CLASS_DISPLAY_VGA; in virtio_gpu_pci_quirk() 54 DRM_INFO("pci: %s detected at %s\n", in virtio_gpu_pci_quirk() 55 vga ? "virtio-vga" : "virtio-gpu-pci", in virtio_gpu_pci_quirk() 57 dev->pdev = pdev; in virtio_gpu_pci_quirk() 64 * The following comment covers, why virtio cannot rely on it. in virtio_gpu_pci_quirk() 66 * Unlike the other virtual GPU drivers, virtio abstracts the in virtio_gpu_pci_quirk() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | net_failover.rst | 1 .. SPDX-License-Identifier: GPL-2.0 19 'pci' device. The user accesses the network interface via 'failover' netdev. 28 virtio-net accelerated datapath: STANDBY mode 31 net_failover enables hypervisor controlled accelerated datapath to virtio-net 35 feature on the virtio-net interface and assign the same MAC address to both 36 virtio-net and VF interfaces. 45 <model type='virtio'/> 48 <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/> 53 <address type='pci' domain='0x0000' bus='0x42' slot='0x02' function='0x5'/> 55 <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/> [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/conf/machine/include/riscv/ |
| H A D | qemuriscv.inc | 1 PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot" 4 require conf/machine/include/riscv/tune-riscv.inc 19 MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" 23 RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin" 29 QB_SMP = "-smp 4" 31 QB_MACHINE = "-machine virt" 33 QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" 34 QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" 35 QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=d… 36 QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=… [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/virt/ |
| H A D | ne_overview.rst | 1 .. SPDX-License-Identifier: GPL-2.0 26 1. An enclave abstraction process - a user space process running in the primary 30 There is a NE emulated PCI device exposed to the primary VM. The driver for this 31 new PCI device is included in the NE driver. 33 The ioctl logic is mapped to PCI device commands e.g. the NE_START_ENCLAVE ioctl 34 maps to an enclave start PCI command. The PCI device commands are then 39 2. The enclave itself - a VM running on the same host as the primary VM that 55 using virtio-vsock [5]. The primary VM has virtio-pci vsock emulated device, 56 while the enclave VM has a virtio-mmio vsock emulated device. The vsock device 57 uses eventfd for signaling. The enclave VM sees the usual interfaces - local [all …]
|
| /OK3568_Linux_fs/kernel/tools/virtio/virtio-trace/ |
| H A D | README | 1 Trace Agent for virtio-trace 6 - splice a page of ring-buffer to read_pipe without memory copying 7 - splice the page from write_pipe to virtio-console without memory copying 8 - write trace data to stdout by using -o option 9 - controlled by start/stop orders from a Host 18 5) The read/write threads start to read trace data from ring-buffers and 19 write the data to virtio-serial. 28 Makefile: Makefile of trace agent for virtio-trace 29 trace-agent.c: includes main function, sets up for operating trace agent 30 trace-agent.h: includes all structures and some macros [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/classes/ |
| H A D | qemuboot.bbclass | 5 # QB_SYSTEM_NAME: qemu name, e.g., "qemu-system-i386" 7 # QB_OPT_APPEND: options to append to qemu, e.g., "-device usb-mouse" 10 # e.g., "bzImage-initramfs-qemux86-64.bin" if INITRAMFS_… 14 # QB_MEM: memory, e.g., "-m 512" 16 # QB_MACHINE: qemu machine, e.g., "-machine virt" 18 # QB_CPU: qemu cpu, e.g., "-cpu qemu32" 20 # QB_CPU_KVM: the similar to QB_CPU, but used when kvm, e.g., '-cpu kvm64', 24 # e.g. "-smp 8". 26 # QB_KERNEL_CMDLINE_APPEND: options to append to kernel's -append 33 # QB_AUDIO_OPT: qemu audio option, e.g., "-device AC97", used [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | virtio_pci.h | 2 * Virtio PCI driver 4 * This module allows virtio devices to be used over a virtual PCI device. 46 /* A 32-bit r/o bitmask of the features supported by the host */ 49 /* A 32-bit r/w bitmask of features activated by the guest */ 52 /* A 32-bit r/w PFN for the currently selected queue */ 55 /* A 16-bit r/o queue size for the currently selected queue */ 58 /* A 16-bit r/w queue selector */ 61 /* A 16-bit r/w queue notifier */ 64 /* An 8-bit device status register. */ 67 /* An 8-bit r/o interrupt status register. Reading the value will return the [all …]
|
| H A D | virtio_mmio.h | 2 * Virtio platform device driver 6 * Based on Virtio PCI driver by Anthony Liguori, copyright IBM Corp. 2007 42 /* Magic value ("virt" string) - Read Only */ 45 /* Virtio device version - Read Only */ 48 /* Virtio device ID - Read Only */ 51 /* Virtio vendor ID - Read Only */ 55 * (32 bits per set) - Read Only */ 58 /* Device (host) features set selector - Write Only */ 62 * (32 bits per set) - Write Only */ 65 /* Activated features set selector - Write Only */ [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | virtio_pci.h | 2 * Virtio PCI driver 4 * This module allows virtio devices to be used over a virtual PCI device. 46 /* A 32-bit r/o bitmask of the features supported by the host */ 49 /* A 32-bit r/w bitmask of features activated by the guest */ 52 /* A 32-bit r/w PFN for the currently selected queue */ 55 /* A 16-bit r/o queue size for the currently selected queue */ 58 /* A 16-bit r/w queue selector */ 61 /* A 16-bit r/w queue notifier */ 64 /* An 8-bit device status register. */ 67 /* An 8-bit r/o interrupt status register. Reading the value will return the [all …]
|
| H A D | virtio_mmio.h | 2 * Virtio platform device driver 6 * Based on Virtio PCI driver by Anthony Liguori, copyright IBM Corp. 2007 42 /* Magic value ("virt" string) - Read Only */ 45 /* Virtio device version - Read Only */ 48 /* Virtio device ID - Read Only */ 51 /* Virtio vendor ID - Read Only */ 55 * (32 bits per set) - Read Only */ 58 /* Device (host) features set selector - Write Only */ 62 * (32 bits per set) - Write Only */ 65 /* Activated features set selector - Write Only */ [all …]
|
| /OK3568_Linux_fs/kernel/tools/ |
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 12 @echo ' acpi - ACPI tools' 13 @echo ' bpf - misc BPF tools' 14 @echo ' cgroup - cgroup tools' 15 @echo ' cpupower - a tool for all things x86 CPU power' 16 @echo ' debugging - tools for debugging' 17 @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer' 18 @echo ' firmware - Firmware tools' 19 @echo ' freefall - laptop accelerometer program for disk protection' 20 @echo ' gpio - GPIO tools' [all …]
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | virtio_pci.h | 2 * Virtio PCI driver 4 * This module allows virtio devices to be used over a virtual PCI device. 46 /* A 32-bit r/o bitmask of the features supported by the host */ 49 /* A 32-bit r/w bitmask of features activated by the guest */ 52 /* A 32-bit r/w PFN for the currently selected queue */ 55 /* A 16-bit r/o queue size for the currently selected queue */ 58 /* A 16-bit r/w queue selector */ 61 /* A 16-bit r/w queue notifier */ 64 /* An 8-bit device status register. */ 67 /* An 8-bit r/o interrupt status register. Reading the value will return the [all …]
|
| H A D | virtio_mmio.h | 2 * Virtio platform device driver 6 * Based on Virtio PCI driver by Anthony Liguori, copyright IBM Corp. 2007 42 /* Magic value ("virt" string) - Read Only */ 45 /* Virtio device version - Read Only */ 48 /* Virtio device ID - Read Only */ 51 /* Virtio vendor ID - Read Only */ 55 * (32 bits per set) - Read Only */ 58 /* Device (host) features set selector - Write Only */ 62 * (32 bits per set) - Write Only */ 65 /* Activated features set selector - Write Only */ [all …]
|
| /OK3568_Linux_fs/buildroot/support/testing/tests/package/ |
| H A D | test_docker_compose.py | 29 infra.filepath("tests/package/copy-sample-script-to-target.sh"), 30 infra.filepath("conf/docker-compose.yml"), 31 infra.filepath("conf/docker-compose-kernel.config")) 35 _, _ = self.emulator.run('while [ ! -e /var/run/docker.sock ]; do sleep 1; done', 120) 39 self.assertRunOk('docker run --rm -p 8888:8888 busybox:latest /bin/true', 120) 43 self.assertRunOk('docker-compose up -d', 120) 46 self.assertRunOk('wget -O /tmp/busybox http://127.0.0.1/busybox', 120) 55 options=["-cpu", "Nehalem", 56 "-m", "512M", 57 "-device", "virtio-rng-pci", [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iommu/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 # The IOVA library may also be used by non-IOMMU_API users 6 # The IOASID library may also be used by non-IOMMU_API users 69 sizes at both stage-1 and stage-2, as well as address spaces 70 up to 48-bits in size. 76 Enable self-tests for LPAE page table allocator. This performs 77 a series of page-table consistency checks during boot. 86 Enable support for the ARM Short-descriptor pagetable format. 87 This supports 32-bit virtual and physical addresses mapped using 88 2-level tables with 4KB pages/1MB sections, and contiguous entries [all …]
|