Home
last modified time | relevance | path

Searched full:path (Results 1 – 25 of 975) sorted by relevance

12345678910>>...39

/qemu/python/qemu/utils/
H A Dqom_fuse.py20 QMP socket path or address (addr:port). May also be
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:
93 return self.ino_map[path]
94 self.ino_map[path] = self.ino_count
96 return self.ino_map[path]
98 def is_object(self, path: str) -> bool:
99 """Is the given QOM path an object?"""
101 self.qom_list(path)
[all …]
H A Dqom.py15 list List QOM properties at a given path
16 tree Show QOM tree from a given path
53 usage: qom-set [-h] [--socket SOCKET] <path>.<property> <value>
58 <path>.<property> QOM path and property, separated by a period '.'
64 QMP socket path or address (addr:port). May also be
83 self.path, self.prop = args.path_prop.rsplit('.', 1)
89 path=self.path,
101 usage: qom-get [-h] [--socket SOCKET] <path>.<property>
106 <path>.<property> QOM path and property, separated by a period '.'
111 QMP socket path or address (addr:port). May also be
[all …]
/qemu/hw/i386/kvm/
H A Dtrace-events7 xenstore_read(unsigned int tx_id, const char *path) "tx %u path %s"
8 xenstore_write(unsigned int tx_id, const char *path) "tx %u path %s"
9 xenstore_mkdir(unsigned int tx_id, const char *path) "tx %u path %s"
10 xenstore_directory(unsigned int tx_id, const char *path) "tx %u path %s"
11 xenstore_directory_part(unsigned int tx_id, const char *path, unsigned int offset) "tx %u path %s o…
14 xenstore_rm(unsigned int tx_id, const char *path) "tx %u path %s"
15 xenstore_get_perms(unsigned int tx_id, const char *path) "tx %u path %s"
16 xenstore_set_perms(unsigned int tx_id, const char *path) "tx %u path %s"
17 xenstore_watch(const char *path, const char *token) "path %s token %s"
18 xenstore_unwatch(const char *path, const char *token) "path %s token %s"
[all …]
H A Dxen_xenstore.c81 static void fire_watch_cb(void *opaque, const char *path, const char *token);
373 * READ <path>| <value|>
374 * WRITE <path>|<value|>
375 * Store and read the octet string <value> at <path>.
378 * MKDIR <path>|
379 * Ensures that the <path> exists, by necessary by creating
380 * it and any missing parents with empty values. If <path>
383 * RM <path>|
384 * Ensures that the <path> does not exist, by deleting
385 * it and all of its children. It is not an error if <path> does
[all …]
/qemu/hw/9pfs/
H A D9p-xattr.h21 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,
55 int v9fs_set_xattr(FsContext *ctx, const char *path, const char *name,
[all …]
H A D9p-xattr.c39 ssize_t v9fs_get_xattr(FsContext *ctx, const char *path, in v9fs_get_xattr() argument
44 return xops->getxattr(ctx, path, name, value, size); in v9fs_get_xattr()
50 ssize_t pt_listxattr(FsContext *ctx, const char *path, in pt_listxattr() argument
72 ssize_t v9fs_list_xattr(FsContext *ctx, const char *path, in v9fs_list_xattr() argument
84 dirpath = g_path_get_dirname(path); in v9fs_list_xattr()
91 name = g_path_get_basename(path); in v9fs_list_xattr()
118 size += xops->listxattr(ctx, path, orig_value, value, vsize); in v9fs_list_xattr()
120 size = xops->listxattr(ctx, path, orig_value, value, vsize); in v9fs_list_xattr()
142 int v9fs_set_xattr(FsContext *ctx, const char *path, const char *name, in v9fs_set_xattr() argument
147 return xops->setxattr(ctx, path, name, value, size, flags); in v9fs_set_xattr()
[all …]
H A Dcofs.c25 static ssize_t __readlink(V9fsState *s, V9fsPath *path, V9fsString *buf) in __readlink() argument
31 len = s->ops->readlink(&s->ctx, path, buf->data, maxlen); in __readlink()
57 int coroutine_fn v9fs_co_readlink(V9fsPDU *pdu, V9fsPath *path, V9fsString *buf) in v9fs_co_readlink() argument
68 err = __readlink(s, path, buf); in v9fs_co_readlink()
77 int coroutine_fn v9fs_co_statfs(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_statfs() argument
89 err = s->ops->statfs(&s->ctx, path, stbuf); in v9fs_co_statfs()
98 int coroutine_fn v9fs_co_chmod(V9fsPDU *pdu, V9fsPath *path, mode_t mode) in v9fs_co_chmod() argument
112 err = s->ops->chmod(&s->ctx, path, &cred); in v9fs_co_chmod()
121 int coroutine_fn v9fs_co_utimensat(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_utimensat() argument
133 err = s->ops->utimensat(&s->ctx, path, times); in v9fs_co_utimensat()
[all …]
H A D9p-posix-acl.c30 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
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
67 ret = local_removexattr_nofollow(ctx, path, MAP_ACL_ACCESS); in mp_pacl_removexattr()
84 static ssize_t mp_dacl_getxattr(FsContext *ctx, const char *path, in mp_dacl_getxattr() argument
87 return local_getxattr_nofollow(ctx, path, MAP_ACL_DEFAULT, value, size); in mp_dacl_getxattr()
90 static ssize_t mp_dacl_listxattr(FsContext *ctx, const char *path, in mp_dacl_listxattr() argument
[all …]
H A Dcofile.c26 int coroutine_fn v9fs_co_st_gen(V9fsPDU *pdu, V9fsPath *path, mode_t st_mode, in v9fs_co_st_gen() argument
39 err = s->ctx.exops.get_st_gen(&s->ctx, path, st_mode, in v9fs_co_st_gen()
50 int coroutine_fn v9fs_co_lstat(V9fsPDU *pdu, V9fsPath *path, struct stat *stbuf) in v9fs_co_lstat() argument
61 err = s->ops->lstat(&s->ctx, path, stbuf); in v9fs_co_lstat()
88 * using file descriptor. Use Path name in that case. in v9fs_co_fstat()
91 err = v9fs_co_lstat(pdu, &fidp->path, stbuf); in v9fs_co_fstat()
114 err = s->ops->open(&s->ctx, &fidp->path, flags, &fidp->fs); in v9fs_co_open()
137 V9fsPath path; in v9fs_co_open2() local
148 * Hold the directory fid lock so that directory path name in v9fs_co_open2()
155 err = s->ops->open2(&s->ctx, &fidp->path, in v9fs_co_open2()
[all …]
/qemu/
H A D.gitmodules2 path = roms/seabios
5 path = roms/SLOF
8 path = roms/ipxe
11 path = roms/openbios
14 path = roms/qemu-palcode
17 path = roms/u-boot
20 path = roms/skiboot
23 path = roms/QemuMacDrivers
26 path = roms/seabios-hppa
29 path = roms/u-boot-sam460ex
[all …]
/qemu/tests/qtest/
H A Dqos-test.c89 static void restart_qemu_or_continue(char *path) in restart_qemu_or_continue() argument
92 qos_printf("Run QEMU with: '%s'\n", path); in restart_qemu_or_continue()
100 if (g_strcmp0(old_path, path)) { in restart_qemu_or_continue()
103 old_path = g_strdup(path); in restart_qemu_or_continue()
104 qtest_start(path); in restart_qemu_or_continue()
120 * items are node names forming the path to the test node.
136 * walks the path invoking all constructors and
164 char **path = (char **) arg; in run_one_test() local
165 GString *cmd_line = g_string_new(path[0]); in run_one_test()
169 current_path = path; in run_one_test()
[all …]
H A Dmax34451-test.c47 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()
115 value = qmp_max34451_get(TEST_ID, path); in test_defaults()
117 g_free(path); in test_defaults()
151 char *path; in test_temperature() local
[all …]
H A Dnetdev-socket.c196 gchar *path; in test_stream_unix_reconnect() local
198 path = g_strconcat(tmpdir, "/stream_unix_reconnect", NULL); in test_stream_unix_reconnect()
201 "addr.path=%s", path); in test_stream_unix_reconnect()
207 "addr.path=%s,reconnect-ms=1000", path); in test_stream_unix_reconnect()
211 g_assert_cmpstr(addr->u.q_unix.path, ==, path); in test_stream_unix_reconnect()
223 "addr.path=%s", path); in test_stream_unix_reconnect()
228 g_assert_cmpstr(addr->u.q_unix.path, ==, path); in test_stream_unix_reconnect()
233 g_assert_cmpstr(addr->u.q_unix.path, ==, path); in test_stream_unix_reconnect()
238 g_free(path); in test_stream_unix_reconnect()
276 gchar *path; in test_stream_unix() local
[all …]
H A Dcpu-plug-test.c52 if (qdict_haskey(cpu, "qom-path")) { in test_plug_with_device_add()
83 char *path; in add_pc_test_case() local
99 path = g_strdup_printf("cpu-plug/%s/device-add/%ux%ux%u&maxcpus=%u", in add_pc_test_case()
102 qtest_add_data_func_full(path, data, test_plug_with_device_add, in add_pc_test_case()
104 g_free(path); in add_pc_test_case()
109 char *path; in add_pseries_test_case() local
125 path = g_strdup_printf("cpu-plug/%s/device-add/%ux%ux%u&maxcpus=%u", in add_pseries_test_case()
128 qtest_add_data_func_full(path, data, test_plug_with_device_add, in add_pseries_test_case()
130 g_free(path); in add_pseries_test_case()
135 char *path; in add_s390x_test_case() local
[all …]
/qemu/tests/qtest/fuzz/
H A Dqos_fuzz.c67 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()
80 test_node = qos_graph_get_node(path[(g_strv_length(path) - 1)]); in qos_build_main_args()
98 QOSGraphNode *path; in walk_path() local
118 path = qos_graph_get_node(node_name); /* root */ in walk_path()
119 node_name = qos_graph_edge_get_dest(path->path_edge); /* machine name */ in walk_path()
125 path = qos_graph_get_node(node_name); in walk_path()
[all …]
/qemu/tests/functional/qemu_test/
H A Dtestcase.py16 from pathlib import Path
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))
74 If @member is non-None, returns the fully qualified path to @member
106 Construct a path for accessing a data file located
113 reference a file nested below. The path components
114 will be joined using the platform appropriate path
117 Returns: string representing a file path
120 return str(Path(Path(__file__).parent.parent, *args))
[all …]
H A Dutils.py26 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:
H A Dconfig.py15 from pathlib import Path
21 return Path(__file__).parent.parent.parent.parent
26 return Path(root)
28 if os.path.exists('Makefile.mtest'):
29 return Path(os.getcwd())
31 root = os.path.join(_source_dir(), 'build')
32 if os.path.exists(root):
33 return Path(root)
/qemu/qom/
H A Dqom-hmp-cmds.c22 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()
49 const char *path = qdict_get_str(qdict, "path"); in hmp_qom_set() local
55 Object *obj = object_resolve_path(path, NULL); in hmp_qom_set()
59 "Device '%s' not found", path); in hmp_qom_set()
67 qmp_qom_set(path, property, obj, &err); in hmp_qom_set()
76 const char *path = qdict_get_str(qdict, "path"); in hmp_qom_get() local
79 QObject *obj = qmp_qom_get(path, property, &err); in hmp_qom_get()
136 const char *path = qdict_get_try_str(dict, "path"); in hmp_info_qom_tree() local
[all …]
/qemu/hw/xen/
H A Dxen-bus-helper.c75 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
150 path = g_strdup_vprintf(path_fmt, ap); in xs_node_read()
153 value = qemu_xen_xs_read(h, tid, path, len); in xs_node_read()
154 trace_xs_node_read(path, value); in xs_node_read()
[all …]
H A Dxen-host-pci-device.c52 char path[16]; in xen_host_pci_fill_local_addr() local
67 snprintf(path, sizeof(path), "dev-%d", i); in xen_host_pci_fill_local_addr()
68 if (xs_node_scanf(xenstore, 0, be_path, path, NULL, in xen_host_pci_fill_local_addr()
70 error_setg(errp, "Failed to read or parse %s/%s", be_path, path); in xen_host_pci_fill_local_addr()
78 snprintf(path, sizeof(path), "vdev-%d", i); in xen_host_pci_fill_local_addr()
79 if (xs_node_scanf(xenstore, 0, be_path, path, NULL, in xen_host_pci_fill_local_addr()
81 error_setg(errp, "Failed to read or parse %s/%s", be_path, path); in xen_host_pci_fill_local_addr()
114 char path[PATH_MAX]; in xen_host_pci_get_resource() local
120 xen_host_pci_sysfs_path(d, "resource", path, sizeof(path)); in xen_host_pci_get_resource()
122 fd = open(path, O_RDONLY); in xen_host_pci_get_resource()
[all …]
/qemu/scripts/
H A Dnsis.py15 def signcode(path): argument
19 subprocess.run([cmd, path])
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"
66 os.path.join(destdir + prefix, "qemu-system-*.exe")
68 exe = os.path.basename(exe)
[all …]
H A Dqemu-trace-stap23 import os.path
30 dirname, filename = os.path.split(binary)
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)
49 if not os.path.exists(thisfile):
53 basedir = os.path.split(thisfile)[0]
[all …]
/qemu/.gitlab-ci.d/
H A Dwindows.yml32 - If ( !(Test-Path -Path msys64\var\cache ) ) {
38 - if ( Test-Path -Path msys64\var\cache\msys2.exe.sig ) {
42 Remove-Item -Path msys64\var\cache\msys2.exe.sig ;
43 if ( Test-Path -Path msys64\var\cache\msys2.exe ) {
44 Remove-Item -Path msys64\var\cache\msys2.exe
51 if ( Test-Path -Path msys64\var\cache\msys2.exe ) {
52 Remove-Item -Path msys64\var\cache\msys2.exe
55 - if ( !(Test-Path -Path msys64\var\cache\msys2.exe ) ) {
60 Copy-Item -Path msys2.exe.sig -Destination msys64\var\cache\msys2.exe.sig
66 - ((Get-Content -path .\msys64\etc\\post-install\\07-pacman-key.post -Raw)
[all …]
/qemu/qga/
H A Dcommands-posix-ssh.c60 mkdir_for_user(const char *path, const struct passwd *p, in mkdir_for_user() argument
63 if (g_mkdir(path, mode) == -1) { in mkdir_for_user()
65 path, g_strerror(errno)); in mkdir_for_user()
69 if (chown(path, p->pw_uid, p->pw_gid) == -1) { in mkdir_for_user()
71 path, g_strerror(errno)); in mkdir_for_user()
75 if (chmod(path, mode) == -1) { in mkdir_for_user()
77 path, g_strerror(errno)); in mkdir_for_user()
85 write_authkeys(const char *path, const GStrv keys, in write_authkeys() argument
92 if (!g_file_set_contents(path, contents, -1, &err)) { in write_authkeys()
93 error_setg(errp, "failed to write to '%s': %s", path, err->message); in write_authkeys()
[all …]

12345678910>>...39