Statistics
| Branch: | Revision:

root @ 814589c4

# Date Author Comment
814589c4 07/27/2012 09:25 am Paolo Bonzini

scsi: add tracepoint for scsi_req_cancel

Signed-off-by: Paolo Bonzini <>

b456a71c 07/27/2012 09:25 am Paolo Bonzini

scsi-disk: removable hard disks support load/eject

Support for the LOEJ bit of the START/STOP UNIT command right now is
limited to CD-ROMs. This is wrong, since removable hard disks (in the
real world: SD card readers) also support it in pretty much the same way....

6a8a685c 07/26/2012 06:44 pm Ronnie Sahlberg

scsi-disk: Fail medium writes with proper sense for readonly LUNs

Add sense code for DATA_PROTECT/WRITE_PROTECTED and return this error
for any WRITE*/WRITE_VERIFY* calls if the device is readonly=on,
i.e. write-protected

Signed-off-by: Ronnie Sahlberg <>...

4f588b15 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: fix changeable values for MODE_PAGE_R_W_ERROR

The changeable values were not all-zeros for this mode page, fix it.

Signed-off-by: Paolo Bonzini <>

380feaff 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: parse MODE SELECT commands and parameters

This adds the bulk of the parsing code for MODE SELECT, including
breaking out changes to different mode pages, and checking that only
changeable values are modified.

In order to report errors correctly two passes are made through the...

96c91bbf 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: support toggling the write cache

Finally, this uses the "plumbing" in the previous patch to
add support for toggling the WCE bit of the caching mode page.

Signed-off-by: Paolo Bonzini <>

96bdbbab 07/26/2012 06:44 pm Ronnie Sahlberg

scsi-disk: rd/wr/vr-protect !=0 is an error

The QEMU SCSI emulation does not support protection information,
so any READ/WRITE/VERIFY commands that has the protect bits set to
non-zero should fail with ILLEGAL_REQUEST/INVALID_FIELD_IN_CDB

From SCSI SBC :...

ba6095cd 07/26/2012 06:44 pm Ronnie Sahlberg

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...

353815aa 07/26/2012 06:44 pm Dmitry Fleytman

scsi-disk: let the user customize vendor and product name

This patch adds two new properties vendor and product to SCSI disks.
These options let the user customize the inquiry data returned by the
disk.

Signed-off-by: Yan Vugenfirer <>...

c1b35247 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: make discard asynchronous

By making discard asynchronous, we can reuse all the error handling
code that is used for other commands.

Signed-off-by: Paolo Bonzini <>

101aa85f 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: move all non-DMA commands to scsi_disk_emulate_command

We want to use separate SCSIReqOps for emulated commands needing an
allocated buffer vs. those that are zerocopy when the HBA supports
S/G lists. Ensure that all of the former are in scsi_disk_emulate_command....

b08d0ea0 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: split scsi-disk reqops

Only checks for present medium were still done in scsi_send_command
for emulated commands. So move those to scsi_disk_emulate_command
and return different SCSIReqOps depending on the kind of command.

Checks for present medium can be done unconditionally for the...

314a3299 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: separate read_data/write_data implementation for emulate_reqops

The previous patch only separated the send_command callback.
Use different implementations also for read_data and write_data.
The latter is still unreachable, so it aborts for now....

af6d510d 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: support emulated TO_DEV requests

This adds the implementation of write_data for the emulated
command case. The first time through it asks for more data,
the second time it finishes the processing of the command.

MODE SELECT and MODE SELECT can now be re-enabled, but they...

ef405611 07/26/2012 06:44 pm Paolo Bonzini

scsi-disk: adjust offsets in MODE SENSE by 2

This will make offsets the same when implementing MODE SELECT. This is
because MODE SELECT has to deal with both 2-byte and 4-byte headers.
Unfortunately, this means that the offsets are now off by two compared...

2f0772c5 07/26/2012 06:44 pm Paolo Bonzini

lsi: use qdev_reset_all

By first resetting the devices, lsi_soft_reset will find the queue
already cleared so there is no need to do that forcibly (which may also
leak SCSIRequests, and/or worse due to dangling references to the
lsi_request in the hba_private field)....

d2a9998f 07/26/2012 06:44 pm Paolo Bonzini

lsi: introduce lsi_request_free

Split the common bits of lsi_request_cancelled and lsi_command_complete
out to a new function.

Signed-off-by: Paolo Bonzini <>

8f6e699d 07/26/2012 06:44 pm Paolo Bonzini

lsi: avoid redundant tests of s->current != NULL

Simplify the code by checking against req->hba_private directly,
and asserting that it is non-NULL before a command is completed
or canceled.

Signed-off-by: Paolo Bonzini <>

03847837 07/26/2012 06:44 pm Paolo Bonzini

scsi-block: remove properties that are not relevant for passthrough

scsi-block is a passthrough device and does not allow customization
of vendor, product, removable, DPOFUA, block size or any other piece of
information. Thus, drop DEFINE_SCSI_DISK_PROPERTIES() from the...

2a025ae4 07/26/2012 06:44 pm Dmitry Fleytman

cutils: add strpadcpy()

Signed-off-by: Yan Vugenfirer <>
Signed-off-by: Dmitry Fleytman <>
Signed-off-by: Paolo Bonzini <>

10d6530c 07/26/2012 06:44 pm Hannes Reinecke

megasas: Replace trace_megasas_dcmd_dump_frame()

trace_megasas_dcmd_dump_frame() takes 9 arguments, which is
rather much. Plus the trace infrastructure doesn't support
it. As we can get the information via other means it's pointless
to have it in the driver, so rather use some proper trace...

e2b06058 07/26/2012 06:44 pm Paolo Bonzini

megasas: fix misuse of scsi_req_abort

scsi_req_abort is for terminating a command with a non-zero status.
The ABORT task management function is invoked by scsi_req_cancel.
In fact, ABORTED_COMMAND is a sense key, not a SAM status code.

Signed-off-by: Paolo Bonzini <>

903f650b 07/23/2012 09:15 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/tracing' into staging

  • stefanha/tracing:
    Update simpletrace.py for new log format
    Simpletrace v2: Support multiple arguments, strings.
    monitor: remove unused do_info_trace
    trace: added ability to comment out events in the list
400006c2 07/23/2012 09:15 pm Anthony Liguori

Merge remote-tracking branch 'pmaydell/arm-devs.for-upstream' into staging

  • pmaydell/arm-devs.for-upstream:
    exynos4210: add Exynos4210 i2c implementation
    hw/exynos4210_rtc.c: remove unnecessary code
    hw/exynos4210_rtc.c: Fix calculating for value of year...
ef6bbdf9 07/23/2012 09:15 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  • stefanha/trivial-patches:
    Fix some more Qemus in documentation and help text
    qdev: Fix Open Firmware comment
    cpus.c: Make all_cpu_threads_idle() static
    Use macro QEMU_PACKED for new packed structures...
a2114348 07/23/2012 09:15 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/net' into staging

  • stefanha/net:
    remove unused QemuOpts parameter from net init functions
    convert net_init_bridge() to NetClientOptions
    convert net_init_tap() to NetClientOptions
    convert net_init_vde() to NetClientOptions...
b80e560b 07/23/2012 01:55 pm Laszlo Ersek

qapi schema: remove trailing whitespace

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

14aa0c2d 07/23/2012 01:55 pm Laszlo Ersek

qapi schema: add Netdev types

NetdevTapOptions::sndbuf and NetdevDumpOptions::len use the new "size"
type.

v1->v2:
- NetLegacy::name is optional
- NetLegacyNicOptions::vectors is of type uint32
- NetdevVdeOptions::port and ::mode are of type uint16
- NetLegacy::vlan has type int32...

2be64a68 07/23/2012 01:55 pm Laszlo Ersek

hw, net: "net_client_type" -> "NetClientOptionsKind" (qapi-generated)

NET_CLIENT_TYPE_ -> NET_CLIENT_OPTIONS_KIND_

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

6687b79d 07/23/2012 01:55 pm Laszlo Ersek

convert net_client_init() to OptsVisitor

The net_client_init() prototype is kept intact.

Based on "is_netdev", the QemuOpts-rooted QemuOpt-list is parsed as a
Netdev or a NetLegacy. The original meat of net_client_init() is moved to
and simplified in net_client_init1():...

2456f36f 07/23/2012 01:55 pm Laszlo Ersek

convert net_init_nic() to NetClientOptions

v1->v2:
- NetLegacyNicOptions::vectors is of type uint32

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

848040d1 07/23/2012 01:55 pm Laszlo Ersek

convert net_init_dump() to NetClientOptions

v1->v2:
- NetdevDumpOptions::len is of type 'size', whose C type was changed to
uint64_t. Adapt the printf() format specifier macro.

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

094f15c5 07/23/2012 01:55 pm Laszlo Ersek

convert net_init_slirp() to NetClientOptions

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

bef8e8fe 07/23/2012 01:55 pm Laszlo Ersek

convert net_init_socket() to NetClientOptions

I "reverse engineered" the following permissions between the -socket
sub-options:

fd  listen  connect  mcast  udp | localaddr
fd x . . . . | .
listen . x . . . | ....
4a917c39 07/23/2012 01:55 pm Laszlo Ersek

convert net_init_vde() to NetClientOptions

v1->v2:
- NetdevVdeOptions::port and ::mode are of type uint16. Remove superfluous
range checks.

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

08c573a8 07/23/2012 01:55 pm Laszlo Ersek

convert net_init_tap() to NetClientOptions

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

f79b51b0 07/23/2012 01:55 pm Laszlo Ersek

convert net_init_bridge() to NetClientOptions

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

1a0c0958 07/23/2012 01:55 pm Laszlo Ersek

remove unused QemuOpts parameter from net init functions

v1->v2:
- unchanged

v2->v3:
- keep "qemu-option.h" included in "net/slirp.h"

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

837c36e7 07/23/2012 01:55 pm Stefan Hajnoczi

MAINTAINERS: Replace net maintainer Mark McLoughlin with Stefan Hajnoczi

The net subsystem has lacked an active maintainer since 2009. I have
built and tested a net-next tree to get the ball rolling again.

Signed-off-by: Stefan Hajnoczi <>

d195325b 07/23/2012 01:55 pm Paolo Bonzini

qapi: fix error propagation

Don't overwrite / leak previously set errors.
Make traversal cope with missing mandatory sub-structs.
Don't try to end a container that could not be started.

v1->v2:
- unchanged

v2->v3:
- instead of examining, assert that we never overwrite errors with...

d98150f0 07/23/2012 01:55 pm Laszlo Ersek

qapi: add test case for deallocating traversal of incomplete structure

v3:
- new patch

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

c46f18ce 07/23/2012 01:55 pm Laszlo Ersek

qapi: generate C types for fixed-width integers

(Long line folded using parens:
<http://www.python.org/dev/peps/pep-0008/#maximum-line-length>.)

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

092705d4 07/23/2012 01:55 pm Laszlo Ersek

qapi: introduce "size" type

v1->v2:
- fall back to uint64 rather than int

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

fdb17976 07/23/2012 01:55 pm Laszlo Ersek

expose QemuOpt and QemuOpts struct definitions to interested parties

The only clients should be the existent "qemu-option.c", and the upcoming
"qapi/opts-visitor.c".

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

eb7ee2cb 07/23/2012 01:55 pm Laszlo Ersek

qapi: introduce OptsVisitor

This visitor supports parsing

-option [type=]discriminator[,optarg1=val1][,optarg2=val2][,...]

style QemuOpts objects into "native" C structures. After defining the type
tree in the qapi schema (see below), a root type traversal with this...

c4889f54 07/21/2012 12:54 pm Alexey Kardashevskiy

powerpc pci: fixed packing of ranges[]

By default mingw-gcc is trying to pack structures the way to
preserve binary compatibility with MS Visual C what leads to
incorrect and unexpected padding in the PCI bus ranges property of
the sPAPR PHB.

The patch replaces attribute((packed)) with more strict QEMU_PACKED...

434acb81 07/21/2012 12:54 pm Mao, Junjie

Recognize PCID feature

This patch makes Qemu recognize the PCID feature specified from configuration or command line options.

Signed-off-by: Junjie Mao <>
Signed-off-by: Stefan Hajnoczi <>

7c7bb022 07/21/2012 12:54 pm Stefan Weil

Use macro QEMU_PACKED for new packed structures

Since commit 541dc0d47f10973c241e9955afc2aefc96adec51,
some new packed structures were added without using QEMU_PACKED.

QEMU_PACKED is needed for compilations with MinGW.
For other platforms nothing changes....

ac873f1e 07/21/2012 12:54 pm Peter Maydell

cpus.c: Make all_cpu_threads_idle() static

Commit 946fb27c1 moved all the uses of all_cpu_threads_idle()
into cpus.c. This means we can mark the function 'static'
(again), if we shuffle it a bit earlier in the source file.

Signed-off-by: Peter Maydell <>...

c5788614 07/21/2012 12:54 pm Stefan Weil

qdev: Fix Open Firmware comment

Commit 0d936928ef87ca1bb7b41b5b89c400c699a7691c removed code,
but left the related comment at a location where it no longer
belongs to.

The patch moves the comment to the correct callback and improves the text.

Signed-off-by: Stefan Weil <>...

43ffe61f 07/21/2012 12:54 pm Stefan Weil

Fix some more Qemus in documentation and help text

Hopefully they will be eliminated one day.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

ffbbe7d0 07/20/2012 04:30 pm Mitsyanko Igor

exynos4210: add Exynos4210 i2c implementation

Create 9 exynos4210 i2c interfaces.

Signed-off-by: Igor Mitsyanko <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Peter Maydell <>

4688870d 07/20/2012 04:18 pm Oleg Ogurtsov

hw/exynos4210_rtc.c: remove unnecessary code

Signed-off-by: Oleg Ogurtsov <>
Signed-off-by: Peter Maydell <>

64de1ecf 07/20/2012 04:16 pm Oleg Ogurtsov

hw/exynos4210_rtc.c: Fix calculating for value of year

Signed-off-by: Oleg Ogurtsov <>
Signed-off-by: Peter Maydell <>

0b944384 07/20/2012 03:34 pm Peter Maydell

hw/arm_boot.c: Consistently use ram_size from arm_boot_info struct

Clean up the mix of getting the RAM size from the global ram_size
and from the ram_size field in the arm_boot_info structure, so
that we always use the structure field.

Signed-off-by: Peter Maydell <>...

3871481c 07/20/2012 03:34 pm Peter Maydell

hw/arm_boot.c: Check for RAM sizes exceeding ATAGS capacity

The legacy ATAGS format for passing information to the kernel only
allows RAM sizes which fit in 32 bits; enforce this restriction
rather than silently doing something weird.

Signed-off-by: Peter Maydell <>...

f0aa713f 07/20/2012 03:34 pm Peter Maydell

device_tree: Add support for reading device tree properties

Add support for reading device tree properties (both generic
and single-cell ones) to QEMU's convenience wrapper layer.

Signed-off-by: Peter Maydell <>
Reviewed-by: Peter A. G. Crosthwaite <>

9bfa659e 07/20/2012 03:34 pm Peter Maydell

hw/arm_boot.c: Support DTBs which use 64 bit addresses

Support the case where the device tree blob specifies that
#address-cells and #size-cells are greater than 1. (This
is needed for device trees which can handle 64 bit physical
addresses and thus total RAM sizes over 4GB.)...

25d71699 07/20/2012 03:34 pm Peter Maydell

hw/vexpress.c: Allow >4GB of RAM for Cortex-A15 daughterboard

Now that we have LPAE support and can handle passing 64 bit
RAM sizes to Linux via the device tree, we can lift the
restriction in the Versatile Express A15 daughterboard model
on not having more than 2GB of RAM. Allow up to 30GB, which...

0d4abda8 07/20/2012 03:34 pm Peter Maydell

hw/pl011.c: Avoid crash on read when no chr backend present

Add a missing guard that meant we would segfault if the guest read
UARTDR on a PL011 serial device which had no chr backend connected.
(This didn't happen for Linux guests because Linux reads the flags...

de841dea 07/20/2012 03:34 pm Peter Maydell

hw/arm_boot.c: Make ram_size a uint64_t

Make the RAM size in arm_boot_info a uint64_t so it can express
the larger RAM sizes that may be seen in LPAE systems.

Signed-off-by: Peter Maydell <>
Reviewed-by: Peter A. G. Crosthwaite <>

61dc008f 07/20/2012 02:25 am Anthony Liguori

Revert "audio: Make PC speaker audio card available by default"

This reverts commit 504972922da9b562f15e13544d3efca84b46b8fd which broke the
build for ARM.

I don't think this change is necessary. If I'm wrong, please recommit this
changeset with an appropriate fix for ARM....

50497292 07/19/2012 07:07 pm Jan Kiszka

audio: Make PC speaker audio card available by default

[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "KOI8-R" character set. ]
[ Some special characters may be displayed incorrectly. ]

Signed-off-by: Jan Kiszka <>...

62bab732 07/19/2012 01:34 pm Harsh Prateek Bora

Simpletrace v2: Support multiple arguments, strings.

Existing simpletrace backend allows to trace at max 6 args and does not
support strings. This newer tracelog format gets rid of fixed size records
and therefore allows to trace variable number of args including strings....

90a147a2 07/19/2012 01:34 pm Harsh Prateek Bora

Update simpletrace.py for new log format

Support new tracelog format for multiple arguments and strings.

Signed-off-by: Harsh Prateek Bora <>
Signed-off-by: Stefan Hajnoczi <>

88affa1c 07/19/2012 01:34 pm Harsh Prateek Bora

monitor: remove unused do_info_trace

Going forward with simpletrace v2 variable size trace records, we cannot
have a generic function to print trace event info and therefore this
interface becomes invalid.

As per Stefan Hajnoczi:

"This command is only available from the human monitor. It's not very...

794b1f96 07/19/2012 01:30 pm Alexey Kardashevskiy

trace: added ability to comment out events in the list

It is convenient for debug to be able to switch on/off some events easily.
The only possibility now is to remove event name from the file completely
and type it again when we want it back.

The patch adds '#' symbol handling as a comment specifier....

dfe1ce5d 07/18/2012 10:44 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

  • kwolf/for-anthony: (41 commits)
    fdc-test: Clean up a bit
    fdc-test: introduce test_relative_seek
    fdc: fix relative seek
    qemu-iotests: Valgrind support
    coroutine-ucontext: Help valgrind understand coroutines...
09f06a6c 07/18/2012 10:44 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

  • qemu-kvm/uq/master:
    virtio: move common irqfd handling out of virtio-pci
    virtio: move common ioeventfd handling out of virtio-pci
    event_notifier: add event_notifier_set_handler
    memory: pass EventNotifier, not eventfd...
513e6bde 07/18/2012 10:44 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

  • qmp/queue/qmp:
    qapi: Convert getfd and closefd
    qapi: input_type_enum(): fix error message
    qmp: dump-guest-memory: improve schema doc
052bb77a 07/18/2012 10:44 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/bios.2' into staging

  • kraxel/bios.2:
    Add vgabios build rules to roms/Makefile
83199ca4 07/18/2012 10:44 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.57' into staging

  • kraxel/usb.57:
    ehci: improve expire time calculation
    ehci: implement Interrupt Threshold Control support
    ehci: raise irq in the frame timer
    uhci: initialize expire_time when loading v1 vmstate...
cb5fc67d 07/18/2012 02:58 am Anthony Liguori

build: fix build breakage due to bad merge

34bb443ee74df3780d86044dbf6492eb798c5807 broke the build but in a subtle way.
The patch on the ML was actually based on the 1.1.1 stable branch
(accidentally). When I merged it from the ML, the fuzzing got resolved in a...

34bb443e 07/17/2012 11:43 pm Anthony Liguori

build: add make dist target (v2)

Let's stop screwing up releases by having a script do the work that Anthony's
fat fingers can't seem to get right.

Cc: Michael Roth <>
Reviewed-by: Eric Blake <>
Tested-by: Michael Roth <>...

ed24cfac 07/17/2012 11:40 pm Michal Novotny

qemu-options.hx: Improve -{read|write}config options description

This is the patch to improve description for -{read|write}config
functions.

Signed-off-by: Michal Novotny <>
Signed-off-by: Anthony Liguori <>

66c19bf1 07/17/2012 11:40 pm Michal Novotny

qemu-options.hx: Improve -nodefaults description

This patch improves the description of -nodefaults QEMU command line
option by adding more information what is being disabled using this
command.

Signed-off-by: Michal Novotny <>
Signed-off-by: Anthony Liguori <>

86ee5bc3 07/17/2012 11:40 pm Michal Novotny

qemu-options.hx: Fix set_password and expire_password description

The description for set_password and expire_password commands is
incomplete. This patch fixes the man page that is being generated
to match the real behaviour of these functions.

Signed-off-by: Michal Novotny <>...

e1b4382c 07/17/2012 11:40 pm Stefan Weil

doc: Fix indefinite article an -> a before nouns that begin with 'h'

Although the rule also allows 'an' for historical reasons,
'a' is more common because 'h' is pronounced.

Reviewed-by: Peter Maydell <>
Signed-off-by: Stefan Weil <>...

3b25597b 07/17/2012 11:40 pm Christian Borntraeger

constify value pointer for qdev_prop_set_string

qdev_prop_set_string uses object_property_set_str, which takes
a const char * for the value. Lets propagate the constness
into qdev_prop_set_string.

Signed-off-by: Christian Borntraeger <>...

2adc99b2 07/17/2012 05:48 pm Markus Armbruster

hd-geometry: Compute BIOS CHS translation in one place

Currently, it is split between hd_geometry_guess() and
pc_cmos_init_late(). Confusing. info qtree shows the result of the
former. Also confusing.

Fold the part done in pc_cmos_init_late() into hd_geometry_guess()....

aaea3f36 07/17/2012 05:48 pm Markus Armbruster

blockdev: Drop redundant CHS validation for if=ide

Leave it to ide_init_drive().

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

b51daf00 07/17/2012 05:48 pm Markus Armbruster

Relax IDE CHS limits from 16383,16,63 to 65535,16,255

New limits straight from ATA4 6.2 Register delivered data transfer
command sector addressing.

I figure the old sector limit 63 was blindly copied from the BIOS
int 13 limit. Doesn't apply to the hardware. No idea where the old...

31e404f4 07/17/2012 05:48 pm Markus Armbruster

hw/block-common: Move BlockConf & friends from block.h

This stuff doesn't belong to block layer, and was put there only
because a better home didn't exist then. Now it does.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

911525db 07/17/2012 05:48 pm Markus Armbruster

hw/block-common: Factor out fall back to legacy -drive serial=...

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

577d0a38 07/17/2012 05:48 pm Markus Armbruster

blockdev: Don't limit DriveInfo serial to 20 characters

All current users (IDE, SCSI and virtio-blk) happen to share this 20
characters limit. Still, it should be left to device models. They
already enforce their limits. They have to, as the DriveInfo limit...

b7eb0c9f 07/17/2012 05:48 pm Markus Armbruster

hw/block-common: Factor out fall back to legacy -drive cyls=...

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

9e559533 07/17/2012 05:48 pm Kevin Wolf

qemu-io: Fix memory leaks

Almost all callers of create_iovec() forgot to destroy the qiov when the
request has completed.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

3f4349dc 07/17/2012 05:48 pm Kevin Wolf

coroutine-ucontext: Help valgrind understand coroutines

valgrind tends to get confused and report false positives when you
switch stacks and don't tell it about it.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>

2f24e8fb 07/17/2012 05:48 pm Kevin Wolf

qemu-iotests: Valgrind support

check -valgrind wraps all qemu-io calls with valgrind. This makes it a
bit easier to debug problems that occur somewhere deep in a test case.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>

6d013772 07/17/2012 05:48 pm Pavel Hrdina

fdc: fix relative seek

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

98272dbb 07/17/2012 05:48 pm Pavel Hrdina

fdc-test: introduce test_relative_seek

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

c3cdc1b0 07/17/2012 05:48 pm Kevin Wolf

fdc-test: Clean up a bit

Readability of the test code has suffered as the test case evolved. This
should improve it a bit again.

Signed-off-by: Kevin Wolf <>

eb0e4b98 07/17/2012 05:48 pm Markus Armbruster

qtest: Cover qdev properties for disk geometry

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

d4d34b0d 07/17/2012 05:48 pm Markus Armbruster

qdev: Collect private helpers in one place

Just code motion, with one long line wrapped to keep checkpatch.pl
happy.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

8cd41745 07/17/2012 05:48 pm Markus Armbruster

qdev: New property type chs-translation

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

6e6f61a6 07/17/2012 05:48 pm Markus Armbruster

ide: qdev property for BIOS CHS translation

This isn't quite orthodox. CHS translation is firmware configuration,
communicated via the RTC's CMOS RAM, not a property of the disk. But
it's best to treat it just like geometry anyway.

Maintain backward compatibility exactly like for geometry: fall back...

856dcba2 07/17/2012 05:48 pm Markus Armbruster

qtest: Cover qdev property for BIOS CHS translation

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

2b584959 07/17/2012 05:48 pm Markus Armbruster

block: Geometry and translation hints are now useless, purge them

There are two producers of these hints: drive_init() on behalf of
-drive, and hd_geometry_guess().

The only consumer of the hint is hd_geometry_guess().

The callers of hd_geometry_guess() call it only when drive_init()...

9dc13e38 07/17/2012 05:48 pm Markus Armbruster

ide pc: Put hard disk info into CMOS only for hard disks

In particular, don't set disk type and geometry when a CD-ROM on bus
ide.0 has media during CMOS initialization.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

4e4e6e31 07/17/2012 05:48 pm Markus Armbruster

qtest: Test we don't put hard disk info into CMOS for a CD-ROM

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>