block_int.h (31dce3ccca98bc9f9eb57f8b08b008edd07661ba) | block_int.h (27ccdd52598290f0f8b58be56e235aff7aebfaf3) |
---|---|
1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 12 unchanged lines hidden (view full) --- 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 * THE SOFTWARE. 23 */ 24#ifndef BLOCK_INT_H 25#define BLOCK_INT_H 26 27#include "block/accounting.h" 28#include "block/block.h" | 1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 12 unchanged lines hidden (view full) --- 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 * THE SOFTWARE. 23 */ 24#ifndef BLOCK_INT_H 25#define BLOCK_INT_H 26 27#include "block/accounting.h" 28#include "block/block.h" |
29#include "block/throttle-groups.h" | |
30#include "qemu/option.h" 31#include "qemu/queue.h" 32#include "qemu/coroutine.h" 33#include "qemu/timer.h" 34#include "qapi-types.h" 35#include "qemu/hbitmap.h" 36#include "block/snapshot.h" 37#include "qemu/main-loop.h" --- 381 unchanged lines hidden (view full) --- 419 BdrvChild *file; 420 421 /* Callback before write request is processed */ 422 NotifierWithReturnList before_write_notifiers; 423 424 /* number of in-flight serialising requests */ 425 unsigned int serialising_in_flight; 426 | 29#include "qemu/option.h" 30#include "qemu/queue.h" 31#include "qemu/coroutine.h" 32#include "qemu/timer.h" 33#include "qapi-types.h" 34#include "qemu/hbitmap.h" 35#include "block/snapshot.h" 36#include "qemu/main-loop.h" --- 381 unchanged lines hidden (view full) --- 418 BdrvChild *file; 419 420 /* Callback before write request is processed */ 421 NotifierWithReturnList before_write_notifiers; 422 423 /* number of in-flight serialising requests */ 424 unsigned int serialising_in_flight; 425 |
427 /* I/O throttling. 428 * throttle_state tells us if this BDS has I/O limits configured. 429 * io_limits_disabled tells us if they are currently being enforced */ 430 CoQueue throttled_reqs[2]; 431 unsigned int io_limits_disabled; 432 433 /* The following fields are protected by the ThrottleGroup lock. 434 * See the ThrottleGroup documentation for details. */ 435 ThrottleState *throttle_state; 436 ThrottleTimers throttle_timers; 437 unsigned pending_reqs[2]; 438 | |
439 /* Offset after the highest byte written to */ 440 uint64_t wr_highest_offset; 441 442 /* I/O Limits */ 443 BlockLimits bl; 444 445 /* Whether produces zeros when read beyond eof */ 446 bool zero_beyond_eof; --- 299 unchanged lines hidden --- | 426 /* Offset after the highest byte written to */ 427 uint64_t wr_highest_offset; 428 429 /* I/O Limits */ 430 BlockLimits bl; 431 432 /* Whether produces zeros when read beyond eof */ 433 bool zero_beyond_eof; --- 299 unchanged lines hidden --- |