/qemu/contrib/ivshmem-client/ |
H A D | ivshmem-client.c | 15 #include "ivshmem-client.h" 18 #define IVSHMEM_CLIENT_DEBUG(client, fmt, ...) do { \ argument 19 if ((client)->verbose) { \ 26 ivshmem_client_read_one_msg(IvshmemClient *client, int64_t *index, int *fd) in ivshmem_client_read_one_msg() argument 46 ret = recvmsg(client->sock_fd, &msg, 0); in ivshmem_client_read_one_msg() 48 IVSHMEM_CLIENT_DEBUG(client, "cannot read message: %s\n", in ivshmem_client_read_one_msg() 53 IVSHMEM_CLIENT_DEBUG(client, "lost connection to server\n"); in ivshmem_client_read_one_msg() 75 * client is freed */ 77 ivshmem_client_free_peer(IvshmemClient *client, IvshmemClientPeer *peer) in ivshmem_client_free_peer() argument 81 QTAILQ_REMOVE(&client->peer_list, peer, next); in ivshmem_client_free_peer() [all …]
|
H A D | ivshmem-client.h | 13 * This file provides helper to implement an ivshmem client. It is used 15 * guest. QEMU also implements an ivshmem client similar to this one, they both 18 * A standalone ivshmem client based on this file is provided for debug/test 28 * Maximum number of notification vectors supported by the client 35 * Each time a client connects to an ivshmem server, it is advertised to 37 * client receives a notification, it creates a IvshmemClientPeer 41 * client in (IvshmemClient)->local. 57 const IvshmemClient *client, 62 * Structure describing an ivshmem client 64 * This structure stores all information related to our client: the name [all …]
|
H A D | main.c | 11 #include "ivshmem-client.h" 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() 107 peer = ivshmem_client_search_peer(client, peer_id); in ivshmem_client_handle_stdin_command() 112 ivshmem_client_notify(client, peer, vector); in ivshmem_client_handle_stdin_command() 114 peer = ivshmem_client_search_peer(client, peer_id); in ivshmem_client_handle_stdin_command() 119 ivshmem_client_notify_all_vects(client, peer); 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() [all …]
|
/qemu/block/ |
H A D | nfs.c | 76 NFSClient *client; member 191 static void nfs_set_events(NFSClient *client) in nfs_set_events() argument 193 int ev = nfs_which_events(client->context); in nfs_set_events() 194 if (ev != client->events) { in nfs_set_events() 195 aio_set_fd_handler(client->aio_context, nfs_get_fd(client->context), in nfs_set_events() 198 NULL, NULL, client); in nfs_set_events() 201 client->events = ev; in nfs_set_events() 206 NFSClient *client = arg; in nfs_process_read() local 208 qemu_mutex_lock(&client->mutex); in nfs_process_read() 209 nfs_service(client->context, POLLIN); in nfs_process_read() [all …]
|
/qemu/nbd/ |
H A D | server.c | 40 * recommends no larger than 32 mb, so that the client won't consider 83 NBDClient *client; member 126 void (*close_fn)(NBDClient *client, bool negotiated); 150 uint32_t check_align; /* If non-zero, check for aligned client requests */ 160 static void nbd_client_receive_next_request(NBDClient *client); 164 Server Client 169 Server Client 178 Server Client 201 nbd_negotiate_send_rep_len(NBDClient *client, uint32_t type, in nbd_negotiate_send_rep_len() argument 206 trace_nbd_negotiate_send_rep_len(client->opt, nbd_opt_lookup(client->opt), in nbd_negotiate_send_rep_len() [all …]
|
H A D | trace-events | 3 # client.c 47 nbd_negotiate_handle_export_name_request(const char *name) "Client requested export '%s'" 49 nbd_negotiate_handle_info_requests(int requests) "Client requested %d items of info" 50 nbd_negotiate_handle_info_request(int request, const char *name) "Client requested info %d (%s)" 54 nbd_negotiate_meta_context(const char *optname, const char *export, uint32_t queries) "Client reque… 58 nbd_negotiate_options_flags(uint32_t flags) "Received client flags 0x%" PRIx32 73 nbd_co_receive_block_status_payload_compliance(uint64_t from, uint64_t len) "client sent unusable b… 76 nbd_co_receive_ext_payload_compliance(uint64_t from, uint64_t len) "client sent non-compliant write… 77 …compliance(const char *op, uint64_t from, uint64_t len, uint32_t align) "client sent non-compliant… 79 nbd_handshake_timer_cb(void) "client took too long to negotiate" [all …]
|
/qemu/docs/interop/ |
H A D | barrier.rst | 1 Barrier client protocol 4 QEMU's ``input-barrier`` device implements the client end of 13 Message format between the server and client is in two parts: 19 command. The first command between the server and the client 32 server -> client 36 Say hello to client 46 client ->server 52 ``minor`` = protocol major version number supported by client 54 ``major`` = protocol minor version number supported by client 56 ``name`` = client name [all …]
|
H A D | qmp-spec.rst | 27 "Client" is any application communicating with it via QMP. 126 the other. The client therefore receives command responses in issue 133 possibly overtaking prior in-band commands. The client may therefore 137 To be able to match responses back to their commands, the client needs 141 If the client sends in-band commands faster than the server can 146 the client should have at most eight in-band commands in flight. 179 with the command execution if issued by the Client. 196 the command execution if issued by the Client. 200 if provided by the client. 206 to the Client at any time, when not in the middle of any other [all …]
|
/qemu/tests/qtest/ |
H A D | virtio-9p-test.c | 17 #include "libqos/virtio-9p-client.h" 60 tversion({ .client = obj }); in fs_version() 66 tattach({ .client = obj }); in fs_attach() 82 tattach({ .client = v9p }); in fs_walk() 84 .client = v9p, .fid = 0, .newfid = 1, in fs_walk() 117 tattach({ .client = v9p }); in fs_readdir() 119 .client = v9p, .fid = 0, .newfid = 1, in fs_readdir() 125 .client = v9p, .fid = 1, .flags = O_DIRECTORY, .rlopen.qid = &qid in fs_readdir() 132 .client = v9p, .fid = 1, .offset = 0, .count = P9_MAX_SIZE - 11, in fs_readdir() 174 tattach({ .client = v9p }); in do_readdir_split() [all …]
|
/qemu/docs/system/ |
H A D | tls.rst | 7 session data encryption, along with x509 certificates for simple client 10 server, character devices with the TCP backend, NBD server and client, 11 and migration server and client. 25 authentication, then each client will also need to be issued a 86 When connecting the certificate is sent to the client which validates it 89 clients when connecting. The hostname / IP address that the client 92 found the client will close the connection. 150 Issuing client certificates 153 The QEMU x509 TLS credential setup defaults to enabling client 155 mechanism. If this default is used, each client also needs to be issued [all …]
|
/qemu/python/qemu/utils/ |
H A D | qemu_ga_client.py | 2 QEMU Guest Agent Client 14 $ qemu-ga-client --address=/tmp/qga.sock <command> [args...] 19 $ qemu-ga-client <command> [args...] 23 $ qemu-ga-client cat /etc/resolv.conf 26 $ qemu-ga-client fsfreeze status 28 $ qemu-ga-client fsfreeze freeze 189 def _cmd_cat(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 194 print(client.read(args[0])) 197 def _cmd_fsfreeze(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 208 ret = client.fsfreeze(cmd) [all …]
|
/qemu/ui/ |
H A D | trace-events | 48 vnc_msg_client_audio_enable(void *state, void *ioc) "VNC client msg audio enable state=%p ioc=%p" 49 vnc_msg_client_audio_disable(void *state, void *ioc) "VNC client msg audio disable state=%p ioc=%p" 50 vnc_msg_client_audio_format(void *state, void *ioc, int fmt, int channels, int freq) "VNC client ms… 51 …op_size(void *state, void *ioc, int width, int height, int screens) "VNC client msg set desktop si… 52 vnc_client_eof(void *state, void *ioc) "VNC client EOF state=%p ioc=%p" 53 vnc_client_io_error(void *state, void *ioc, const char *msg) "VNC client I/O error state=%p ioc=%p … 54 vnc_client_connect(void *state, void *ioc) "VNC client connect state=%p ioc=%p" 55 vnc_client_disconnect_start(void *state, void *ioc) "VNC client disconnect start state=%p ioc=%p" 56 vnc_client_disconnect_finish(void *state, void *ioc) "VNC client disconnect finish state=%p ioc=%p" 57 vnc_client_io_wrap(void *state, void *ioc, const char *type) "VNC client I/O wrap state=%p ioc=%p t… [all …]
|
/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 147 - sends connect notifications for the other clients to the new client, 149 - sends interrupt setup messages to the new client (these contain file 152 The first client to connect to the server receives ID zero. 154 When a client disconnects from the server, the server sends disconnect 170 A standalone client is in contrib/ivshmem-client/. It can be useful 173 The ivshmem Client-Server Protocol 179 The connection is one-way: the server sends messages to the client. [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | virtio-9p-client.h | 2 * 9P network client for VirtIO 9P test cases (based on QTest) 88 /* 9P client being used (mandatory) */ 89 QVirtio9P *client; member 122 /* 9P client being used (mandatory) */ 123 QVirtio9P *client; member 126 /* maximum message size that can be handled by client (optional) */ 144 /* 9P client being used (mandatory) */ 145 QVirtio9P *client; member 171 /* 9P client being used (mandatory) */ 172 QVirtio9P *client; member [all …]
|
H A D | virtio-9p-client.c | 2 * 9P network client for VirtIO 9P test cases (based on QTest) 16 #include "virtio-9p-client.h" 304 g_assert(opt.client); in v9fs_tversion() 321 req = v9fs_req_init(opt.client, body_size, P9_TVERSION, opt.tag); in v9fs_tversion() 369 g_assert(opt.client); in v9fs_tattach() 374 v9fs_tversion((TVersionOpt) { .client = opt.client }); in v9fs_tattach() 381 P9Req *req = v9fs_req_init(opt.client, 4 + 4 + 2 + 2 + 4, P9_TATTACH, in v9fs_tattach() 426 g_assert(opt.client); in v9fs_twalk() 447 req = v9fs_req_init(opt.client, body_size, P9_TWALK, opt.tag); in v9fs_twalk() 498 g_assert(opt.client); in v9fs_tgetattr() [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 | 582 /* Client */ 597 static int coroutine_fn prh_read(PRHelperClient *client, void *buf, int sz, in prh_read() argument 611 n_read = qio_channel_readv_full(QIO_CHANNEL(client->ioc), &iov, 1, in prh_read() 615 qio_channel_yield(QIO_CHANNEL(client->ioc), G_IO_IN); in prh_read() 627 if (client->fd == -1) { in prh_read() 628 client->fd = fds[i]; in prh_read() 648 if (client->fd != -1) { in prh_read() 649 close(client->fd); in prh_read() 650 client->fd = -1; in prh_read() 655 static int coroutine_fn prh_read_request(PRHelperClient *client, in prh_read_request() argument [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 233 | 73 echo "== check TLS client to plain server fails ==" 76 obj=tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 86 echo "== check plain client to TLS server fails ==" 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 \ [all …]
|
/qemu/include/block/ |
H A D | nbd.h | 37 * NBD_DEFAULT_HANDSHAKE_MAX_SECS: Number of seconds in which client must 43 * NBD_DEFAULT_MAX_CONNECTIONS: Number of client sockets to allow at 44 * once; must be large enough to allow a MULTI_CONN-aware client like 190 /* Client payload for limiting NBD_CMD_BLOCK_STATUS reply */ 196 /* Transmission (export) flags: sent from server to client during handshake, 208 NBD_FLAG_CAN_MULTI_CONN_BIT = 8, /* Multi-client cache consistent */ 229 /* New-style handshake (global) flags, sent from server to client, and 234 /* New-style client flags, sent from client to server to control what happens 277 /* Request flags, sent from client to server during transmission phase */ 311 /* Two types of request structures, a given client will only use 1 */ [all …]
|
/qemu/docs/tools/ |
H A D | qemu-nbd.rst | 24 - As a client to query exports of a remote NBD server. 43 credentials for the ``qemu-nbd`` server or client. 47 TCP port to listen on as a server, or connect to as a client 56 The interface to bind to as a server, or connect to as a client 161 Set the timeout for a client to successfully complete its handshake 166 Connect as a client and list all details about the exports exposed by 176 connecting as a client in list mode. 181 the hostname that the NBD client used to connect will be checked 184 check. For example, if the NBD client is using a tunnel from localhost 189 when acting as a NBD client with the :option:`--list` option. [all …]
|
/qemu/audio/ |
H A D | jackaudio.c | 2 * QEMU JACK Audio Connection Kit Client 64 jack_client_t *client; member 379 ports = jack_get_ports(c->client, c->opt->connect_ports, NULL, in qjack_client_connect_ports() 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() 431 c->client = jack_client_open(client_name, options, &status, in qjack_client_init() 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() 456 jack_set_process_callback(c->client, qjack_process , c); in qjack_client_init() [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/contrib/ivshmem-server/ |
H A D | ivshmem-server.h | 14 * mode. The ivshmem clients (qemu or ivshmem-client) connect to this 15 * unix socket. For each client, the server will create some eventfd 17 * clients using the SCM_RIGHTS cmsg message. Therefore, each client is 18 * able to send a notification to another client without being 43 * Each time a client connects to an ivshmem server, a new 70 uint16_t cur_id; /**< id to be given to next client */ 83 * @n_vectors: Number of interrupt vectors per client
|
/qemu/tests/qemu-iotests/tests/ |
H A D | nbd-reconnect-on-open | 56 # Start NBD client when NBD server is not yet running. It should not fail, but 58 client = qemu_io_popen(*create_args(5)) variable 63 # client should succeed 64 log(client.communicate()[0], filters=[iotests.filter_qemu_io]) 67 # check it and at the same time check that with open-timeout=0 client fails
|
/qemu/qapi/ |
H A D | ui.json | 111 # way to coordinate server time with client time. It is not 242 # Information about a SPICE client channel. 270 # @client: Mouse cursor position is determined by the client. 280 'data': [ 'client', 'server', 'unknown' ], 309 # currently. Can be determined by the client or the server, or 342 # "mouse-mode":"client", 373 # Emitted when a SPICE client establishes a connection 377 # @client: client information 387 # "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"} 392 'client': 'SpiceBasicInfo' }, [all …]
|