/qemu/contrib/ivshmem-client/ |
H A D | ivshmem-client.c | 151 memset(client, 0, sizeof(*client)); in ivshmem_client_init() 153 ret = snprintf(client->unix_sock_path, sizeof(client->unix_sock_path), in ivshmem_client_init() 171 client->shm_fd = -1; in ivshmem_client_init() 172 client->sock_fd = -1; in ivshmem_client_init() 217 if (ivshmem_client_read_one_msg(client, &client->local.id, &fd) < 0 || in ivshmem_client_connect() 222 IVSHMEM_CLIENT_DEBUG(client, "our_id=%" PRId64 "\n", client->local.id); in ivshmem_client_connect() 234 client->shm_fd = fd; in ivshmem_client_connect() 241 client->sock_fd = -1; in ivshmem_client_connect() 259 client->shm_fd = -1; in ivshmem_client_close() 319 client->notif_cb(client, peer, i, client->notif_arg); in ivshmem_client_handle_event() [all …]
|
H A D | main.c | 78 ivshmem_client_handle_stdin_command(IvshmemClient *client) in ivshmem_client_handle_stdin_command() argument 103 ivshmem_client_dump(client); in ivshmem_client_handle_stdin_command() 105 ivshmem_client_notify_broadcast(client); in ivshmem_client_handle_stdin_command() 112 ivshmem_client_notify(client, peer, vector); in ivshmem_client_handle_stdin_command() 133 ivshmem_client_poll_events(IvshmemClient *client) in ivshmem_client_poll_events() argument 144 ivshmem_client_get_fds(client, &fds, &maxfd); in ivshmem_client_poll_events() 180 (void)client; in ivshmem_client_notification_cb() 190 IvshmemClient client; in main() local 221 if (ivshmem_client_connect(&client) < 0) { in main() 229 if (ivshmem_client_poll_events(&client) == 0) { in main() [all …]
|
H A D | ivshmem-client.h | 57 const IvshmemClient *client, 96 int ivshmem_client_init(IvshmemClient *client, const char *unix_sock_path, 111 int ivshmem_client_connect(IvshmemClient *client); 118 void ivshmem_client_close(IvshmemClient *client); 133 void ivshmem_client_get_fds(const IvshmemClient *client, fd_set *fds, 150 int ivshmem_client_handle_fds(IvshmemClient *client, fd_set *fds, int maxfd); 161 int ivshmem_client_notify(const IvshmemClient *client, 173 int ivshmem_client_notify_all_vects(const IvshmemClient *client, 184 int ivshmem_client_notify_broadcast(const IvshmemClient *client); 198 ivshmem_client_search_peer(IvshmemClient *client, int64_t peer_id); [all …]
|
/qemu/block/ |
H A D | nfs.c | 396 nfs_close(client->context, client->fh); in nfs_client_close() 453 nfs_set_uid(client->context, client->uid); in nfs_client_open() 458 nfs_set_gid(client->context, client->gid); in nfs_client_open() 516 nfs_set_debug(client->context, client->debug); in nfs_client_open() 520 ret = nfs_mount(client->context, client->server->host, client->path); in nfs_client_open() 543 ret = nfs_fstat(client->context, client->fh, &st); in nfs_client_open() 828 if (client->uid && !client->gid) { in nfs_refresh_filename() 832 } else if (!client->uid && client->gid) { in nfs_refresh_filename() 836 } else if (client->uid && client->gid) { in nfs_refresh_filename() 839 client->server->host, client->path, client->uid, client->gid); in nfs_refresh_filename() [all …]
|
/qemu/nbd/ |
H A D | server.c | 283 int ret = nbd_drop(client->ioc, client->optlen, errp); in nbd_opt_vdrop() 518 nbd_check_meta_export(client, client->exp); in nbd_negotiate_handle_export_name() 537 QTAILQ_INSERT_TAIL(&client->exp->clients, client, next); in nbd_negotiate_handle_export_name() 1229 client->ioc == (QIOChannel *)client->sioc) { in nbd_negotiate_options() 1624 client->close_fn(client, negotiated); in client_close() 1637 req->client = client; in nbd_request_get() 1644 NBDClient *client = req->client; in nbd_request_put() local 1653 if (client->quiescing && client->nb_requests == 0) { in nbd_request_put() 2568 assert(client->contexts.exp == client->exp); in nbd_co_block_status_payload_read() 2638 NBDClient *client = req->client; in nbd_co_receive_request() local [all …]
|
/qemu/tests/qtest/ |
H A D | virtio-9p-test.c | 59 tversion({ .client = obj }); in fs_version() 65 tattach({ .client = obj }); in fs_attach() 81 tattach({ .client = v9p }); in fs_walk() 116 tattach({ .client = v9p }); in fs_readdir() 173 tattach({ .client = v9p }); in do_readdir_split() 252 tattach({ .client = v9p }); in fs_walk_no_slash() 266 tattach({ .client = v9p }); in fs_walk_nonexistent() 368 tattach({ .client = v9p }); in fs_lopen() 387 tattach({ .client = v9p }); in fs_write() 412 tattach({ .client = v9p }); in fs_flush_success() [all …]
|
/qemu/docs/interop/ |
H A D | barrier.rst | 1 Barrier client protocol 32 server -> client 36 Say hello to client 46 client ->server 62 client ->server 77 client -> server 87 server -> client 97 server -> client 118 server -> client 132 server -> client [all …]
|
/qemu/python/qemu/utils/ |
H A D | qemu_ga_client.py | 194 print(client.read(args[0])) 208 ret = client.fsfreeze(cmd) 228 print(client.ifconfig()) 233 print(client.info()) 238 alive = client.ping(timeout) 254 client.suspend(args[0]) 259 client.shutdown() 267 client.shutdown('halt') 272 client.shutdown('reboot') 297 client.sync(60) [all …]
|
/qemu/net/can/ |
H A D | can_core.c | 85 int can_bus_insert_client(CanBusState *bus, CanBusClientState *client) in can_bus_insert_client() argument 87 client->bus = bus; in can_bus_insert_client() 88 QTAILQ_INSERT_TAIL(&bus->clients, client, next); in can_bus_insert_client() 92 int can_bus_remove_client(CanBusClientState *client) in can_bus_remove_client() argument 94 CanBusState *bus = client->bus; in can_bus_remove_client() 99 QTAILQ_REMOVE(&bus->clients, client, next); in can_bus_remove_client() 100 client->bus = NULL; in can_bus_remove_client() 104 ssize_t can_bus_client_send(CanBusClientState *client, in can_bus_client_send() argument 108 CanBusState *bus = client->bus; in can_bus_client_send() 116 if (peer == client) { in can_bus_client_send() [all …]
|
/qemu/scsi/ |
H A D | qemu-pr-helper.c | 648 if (client->fd != -1) { in prh_read() 649 close(client->fd); in prh_read() 650 client->fd = -1; in prh_read() 665 if (client->fd == -1) { in prh_read_request() 677 if (sz > sizeof(client->data)) { in prh_read_request() 689 req->fd = client->fd; in prh_read_request() 691 client->fd = -1; in prh_read_request() 695 close(client->fd); in prh_read_request() 696 client->fd = -1; in prh_read_request() 731 PRHelperClient *client = opaque; in prh_co_entry() local [all …]
|
/qemu/docs/system/ |
H A D | tls.rst | 11 and migration server and client. 92 found the client will close the connection. 150 Issuing client certificates 162 the information for each client, and use it to issue client 167 # cat > client-hostNNN.info <<EOF 182 --template client-hostNNN.info \ 194 The ``client-hostNNN-key.pem`` and ``client-hostNNN-cert.pem`` files 196 generated, and renamed to ``client-key.pem`` and ``client-cert.pem`` 207 client and server instructions in one. 238 ``client-cert.pem`` and ``client-key.pem``. [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | virtio-9p-client.c | 303 g_assert(opt.client); in v9fs_tversion() 368 g_assert(opt.client); in v9fs_tattach() 373 v9fs_tversion((TVersionOpt) { .client = opt.client }); in v9fs_tattach() 425 g_assert(opt.client); in v9fs_twalk() 497 g_assert(opt.client); in v9fs_tgetattr() 786 opt.dfid = v9fs_twalk((TWalkOpt) { .client = opt.client, in v9fs_tmkdir() 846 opt.fid = v9fs_twalk((TWalkOpt) { .client = opt.client, in v9fs_tlcreate() 910 opt.fid = v9fs_twalk((TWalkOpt) { .client = opt.client, in v9fs_tsymlink() 967 opt.dfid = v9fs_twalk((TWalkOpt) { .client = opt.client, in v9fs_tlink() 971 opt.fid = v9fs_twalk((TWalkOpt) { .client = opt.client, in v9fs_tlink() [all …]
|
H A D | virtio-9p-client.h | 79 QVirtio9P *client; member 113 QVirtio9P *client; member 135 QVirtio9P *client; member 162 QVirtio9P *client; member 188 QVirtio9P *client; member 218 QVirtio9P *client; member 245 QVirtio9P *client; member 273 QVirtio9P *client; member 293 QVirtio9P *client; member 326 QVirtio9P *client; member [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 233 | 76 obj=tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 100 obj1=tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 101 obj2=tls-creds-x509,dir=${tls_dir}/client3,endpoint=client,id=tls0 113 obj1=tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 122 obj1=tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 131 obj=tls-creds-x509,dir=${tls_dir}/client2,endpoint=client,id=tls0 142 --object tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 \ 163 --object tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 \ 168 --object tls-creds-x509,dir=${tls_dir}/client3,endpoint=client,id=tls0 \ 181 obj1=tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 [all …]
|
/qemu/hw/dma/ |
H A D | etraxfs_dma.c | 312 if (ctrl->channels[c].client) in channel_start() 415 if (ctrl->channels[c].client->client.metadata_push) { in channel_out_run() 417 ctrl->channels[c].client->client.metadata_push( in channel_out_run() 418 ctrl->channels[c].client->client.opaque, in channel_out_run() 441 if (ctrl->channels[c].client->client.push) { in channel_out_run() 443 ctrl->channels[c].client->client.push( in channel_out_run() 444 ctrl->channels[c].client->client.opaque, in channel_out_run() 568 if (ctrl->channels[c].client->client.pull) { in channel_in_run() 569 ctrl->channels[c].client->client.pull( in channel_in_run() 570 ctrl->channels[c].client->client.opaque); in channel_in_run() [all …]
|
/qemu/ui/ |
H A D | trace-events | 47 vnc_msg_client_audio_enable(void *state, void *ioc) "VNC client msg audio enable state=%p ioc=%p" 48 vnc_msg_client_audio_disable(void *state, void *ioc) "VNC client msg audio disable state=%p ioc=%p" 51 vnc_client_eof(void *state, void *ioc) "VNC client EOF state=%p ioc=%p" 53 vnc_client_connect(void *state, void *ioc) "VNC client connect state=%p ioc=%p" 54 vnc_client_disconnect_start(void *state, void *ioc) "VNC client disconnect start state=%p ioc=%p" 55 vnc_client_disconnect_finish(void *state, void *ioc) "VNC client disconnect finish state=%p ioc=%p" 72 vnc_auth_start(void *state, int method) "VNC client auth start state=%p method=%d" 73 vnc_auth_pass(void *state, int method) "VNC client auth passed state=%p method=%d" 79 vnc_auth_sasl_mech_choose(void *state, const char *mech) "VNC client auth SASL state=%p mech=%s" 82 vnc_auth_sasl_ssf(void *state, int ssf) "VNC client auth SASL SSF state=%p size=%d" [all …]
|
/qemu/audio/ |
H A D | jackaudio.c | 64 jack_client_t *client; member 394 jack_connect(c->client, p, ports[i]); in qjack_client_connect_ports() 397 jack_connect(c->client, ports[i], p); in qjack_client_connect_ports() 434 if (c->client == NULL) { in qjack_client_init() 442 c->freq = jack_get_sample_rate(c->client); in qjack_client_init() 450 jack_get_client_name(c->client)); in qjack_client_init() 473 c->client, in qjack_client_init() 481 jack_activate(c->client); in qjack_client_init() 578 jack_deactivate(c->client); in qjack_client_fini_locked() 582 jack_client_close(c->client); in qjack_client_fini_locked() [all …]
|
/qemu/include/exec/ |
H A D | ram_addr.h | 156 unsigned client) in cpu_physical_memory_get_dirty() argument 163 assert(client < DIRTY_MEMORY_NUM); in cpu_physical_memory_get_dirty() 169 blocks = qatomic_rcu_read(&ram_list.dirty_memory[client]); in cpu_physical_memory_get_dirty() 196 unsigned client) in cpu_physical_memory_all_dirty() argument 203 assert(client < DIRTY_MEMORY_NUM); in cpu_physical_memory_all_dirty() 210 blocks = qatomic_rcu_read(&ram_list.dirty_memory[client]); in cpu_physical_memory_all_dirty() 234 unsigned client) in cpu_physical_memory_get_dirty_flag() argument 236 return cpu_physical_memory_get_dirty(addr, 1, client); in cpu_physical_memory_get_dirty_flag() 275 assert(client < DIRTY_MEMORY_NUM); in cpu_physical_memory_set_dirty_flag() 283 blocks = qatomic_rcu_read(&ram_list.dirty_memory[client]); in cpu_physical_memory_set_dirty_flag() [all …]
|
/qemu/backends/ |
H A D | cryptodev-hmp-cmds.c | 45 for (cl = info->client; cl; cl = cl->next) { in hmp_info_cryptodev() 46 QCryptodevBackendClient *client = cl->value; in hmp_info_cryptodev() local 48 client->queue, in hmp_info_cryptodev() 49 QCryptodevBackendType_str(client->type)); in hmp_info_cryptodev()
|
/qemu/crypto/ |
H A D | tlscredsanon.c | 68 ret = gnutls_anon_allocate_client_credentials(&creds->data.client); in qcrypto_tls_creds_anon_load() 84 if (creds->data.client) { in qcrypto_tls_creds_anon_unload() 85 gnutls_anon_free_client_credentials(creds->data.client); in qcrypto_tls_creds_anon_unload() 86 creds->data.client = NULL; in qcrypto_tls_creds_anon_unload() 142 return creds->data.client != NULL; in qcrypto_tls_creds_anon_prop_get_loaded()
|
H A D | tlscredspsk.c | 136 ret = gnutls_psk_allocate_client_credentials(&creds->data.client); in qcrypto_tls_creds_psk_load() 143 ret = gnutls_psk_set_client_credentials(creds->data.client, in qcrypto_tls_creds_psk_load() 163 if (creds->data.client) { in qcrypto_tls_creds_psk_unload() 164 gnutls_psk_free_client_credentials(creds->data.client); in qcrypto_tls_creds_psk_unload() 165 creds->data.client = NULL; in qcrypto_tls_creds_psk_unload() 221 return creds->data.client != NULL; in qcrypto_tls_creds_psk_prop_get_loaded()
|
/qemu/docs/specs/ |
H A D | ivshmem-spec.rst | 139 For each new client that connects to the server, the server 144 new client, 145 - sends connect notifications for the new client to the other clients 152 The first client to connect to the server receives ID zero. 170 A standalone client is in contrib/ivshmem-client/. It can be useful 179 The connection is one-way: the server sends messages to the client. 182 client and server close the connection on error. 189 1. The protocol version number, currently zero. The client should 203 vector 0,..,N-1, in order. If the client is configured for fewer 207 5. Interrupt setup. This is the client's own ID, repeated N times. [all …]
|
/qemu/docs/system/devices/ |
H A D | ccid.rst | 19 public/private schemes and digital signatures. A smartcard reader on the client 21 available on the client, possibly locking the computer when it is "removed". On 22 the other hand this device can let you use the smartcard on both the client and 47 user, using libcacard, QEMU acts as another client using ccid-card-emulated:: 99 Using ccid-card-passthru with client side hardware 106 On the client run vscclient, built when you built QEMU:: 110 Using ccid-card-passthru with client side certificates 137 A typical interchange is (the arrow shows who started each exchange, it can be client 140 client event | vscclient | passthru | usb-ccid | guest event 149 client <-> physical | | | | [all …]
|
/qemu/util/ |
H A D | oslib-win32.c | 328 int client = -1; in qemu_socketpair() local 374 client = socket(domain, type, protocol); in qemu_socketpair() 375 if (client == -1) { in qemu_socketpair() 380 if (ioctlsocket(client, FIONBIO, &arg) != NO_ERROR) { in qemu_socketpair() 384 if (connect(client, (struct sockaddr *)&addr, socklen) == -1 && in qemu_socketpair() 395 if (ioctlsocket(client, FIONBIO, &arg) != NO_ERROR) { in qemu_socketpair() 400 if (ioctlsocket(client, SIO_AF_UNIX_GETPEERPID, &arg) != NO_ERROR) { in qemu_socketpair() 411 sv[1] = client; in qemu_socketpair() 412 client = -1; in qemu_socketpair() 419 if (client != -1) { in qemu_socketpair() [all …]
|
/qemu/docs/tools/ |
H A D | qemu-nbd.rst | 22 - As a client to query exports of a remote NBD server. 41 credentials for the ``qemu-nbd`` server or client. 45 TCP port to listen on as a server, or connect to as a client 54 The interface to bind to as a server, or connect to as a client 159 Connect as a client and list all details about the exports exposed by 169 connecting as a client in list mode. 174 the hostname that the NBD client used to connect will be checked 177 check. For example, if the NBD client is using a tunnel from localhost 182 when acting as a NBD client with the :option:`--list` option. 222 one-shot, and will block until the first successful client [all …]
|