Home
last modified time | relevance | path

Searched refs:threshold (Results 1 – 22 of 22) sorted by relevance

/qemu/tests/unit/
H A Dtest-write-threshold.c16 uint64_t threshold = 4 * 1024 * 1024; in test_threshold_not_trigger() local
21 bdrv_write_threshold_set(&bs, threshold); in test_threshold_not_trigger()
23 g_assert_cmpuint(bdrv_write_threshold_get(&bs), ==, threshold); in test_threshold_not_trigger()
29 uint64_t threshold = 4 * 1024 * 1024; in test_threshold_trigger() local
34 bdrv_write_threshold_set(&bs, threshold); in test_threshold_trigger()
35 bdrv_write_threshold_check_write(&bs, threshold - 1024, 2 * 1024); in test_threshold_trigger()
H A Dmeson.build77 'test-write-threshold': [testblock],
/qemu/hw/audio/
H A Dmarvell_88w8618.c58 uint32_t threshold; member
82 block_size = s->threshold / 2; in mv88w8618_audio_callback()
218 s->threshold = (value + 1) * 4; in mv88w8618_audio_write()
238 s->threshold = 0; in mv88w8618_audio_reset()
282 VMSTATE_UINT32(threshold, mv88w8618_audio_state),
/qemu/block/
H A Dquorum.c79 int threshold; /* if less than threshold children reads gave the member
226 if (acb->success_count < s->threshold) { in quorum_has_too_much_io_failed()
556 if (winner->vote_count < s->threshold) { in quorum_vote()
817 if (success_count >= s->threshold) { in quorum_co_flush()
881 static int quorum_valid_threshold(int threshold, int num_children, Error **errp) in quorum_valid_threshold() argument
884 if (threshold < 1) { in quorum_valid_threshold()
890 if (threshold > num_children) { in quorum_valid_threshold()
972 s->threshold = qemu_opt_get_number(opts, QUORUM_OPT_VOTE_THRESHOLD, 0); in quorum_open()
974 ret = quorum_valid_threshold(s->threshold, s->num_children, errp); in quorum_open()
994 if (s->is_blkverify && (s->num_children != 2 || s->threshold != 2)) { in quorum_open()
[all …]
H A Dmeson.build41 'write-threshold.c',
H A Dqcow2-refcount.c3721 int64_t i, end_cluster, cluster_count = 0, threshold; in qcow2_detect_metadata_preallocation() local
3737 threshold = MAX(real_clusters * 10 / 9, real_clusters + 2); in qcow2_detect_metadata_preallocation()
3740 for (i = 0; i < end_cluster && cluster_count < threshold; i++) { in qcow2_detect_metadata_preallocation()
3749 return cluster_count >= threshold; in qcow2_detect_metadata_preallocation()
/qemu/tests/qemu-iotests/
H A D081.out60 "vote-threshold": 2,
100 qemu-io: can't open: blkverify=on can only be set if there are exactly two files and vote-threshold
135 …lass": "GenericError", "desc": "The number of children cannot be lower than the vote threshold 2"}}
142 …r", "desc": "blkverify=on can only be set if there are exactly two files and vote-threshold is 2"}}
151 …lass": "GenericError", "desc": "The number of children cannot be lower than the vote threshold 2"}}
/qemu/qapi/
H A Dcxl.json246 # @reinit-threshold: REINIT threshold hit.
273 'reinit-threshold',
326 # @crc-threshold: Component specific and applicable to 68 byte Flit
329 # @retry-threshold: Retry threshold hit in the Local Retry State
343 'crc-threshold',
344 'retry-threshold',
H A Daudio.json119 # @threshold: set the threshold (in microseconds) when playback starts
127 '*threshold': 'uint32' } }
H A Dmigration.json751 # @throttle-trigger-threshold: The ratio of bytes_dirty_period and
768 # exactly make the dirty rate match the dirty rate threshold.
899 'throttle-trigger-threshold',
932 # @throttle-trigger-threshold: The ratio of bytes_dirty_period and
949 # exactly make the dirty rate match the dirty rate threshold.
1085 '*throttle-trigger-threshold': 'uint8',
1146 # @throttle-trigger-threshold: The ratio of bytes_dirty_period and
1163 # exactly make the dirty rate match the dirty rate threshold.
1292 '*throttle-trigger-threshold': 'uint8',
H A Dblock-core.json552 # @write_threshold: configured write threshold for the device. 0 if
4005 # @vote-threshold: the vote limit under which a read will fail
4018 'vote-threshold': 'int',
5909 # configured write threshold. For thin-provisioned devices, this
5912 # re-registered with another block-set-write-threshold command.
5914 # @node-name: graph node name on which the threshold was exceeded.
5916 # @amount-exceeded: amount of data which exceeded the threshold, in
5919 # @write-threshold: last configured threshold, in bytes.
5926 'write-threshold': 'uint64' } }
5929 # @block-set-write-threshold:
[all …]
/qemu/tests/bench/
H A Dqht-bench.c291 static void do_threshold(double rate, uint64_t *threshold) in do_threshold() argument
309 *threshold = UINT64_MAX; in do_threshold()
311 *threshold = rate * 0x1p64; in do_threshold()
/qemu/audio/
H A Dalsaaudio.c408 static void alsa_set_threshold (snd_pcm_t *handle, snd_pcm_uframes_t threshold) in alsa_set_threshold() argument
422 err = snd_pcm_sw_params_set_start_threshold (handle, sw_params, threshold); in alsa_set_threshold()
426 threshold); in alsa_set_threshold()
574 if (!in && aopts->has_threshold && aopts->threshold) { in alsa_open()
579 &as, aopts->threshold)); in alsa_open()
/qemu/ui/
H A Dtrace-events58 …ient_height, int bytes_per_pixel, void *audio_cap) "VNC client throttle threshold state=%p ioc=%p …
64 …state, void *ioc, size_t offset, size_t threshold) "VNC client output limit state=%p ioc=%p offset…
/qemu/docs/
H A Dblock-replication.txt154 -drive if=xxx,driver=quorum,read-pattern=fifo,id=colo1,vote-threshold=1,\
189 vote-threshold=1,children.0=childs1
H A Dxbzrle.txt80 a threshold.
H A DCOLO-FT.txt177 -drive if=ide,id=colo-disk0,driver=quorum,read-pattern=fifo,vote-threshold=1,\
206 -drive if=ide,id=colo-disk0,driver=quorum,read-pattern=fifo,vote-threshold=1,\
/qemu/docs/devel/migration/
H A Dvfio.rst190 Iterate till total pending bytes converge and are less than threshold
H A Dmain.rst505 threshold, we call ``state_pending_exact``.
/qemu/migration/
H A Dram.c1029 uint64_t threshold = migrate_throttle_trigger_threshold(); in migration_trigger_throttle() local
1033 uint64_t bytes_dirty_threshold = bytes_xfer_period * threshold / 100; in migration_trigger_throttle()
/qemu/qga/
H A Dqapi-schema.json975 'available-spare-threshold': 'int',
/qemu/
H A Dqemu-options.hx843 " threshold= threshold (in microseconds) when playback starts\n"
970 ``threshold=threshold``