Home
last modified time | relevance | path

Searched +full:- +full:path (Results 1 – 25 of 962) sorted by relevance

12345678910>>...39

/qemu/python/qemu/utils/
H A Dqom_fuse.py10 usage: qom-fuse [-h] [--socket SOCKET] <mount>
18 -h, --help show this help message and exit
19 --socket SOCKET, -s SOCKET
20 QMP socket path or address (addr:port). May also be
32 # See the COPYING file in the top-level directory.
70 def configure_parser(cls, parser: argparse.ArgumentParser) -> None:
85 def run(self) -> int:
90 def get_ino(self, path: str) -> int:
91 """Get an inode number for a given QOM path."""
92 if path in self.ino_map:
[all …]
H A Dqom.py4 usage: qom [-h] {set,get,list,tree,fuse} ...
9 -h, --help show this help message and exit
15 list List QOM properties at a given path
16 tree Show QOM tree from a given path
28 # See the COPYING file in the top-level directory.
30 # Based on ./scripts/qmp/qom-[set|get|tree|list]
51 QOM Command - Set a property to a given value.
53 usage: qom-set [-h] [--socket SOCKET] <path>.<property> <value>
58 <path>.<property> QOM path and property, separated by a period '.'
62 -h, --help show this help message and exit
[all …]
/qemu/hw/9pfs/
H A D9p-xattr.c10 * the COPYING file in the top-level directory.
21 #include "fsdev/file-op-9p.h"
22 #include "9p-xattr.h"
23 #include "9p-util.h"
24 #include "9p-local.h"
32 if (!strncmp(name, xops->name, strlen(xops->name))) { in get_xattr_operations()
39 ssize_t v9fs_get_xattr(FsContext *ctx, const char *path, in v9fs_get_xattr() argument
42 XattrOperations *xops = get_xattr_operations(ctx->xops, name); in v9fs_get_xattr()
44 return xops->getxattr(ctx, path, name, value, size); in v9fs_get_xattr()
47 return -1; in v9fs_get_xattr()
[all …]
H A Dcofs.c10 * the COPYING file in the top-level directory.
20 #include "fsdev/qemu-fsdev.h"
22 #include "qemu/main-loop.h"
25 static ssize_t __readlink(V9fsState *s, V9fsPath *path, V9fsString *buf) in __readlink() argument
29 buf->data = g_malloc(PATH_MAX); in __readlink()
31 len = s->ops->readlink(&s->ctx, path, buf->data, maxlen); in __readlink()
33 g_free(buf->data); in __readlink()
34 buf->data = NULL; in __readlink()
35 buf->size = 0; in __readlink()
43 g_free(buf->data); in __readlink()
[all …]
H A Dcofile.c10 * the COPYING file in the top-level directory.
20 #include "fsdev/qemu-fsdev.h"
22 #include "qemu/main-loop.h"
23 #include "qemu/error-report.h"
26 int coroutine_fn v9fs_co_st_gen(V9fsPDU *pdu, V9fsPath *path, mode_t st_mode, in v9fs_co_st_gen() argument
30 V9fsState *s = pdu->s; in v9fs_co_st_gen()
33 return -EINTR; in v9fs_co_st_gen()
35 if (s->ctx.exops.get_st_gen) { in v9fs_co_st_gen()
39 err = s->ctx.exops.get_st_gen(&s->ctx, path, st_mode, in v9fs_co_st_gen()
40 &v9stat->st_gen); in v9fs_co_st_gen()
[all …]
H A D9p-xattr.h10 * the COPYING file in the top-level directory.
21 ssize_t (*getxattr)(FsContext *ctx, const char *path,
23 ssize_t (*listxattr)(FsContext *ctx, const char *path,
25 int (*setxattr)(FsContext *ctx, const char *path, const char *name,
28 const char *path, const char *name);
31 ssize_t local_getxattr_nofollow(FsContext *ctx, const char *path,
33 ssize_t local_setxattr_nofollow(FsContext *ctx, const char *path,
36 ssize_t local_removexattr_nofollow(FsContext *ctx, const char *path,
51 ssize_t v9fs_get_xattr(FsContext *ctx, const char *path, const char *name,
53 ssize_t v9fs_list_xattr(FsContext *ctx, const char *path, void *value,
[all …]
H A D9p-posix-acl.c10 * the COPYING file in the top-level directory.
22 #include "fsdev/file-op-9p.h"
23 #include "9p-xattr.h"
30 static ssize_t mp_pacl_getxattr(FsContext *ctx, const char *path, in mp_pacl_getxattr() argument
33 return local_getxattr_nofollow(ctx, path, MAP_ACL_ACCESS, value, size); in mp_pacl_getxattr()
36 static ssize_t mp_pacl_listxattr(FsContext *ctx, const char *path, in mp_pacl_listxattr() argument
47 return -1; in mp_pacl_listxattr()
55 static int mp_pacl_setxattr(FsContext *ctx, const char *path, const char *name, in mp_pacl_setxattr() argument
58 return local_setxattr_nofollow(ctx, path, MAP_ACL_ACCESS, value, size, in mp_pacl_setxattr()
63 const char *path, const char *name) in mp_pacl_removexattr() argument
[all …]
/qemu/
H A D.gitmodules2 path = roms/seabios
3 url = https://gitlab.com/qemu-project/seabios.git/
5 path = roms/SLOF
6 url = https://gitlab.com/qemu-project/SLOF.git
8 path = roms/ipxe
9 url = https://gitlab.com/qemu-project/ipxe.git
11 path = roms/openbios
12 url = https://gitlab.com/qemu-project/openbios.git
13 [submodule "roms/qemu-palcode"]
14 path = roms/qemu-palcode
[all …]
/qemu/tests/qtest/
H A Dqos-test.c21 #include "libqtest-single.h"
25 #include "qapi/qobject-input-visitor.h"
26 #include "qapi/qapi-visit-machine.h"
27 #include "qapi/qapi-visit-qom.h"
28 #include "libqos/libqos-malloc.h"
40 * This function firstly starts QEMU with "-machine none" option,
59 qtest_start("-machine none"); in qos_set_machines_devices_available()
60 response = qmp("{ 'execute': 'query-machines' }"); in qos_set_machines_devices_available()
74 response = qmp("{'execute': 'qom-list-types'," in qos_set_machines_devices_available()
89 static void restart_qemu_or_continue(char *path) in restart_qemu_or_continue() argument
[all …]
H A Dnetdev-socket.c6 * SPDX-License-Identifier: GPL-2.0-or-later
12 #include "../unit/socket-helpers.h"
16 #include "qapi/qobject-input-visitor.h"
17 #include "qapi/qapi-visit-sockets.h"
51 return -1; in inet_get_free_port_socket_ipv4()
56 return -1; in inet_get_free_port_socket_ipv4()
72 return -1; in inet_get_free_port_socket_ipv6()
77 return -1; in inet_get_free_port_socket_ipv6()
95 if (port[i] == -1) { in inet_get_free_port_multiple()
125 qts0 = qtest_initf("-nodefaults -M none " in test_stream_inet_ipv4()
[all …]
H A Dcpu-plug-test.c7 * See the COPYING file in the top-level directory.
12 #include "libqtest-single.h"
37 args = g_strdup_printf("-machine %s -cpu %s " in test_plug_with_device_add()
38 "-smp 1,sockets=%u,cores=%u,threads=%u,maxcpus=%u", in test_plug_with_device_add()
39 td->machine, td->cpu_model, in test_plug_with_device_add()
40 td->sockets, td->cores, td->threads, td->maxcpus); in test_plug_with_device_add()
43 resp = qtest_qmp(qts, "{ 'execute': 'query-hotpluggable-cpus'}"); in test_plug_with_device_add()
52 if (qdict_haskey(cpu, "qom-path")) { in test_plug_with_device_add()
60 qtest_qmp_device_add_qdict(qts, td->device_model, props); in test_plug_with_device_add()
76 g_free(pc->machine); in test_data_free()
[all …]
H A Dmax34451-test.c6 * SPDX-License-Identifier: GPL-2.0-or-later
11 #include "libqtest-single.h"
18 #define TEST_ID "max34451-test"
47 response = qmp("{ 'execute': 'qom-get', 'arguments': { 'path': %s, " in qmp_max34451_get()
61 response = qmp("{ 'execute': 'qom-set', 'arguments': { 'path': %s, " in qmp_max34451_set()
91 char *path; in test_defaults() local
95 path = g_strdup_printf("temperature[%d]", i); in test_defaults()
96 value = qmp_max34451_get(TEST_ID, path); in test_defaults()
98 g_free(path); in test_defaults()
114 path = g_strdup_printf("vout[%d]", i); in test_defaults()
[all …]
H A Dtest-x86-cpuid-compat.c6 #include "libqtest-single.h"
13 char *path; in get_cpu0_qom_path() local
15 resp = qmp("{'execute': 'query-cpus-fast', 'arguments': {}}"); in get_cpu0_qom_path()
20 path = g_strdup(qdict_get_str(cpu0, "qom-path")); in get_cpu0_qom_path()
22 return path; in get_cpu0_qom_path()
25 static QObject *qom_get(const char *path, const char *prop) in qom_get() argument
27 QDict *resp = qmp("{ 'execute': 'qom-get'," in qom_get()
28 " 'arguments': { 'path': %s," in qom_get()
30 path, prop); in qom_get()
37 static bool qom_get_bool(const char *path, const char *prop) in qom_get_bool() argument
[all …]
/qemu/tests/qtest/fuzz/
H A Dqos_fuzz.c2 * QOS-assisted fuzzing helpers
23 #include "qemu/main-loop.h"
26 #include "tests/qtest/libqos/libqos-malloc.h"
34 #include "qapi/qapi-commands-machine.h"
35 #include "qapi/qapi-commands-qom.h"
67 char **path = fuzz_path_vec; in qos_build_main_args() local
72 if (!path) { in qos_build_main_args()
73 fprintf(stderr, "QOS Path not found\n"); in qos_build_main_args()
78 cmd_line = g_string_new(path[0]); in qos_build_main_args()
79 current_path = path; in qos_build_main_args()
[all …]
/qemu/tests/functional/qemu_test/
H A Dtestcase.py5 # Original Author (Avocado-based tests):
12 # later. See the COPYING file in the top-level directory.
16 from pathlib import Path
37 @params compressed: filename, Asset, or file-like object to uncompress
43 from the filename or Asset URL. @format must be non-None if @uncompressed
44 is a file-like object.
46 Returns the fully qualified path to the uncompressed file
53 (name, ext) = os.path.splitext(str(compressed))
54 uncompressed = self.scratch_file(os.path.basename(name))
61 @params archive: filename, Asset, or file-like object to extract
[all …]
H A Dutils.py1 # Utilities for python-based QEMU tests
9 # later. See the COPYING file in the top-level directory.
17 res = vm.cmd('human-monitor-command', command_line='info usernet')
24 return 1 if x == 0 else 2**(x - 1).bit_length()
26 def file_truncate(path, size): argument
27 if size != os.path.getsize(path):
28 with open(path, 'ab+') as fd:
34 def image_pow2ceil_expand(path): argument
35 size = os.path.getsize(path)
38 with open(path, 'ab+') as fd:
/qemu/qom/
H A Dqom-hmp-cmds.c5 * later. See the COPYING file in the top-level directory.
9 #include "hw/qdev-core.h"
13 #include "qapi/qapi-commands-qom.h"
22 const char *path = qdict_get_try_str(qdict, "path"); in hmp_qom_list() local
26 if (path == NULL) { in hmp_qom_list()
31 list = qmp_qom_list(path, &err); in hmp_qom_list()
35 ObjectPropertyInfo *value = list->value; in hmp_qom_list()
38 value->name, value->type); in hmp_qom_list()
39 list = list->next; in hmp_qom_list()
49 const char *path = qdict_get_str(qdict, "path"); in hmp_qom_set() local
[all …]
/qemu/hw/i386/kvm/
H A Dxen_xenstore.c9 * See the COPYING file in the top-level directory.
14 #include "qemu/host-utils.h"
16 #include "qemu/main-loop.h"
18 #include "qemu/error-report.h"
42 #define TYPE_XEN_XENSTORE "xen-xenstore"
81 static void fire_watch_cb(void *opaque, const char *path, const char *token);
103 err = xs_impl_write(s->impl, DOMID_QEMU, XBT_NULL, abspath, data); in relpath_printf()
108 err = xs_impl_set_perms(s->impl, DOMID_QEMU, XBT_NULL, abspath, perms); in relpath_printf()
123 memory_region_init_ram(&s->xenstore_page, OBJECT(dev), "xen:xenstore_page", in xen_xenstore_realize()
125 memory_region_set_enabled(&s->xenstore_page, true); in xen_xenstore_realize()
[all …]
/qemu/.gitlab-ci.d/
H A Dwindows.yml1 msys2-64bit:
4 - saas-windows-medium-amd64
8 - msys64/var/cache
9 - ccache
20 CONFIGURE_ARGS: --disable-system --enable-tools -Ddebug=false -Doptimization=0
22 GIT_FETCH_EXTRA_FLAGS: --no-tags --prune --quiet
24 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
27 - build/meson-logs/testlog.txt
29 junit: "build/meson-logs/testlog.junit.xml"
31 - Write-Output "Acquiring msys2.exe installer at $(Get-Date -Format u)"
[all …]
/qemu/scripts/
H A Dnsis.py5 # SPDX-License-Identifier: GPL-2.0-or-later
15 def signcode(path): argument
19 subprocess.run([cmd, path])
23 output = subprocess.check_output(["objdump", "-p", exe_or_dll], text=True)
33 dll = os.path.join(search_path, dep)
34 if not os.path.exists(dll):
55 # canonicalize the Windows native prefix path
56 prefix = os.path.splitdrive(args.prefix)[1]
61 os.path.join(destdir + prefix, "system-emulations.nsh"), "w"
63 os.path.join(destdir + prefix, "system-mui-text.nsh"), "w"
[all …]
H A Dqemu-trace-stap2 # -*- python -*-
23 import os.path
30 dirname, filename = os.path.split(binary)
31 return re.sub("-", ".", filename) + ".log"
35 for path in os.environ["PATH"].split(os.pathsep):
36 if os.path.exists(os.path.join(path, binary)):
37 return os.path.join(path, binary)
39 print("Unable to find '%s' in $PATH" % binary)
44 dirname, filename = os.path.split(binary)
48 thisfile = os.path.realpath(binary)
[all …]
/qemu/hw/xen/
H A Dxen-host-pci-device.c5 * the COPYING file in the top-level directory.
12 #include "hw/xen/xen-legacy-backend.h"
13 #include "hw/xen/xen-bus-helper.h"
14 #include "xen-host-pci-device.h"
17 ((PCIE_CONFIG_SPACE_SIZE - PCI_CONFIG_SPACE_SIZE) / (PCI_CAP_SIZEOF + 4))
29 #define IORESOURCE_BITS 0x000000ff /* Bus-specific bits */
39 * Non-passthrough (dom0) accesses are local PCI devices and use the given BDF
41 * either have a BDF identical to the backend's BDF (xen-backend.passthrough=1)
42 * or a local virtual BDF (xen-backend.passthrough=0)
52 char path[16]; in xen_host_pci_fill_local_addr() local
[all …]
H A Dxen-bus-helper.c5 * See the COPYING file in the top-level directory.
10 #include "hw/xen/xen-bus.h"
11 #include "hw/xen/xen-bus-helper.h"
75 char *path, *value; in xs_node_vprintf() local
78 path = (strlen(node) != 0) ? g_strdup_printf("%s/%s", node, key) : in xs_node_vprintf()
82 trace_xs_node_vprintf(path, value); in xs_node_vprintf()
84 if (!qemu_xen_xs_write(h, tid, path, value, len)) { in xs_node_vprintf()
86 value, path); in xs_node_vprintf()
90 g_free(path); in xs_node_vprintf()
146 char *path, *value; in xs_node_read() local
[all …]
/qemu/qga/
H A Dcommands-posix-ssh.c3 * See the COPYING file in the top-level directory.
7 #include <glib-unix.h>
12 #include "commands-common-ssh.h"
14 #include "qga-qapi-commands.h"
29 p->pw_dir = (char *)g_get_home_dir(); in test_get_passwd_entry()
30 p->pw_uid = geteuid(); in test_get_passwd_entry()
31 p->pw_gid = getegid(); in test_get_passwd_entry()
33 ret = g_mkdir_with_parents(p->pw_dir, 0700); in test_get_passwd_entry()
52 username, err->message); in get_passwd_entry()
60 mkdir_for_user(const char *path, const struct passwd *p, in mkdir_for_user() argument
[all …]
/qemu/tests/unit/
H A Dtest-crypto-cipher.c29 const char *path; member
40 * http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
44 /* NIST F.1.1 ECB-AES128.Encrypt */
45 .path = "/crypto/cipher/aes-ecb-128",
61 /* NIST F.1.3 ECB-AES192.Encrypt */
62 .path = "/crypto/cipher/aes-ecb-192",
78 /* NIST F.1.5 ECB-AES256.Encrypt */
79 .path = "/crypto/cipher/aes-ecb-256",
97 /* NIST F.2.1 CBC-AES128.Encrypt */
98 .path = "/crypto/cipher/aes-cbc-128",
[all …]

12345678910>>...39