aboutsummaryrefslogtreecommitdiff
path: root/target-i386/int_helper.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2012-07-12 16:52:47 +1000
committerPaolo Bonzini <pbonzini@redhat.com>2012-07-26 17:44:10 +0200
commitba6095cd6b497783e3621606b6b2320781aa3f52 (patch)
treed568335833a272c74a7d5a01a653be40d2085c32 /target-i386/int_helper.c
parent96bdbbab55976b106f9db2b61042ebf5f0493e5a (diff)
downloadqemu-ba6095cd6b497783e3621606b6b2320781aa3f52.zip
qemu-ba6095cd6b497783e3621606b6b2320781aa3f52.tar.gz
qemu-ba6095cd6b497783e3621606b6b2320781aa3f52.tar.bz2
scsi-disk: improve the lba-out-of-range tests for read/write/verify
Improve the tests for the LBA to cover more cases. For the 16 byte opcodes, the lba is a uint64, so we need to check is to make sure that we do not wrap. For example if an opcode would specify the LBA:0xffffffffffffffff and LEN:2 then lba+len would wrap to 1. Also verify that ALL requested blocks are available, not just the first one. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-i386/int_helper.c')
0 files changed, 0 insertions, 0 deletions