Home
last modified time | relevance | path

Searched +full:num +full:- +full:guest +full:- +full:ids (Results 1 – 25 of 25) sorted by relevance

/linux/include/uapi/linux/
H A Dvirtio_ring.h42 /* This marks a buffer as write-only (otherwise read-only). */
54 /* The Host uses this in used->flags to advise the Guest: don't kick me when
55 * you add a buffer. It's unreliable, so it's simply an optimization. Guest
58 /* The Guest uses this in avail->flags to advise the Host: don't interrupt me
83 /* The Guest publishes the used index for which it expects an interrupt
84 * at the end of the avail ring. Host should ignore the avail->flags field. */
86 * at the end of the used ring. Guest should ignore the used->flags field. */
90 * When using pre-virtio 1.0 layout, these fall out naturally.
97 * struct vring_desc - Virtio ring descriptors,
100 * @addr: buffer address (guest-physical)
[all …]
H A Dvhost.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 /* Userspace interface for in-kernel virtio accelerators. */
8 * Existing virtio net code is used in the guest without modification.
18 #define VHOST_FILE_UNBIND -1
76 /* Get accessor: reads index, writes value in num */
79 /* Set the vring byte order in num. Valid values are VHOST_VRING_LITTLE_ENDIAN
80 * or VHOST_VRING_BIG_ENDIAN (other values return -EINVAL).
82 * returns -EBUSY.
130 * used for transmit. Pass fd -1 to unbind from the socket and the transmit
151 /* Get the device id. The device ids follow the same definition of
[all …]
/linux/drivers/irqchip/
H A Dirq-riscv-imsic-state.c1 // SPDX-License-Identifier: GPL-2.0
7 #define pr_fmt(fmt) "riscv-imsic: " fmt
22 #include "irq-riscv-imsic-state.h"
63 return imsic ? &imsic->global : NULL; in imsic_get_global_config()
74 imask = BIT(id & (__riscv_xlen - 1)); in __imsic_eix_read_clear()
102 * are XLEN-wide and we must not touch IDs which in __imsic_eix_update()
106 for (i = id & (__riscv_xlen - 1); id < last_id && i < __riscv_xlen; i++) { in __imsic_eix_update()
134 lockdep_assert_held(&lpriv->lock); in __imsic_local_sync()
136 for_each_set_bit(i, lpriv->dirty_bitmap, imsic->global.nr_ids + 1) { in __imsic_local_sync()
139 vec = &lpriv->vectors[i]; in __imsic_local_sync()
[all …]
/linux/arch/x86/kernel/cpu/
H A Dtopology.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * The APIC IDs describe the system topology in multiple domain levels.
11 * The root space contains the package (socket) IDs.
50 u32 cpuid_to_apicid[] __ro_after_init = { [0 ... NR_CPUS - 1] = BAD_APICID, };
81 if (!(apicid & (__max_threads_per_core - 1))) in cpu_mark_primary_thread()
96 return apicid & (UINT_MAX << x86_topo_system.dom_shifts[dom - 1]); in topo_apicid()
108 return -ENODEV; in topo_lookup_cpuid()
232 * of the APICs via firmware parsers or VM guest in topo_register_apic()
247 * on bare metal. Allow the bogosity in a guest. in topo_register_apic()
251 pr_info_once("Ignoring hot-pluggable APIC ID %x in present package.\n", in topo_register_apic()
[all …]
/linux/tools/include/uapi/linux/
H A Dvhost.h
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dvhost.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 /* Userspace interface for in-kernel virtio accelerators. */
8 * Existing virtio net code is used in the guest without modification.
18 #define VHOST_FILE_UNBIND -1
76 /* Get accessor: reads index, writes value in num */
79 /* Set the vring byte order in num. Valid values are VHOST_VRING_LITTLE_ENDIAN
80 * or VHOST_VRING_BIG_ENDIAN (other values return -EINVAL).
82 * returns -EBUSY.
130 * used for transmit. Pass fd -1 to unbind from the socket and the transmit
151 /* Get the device id. The device ids follow the same definition of
[all …]
/linux/Documentation/networking/device_drivers/ethernet/intel/
H A Diavf.rst1 .. SPDX-License-Identifier: GPL-2.0+
8 Copyright(c) 2013-2018 Intel Corporation.
13 - Overview
14 - Identifying Your Adapter
15 - Additional Configurations
16 - Known Issues/Troubleshooting
17 - Support
30 The guest OS loading the iavf driver must support MSI-X interrupts.
53 ---------------------
58 # dmesg -n 8
[all …]
/linux/arch/um/drivers/
H A Dvirtio_uml.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Virtio vhost-user driver
7 * This driver allows virtio devices to be used over a vhost-user socket.
9 * Guest devices can be instantiated by kernel module or command line
14 * <socket> := vhost-user socket path to connect
21 * Based on Virtio MMIO driver by Pawel Moll, copyright 2011-2014, ARM Ltd.
30 #include <linux/time-internal.h>
31 #include <linux/virtio-uml.h>
32 #include <shared/as-layout.h>
76 #define vu_err(vu_dev, ...) dev_err(&(vu_dev)->pdev->dev, ##__VA_ARGS__)
[all …]
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat2 # SPDX-License-Identifier: GPL-2.0-only
4 # top-like utility for displaying kvm statistics
6 # Copyright 2006-2008 Qumranet Technologies
7 # Copyright 2008-2011 Red Hat, Inc.
15 - as a top-like text ui
16 - in a key -> value format
17 - in an all keys, all values format
493 Used to set up performance events, returns a file descriptor or -1
497 - syscall number
498 - struct perf_event_attr *
[all …]
/linux/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c1 // SPDX-License-Identifier: GPL-2.0-only
41 ksft_exit_skip("- Cannot open '%s': %s. %s\n", in __open_path_or_exit()
56 * flags - The flags to pass when opening KVM_DEV_PATH.
101 * 16 bytes to hold a 64-bit value (1 byte per char), 1 byte for the in kvm_get_module_param_integer()
111 TEST_ASSERT(value[r - 1] == '\n', in kvm_get_module_param_integer()
112 "Expected trailing newline, got char '%c'", value[r - 1]); in kvm_get_module_param_integer()
116 * trailing non-NUL characters in the string. in kvm_get_module_param_integer()
118 value[r - 1] = '\0'; in kvm_get_module_param_integer()
142 * cap - Capability
174 vm->dirty_ring_size = ring_size; in vm_enable_dirty_ring()
[all …]
/linux/arch/powerpc/sysdev/xive/
H A Dcommon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
31 #include <asm/xive-regs.h>
34 #include "xive-internal.h"
40 #define DBG_VERBOSE(fmt, ...) pr_devel("cpu %d - " fmt, \
73 * Use early_cpu_to_node() for hot-plugged CPUs
85 #define XIVE_INVALID_TARGET (-1)
94 return xd->flags & XIVE_IRQ_FLAG_STORE_EOI && xive_store_eoi; in xive_is_store_eoi()
107 if (!q->qpage) in xive_read_eq()
109 cur = be32_to_cpup(q->qpage + q->idx); in xive_read_eq()
112 if ((cur >> 31) == q->toggle) in xive_read_eq()
[all …]
/linux/arch/loongarch/kvm/
H A Dvcpu.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2020-2023 Loongson Technology Corporation Limited
44 context = this_cpu_ptr(vcpu->kvm->arch.vmcs); in kvm_save_host_pmu()
45 context->perf_cntr[0] = read_csr_perfcntr0(); in kvm_save_host_pmu()
46 context->perf_cntr[1] = read_csr_perfcntr1(); in kvm_save_host_pmu()
47 context->perf_cntr[2] = read_csr_perfcntr2(); in kvm_save_host_pmu()
48 context->perf_cntr[3] = read_csr_perfcntr3(); in kvm_save_host_pmu()
49 context->perf_ctrl[0] = write_csr_perfctrl0(0); in kvm_save_host_pmu()
50 context->perf_ctrl[1] = write_csr_perfctrl1(0); in kvm_save_host_pmu()
51 context->perf_ctrl[2] = write_csr_perfctrl2(0); in kvm_save_host_pmu()
[all …]
/linux/include/linux/
H A Dremoteproc.h47 * struct resource_table - firmware resource table header
49 * @num: number of resource entries
75 u32 num; member
81 * struct fw_rsc_hdr - firmware resource entry header
95 * enum fw_resource_type - types of resource entries
99 * @RSC_DEVMEM: request to iommu_map a memory-based peripheral.
126 #define FW_RSC_ADDR_ANY (-1)
129 * struct fw_rsc_carveout - physically contiguous memory request
135 * @name: human-readable name of the requested memory region
181 * struct fw_rsc_devmem - iommu mapping request
[all …]
/linux/arch/riscv/kvm/
H A Daia_imsic.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/irqchip/riscv-imsic.h>
45 * 1) Hardware: IMSIC VS-file (vsfile_cpu >= 0)
46 * 2) Software: IMSIC SW-file (vsfile_cpu < 0)
49 /* IMSIC VS-file */
56 /* IMSIC SW-file */
244 imsic_mrif_atomic_rmw(__mrif, __ptr, __new_val, -1UL)
254 &mrif->eithreshold); in imsic_mrif_topei()
259 eix = &mrif->eix[ei]; in imsic_mrif_topei()
260 eipend[0] = imsic_mrif_atomic_read(mrif, &eix->eie[0]) & in imsic_mrif_topei()
[all …]
/linux/tools/arch/x86/kcpuid/
H A Dcpuid.csv1 # SPDX-License-Identifier: CC0-1.0
2 # Generator: x86-cpuid-db v2.4
5 # Auto-generated file.
6 # Please submit all updates and bugfixes to https://x86-cpuid.org
16 0x0, 0, ebx, 31:0, cpu_vendorid_0 , CPU vendor ID string bytes 0 - 3
17 0x0, 0, ecx, 31:0, cpu_vendorid_2 , CPU vendor ID string bytes 8 - 11
18 0x0, 0, edx, 31:0, cpu_vendorid_1 , CPU vendor ID string bytes 4 -
[all...]
/linux/arch/x86/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
4 bool "64-bit kernel" if "$(ARCH)" = "x86"
7 Say yes to build a 64-bit kernel - formerly known as x86_64
8 Say no to build a 32-bit kernel - formerly known as i386
13 # Options that are inherently 32-bit kernel only:
26 # Options that are inherently 64-bit kernel only:
56 # ported to 32-bit as well. )
158 # Word-size accesses may read uninitialized data past the trailing \0
342 default "elf32-i386" if X86_32
343 default "elf64-x86-64" if X86_64
[all …]
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_execbuf.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
4 * Copyright (c) 2009-2025 Broadcom. All Rights Reserved. The term
29 __sw_context->dx_ctx_node ? __sw_context->dx_ctx_node : ({ \
31 __sw_context->dx_ctx_node; \
42 * struct vmw_relocation - Buffer object relocation
45 * @vbo: Non ref-counted pointer to buffer object
47 * @location: Pointer to location for guest pointer to be modified
59 * enum vmw_resource_relocation_type - Relocation type for resources
66 * validation is -1, the command is replaced with a NOP. Otherwise no action.
67 * @vmw_res_rel_max: Last value in the enum - used for error checking
[all …]
/linux/drivers/net/xen-netback/
H A Dxenbus.c1 // SPDX-License-Identifier: GPL-2.0-or-later
28 struct xenvif_queue *queue = m->private; in xenvif_read_io_ring()
29 struct xen_netif_tx_back_ring *tx_ring = &queue->tx; in xenvif_read_io_ring()
30 struct xen_netif_rx_back_ring *rx_ring = &queue->rx; in xenvif_read_io_ring()
33 if (tx_ring->sring) { in xenvif_read_io_ring()
34 struct xen_netif_tx_sring *sring = tx_ring->sring; in xenvif_read_io_ring()
36 seq_printf(m, "Queue %d\nTX: nr_ents %u\n", queue->id, in xenvif_read_io_ring()
37 tx_ring->nr_ents); in xenvif_read_io_ring()
39 sring->req_prod, in xenvif_read_io_ring()
40 sring->req_prod - sring->rsp_prod, in xenvif_read_io_ring()
[all …]
/linux/drivers/block/xen-blkback/
H A Dxenbus.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #define pr_fmt(fmt) "xen-blkback: " fmt
18 /* On the XenBus the max length of 'ring-ref%u'. */
40 return be->dev; in xen_blkbk_xenbus()
58 struct xenbus_device *dev = blkif->be->dev; in blkback_name()
60 devpath = xenbus_read(XBT_NIL, dev->nodename, "dev", NULL); in blkback_name()
70 snprintf(buf, TASK_COMM_LEN, "%d.%s", blkif->domid, devname); in blkback_name()
84 if (!blkif->rings || !blkif->rings[0].irq || !blkif->vbd.bdev_file) in xen_update_blkif_status()
88 if (blkif->be->dev->state == XenbusStateConnected) in xen_update_blkif_status()
92 connect(blkif->be); in xen_update_blkif_status()
[all …]
/linux/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3.c1 // SPDX-License-Identifier: GPL-2.0
19 #include <linux/io-pgtable.h>
27 #include <linux/pci-ats.h>
33 #include "arm-smmu-v3.h"
34 #include "../../dma-iommu.h"
39 "Disable MSI-based polling for CMD_SYNC completion.");
82 { ARM_SMMU_OPT_SKIP_PREFETCH, "hisilicon,broken-prefetch-cmd" },
83 { ARM_SMMU_OPT_PAGE0_REGS_ONLY, "cavium,cn9900-broken-page1-regspace"},
116 if (of_property_read_bool(smmu->dev->of_node, in parse_driver_options()
118 smmu->options |= arm_smmu_options[i].opt; in parse_driver_options()
[all …]
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt16 force -- enable ACPI if default was off
17 on -- enable ACPI but allow fallback to DT [arm64,riscv64]
18 off -- disable ACPI if default was on
19 noirq -- do not use ACPI for IRQ routing
20 strict -- Be less tolerant of platforms that are not
22 rsdt -- prefer RSDT over (default) XSDT
23 copy_dsdt -- copy DSDT to memory
24 nocmcff -- Disable firmware first mode for corrected
28 nospcr -- disable console in ACPI SPCR table as
45 If set to vendor, prefer vendor-specific driver
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_xgmi.c308 return -EINVAL; in amdgpu_xgmi_get_ext_link()
311 return -EINVAL; in amdgpu_xgmi_get_ext_link()
336 addr += adev->asic_funcs->encode_ext_smn_addressing(i); in xgmi_v6_4_get_link_status()
351 return -EOPNOTSUPP; in amdgpu_get_xgmi_link_status()
355 return -ENOLINK; in amdgpu_get_xgmi_link_status()
368 * hive ID and individual node IDs, both of which are 64-bit numbers.
373 * Inside the device directory a sub-directory 'xgmi_hive_info' is
383 * set of node sub-directories.
408 return snprintf(buf, PAGE_SIZE, "%llu\n", hive->hive_id); in amdgpu_xgmi_show_attrs()
418 amdgpu_reset_put_reset_domain(hive->reset_domain); in amdgpu_xgmi_hive_release()
[all …]
/linux/tools/perf/
H A Dbuiltin-record.c1 // SPDX-License-Identifier: GPL-2.0
3 * builtin-record.c
6 * (or a CPU, or a PID) into the perf.data output file - for
11 #include "util/build-id.h"
12 #include <subcmd/parse-options.h>
14 #include "util/parse-events.h"
38 #include "util/parse-branch-options.h"
39 #include "util/parse-regs-options.h"
42 #include "util/perf-hooks.h"
43 #include "util/cpu-set-sched.h"
[all …]
/linux/drivers/gpu/drm/imagination/
H A Dpvr_rogue_fwif_sf.h1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
47 * - --- ---- ---- ---- ---- ---- ---- ----
48 * 0-11: id number
49 * 12-15: group id number
50 * 16-19: number of parameters
51 * 20-27: unused
52 * 28-30: active: identify SF packet, otherwise regular int32
55 * The following macro assigns those values to the enum generated SF ids list.
114 "UFO PR-Check: [0x%08.8x] is 0x%08.8x requires >= 0x%08.8x" },
116 "UFO SPM PR-Checks for FWCtx 0x%08.8x" },
[all …]
/linux/arch/arm64/tools/
H A Dsysreg1 # SPDX-License-Identifier: GPL-2.0-only
52 # NI - Not implemented
53 # IMP - Implemented
2259 Enum 39:36 IDS
4440 0b11 GUEST
4980 Field 7:0 Num