summaryrefslogtreecommitdiff
path: root/target-sparc/cpu-qom.h
diff options
context:
space:
mode:
authorHaozhong Zhang <haozhong.zhang@intel.com>2016-10-27 12:22:58 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-11-01 16:06:57 +0100
commitd6af99c9f8d577927a52d00af3fa8e6ec0b2a4e2 (patch)
tree167b621b32133f1e0a263b8497bff56c9d24fe43 /target-sparc/cpu-qom.h
parentf35e44e7645edbb08e35b111c10c2fc57e2905c7 (diff)
downloadqemu-d6af99c9f8d577927a52d00af3fa8e6ec0b2a4e2.tar.gz
exec.c: do not truncate non-empty memory backend file
For '-object memory-backend-file,mem-path=foo,size=xyz', if the size of file 'foo' does not match the given size 'xyz', the current QEMU will truncate the file to the given size, which may corrupt the existing data in that file. To avoid such data corruption, this patch disables truncating non-empty backend files. Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com> Message-Id: <20161027042300.5929-2-haozhong.zhang@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-sparc/cpu-qom.h')
0 files changed, 0 insertions, 0 deletions