diff options
author | RajithaY <rajithax.yerrumsetty@intel.com> | 2017-04-25 03:31:15 -0700 |
---|---|---|
committer | Rajitha Yerrumchetty <rajithax.yerrumsetty@intel.com> | 2017-05-22 06:48:08 +0000 |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/include/block/write-threshold.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/include/block/write-threshold.h')
-rw-r--r-- | qemu/include/block/write-threshold.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/qemu/include/block/write-threshold.h b/qemu/include/block/write-threshold.h deleted file mode 100644 index 234d2193e..000000000 --- a/qemu/include/block/write-threshold.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * QEMU System Emulator block write threshold notification - * - * Copyright Red Hat, Inc. 2014 - * - * Authors: - * Francesco Romani <fromani@redhat.com> - * - * This work is licensed under the terms of the GNU LGPL, version 2 or later. - * See the COPYING.LIB file in the top-level directory. - */ -#ifndef BLOCK_WRITE_THRESHOLD_H -#define BLOCK_WRITE_THRESHOLD_H - -#include "qemu-common.h" - -/* - * bdrv_write_threshold_set: - * - * Set the write threshold for block devices, in bytes. - * Notify when a write exceeds the threshold, meaning the device - * is becoming full, so it can be transparently resized. - * To be used with thin-provisioned block devices. - * - * Use threshold_bytes == 0 to disable. - */ -void bdrv_write_threshold_set(BlockDriverState *bs, uint64_t threshold_bytes); - -/* - * bdrv_write_threshold_get - * - * Get the configured write threshold, in bytes. - * Zero means no threshold configured. - */ -uint64_t bdrv_write_threshold_get(const BlockDriverState *bs); - -/* - * bdrv_write_threshold_is_set - * - * Tell if a write threshold is set for a given BDS. - */ -bool bdrv_write_threshold_is_set(const BlockDriverState *bs); - -/* - * bdrv_write_threshold_exceeded - * - * Return the extent of a write request that exceeded the threshold, - * or zero if the request is below the threshold. - * Return zero also if the threshold was not set. - * - * NOTE: here we assume the following holds for each request this code - * deals with: - * - * assert((req->offset + req->bytes) <= UINT64_MAX) - * - * Please not there is *not* an actual C assert(). - */ -uint64_t bdrv_write_threshold_exceeded(const BlockDriverState *bs, - const BdrvTrackedRequest *req); - -#endif |