Statistics
| Branch: | Revision:

root @ 463ce4ae

# Date Author Comment
9477c87e 11/01/2011 06:50 pm Pavel Borzenkov

fw_cfg: Use g_file_get_contents instead of multiple fread() calls

Reviewed-by: Peter Maydell <>
Signed-off-by: Pavel Borzenkov <>
Signed-off-by: Anthony Liguori <>

463ce4ae 11/01/2011 06:50 pm Eric Sunshine

qemu-barrier: Fix build failure on PowerPC Mac OS X

qemu-barrier.h tests if macro powerpc is defined, however, the
preprocessor on PowerPC Mac OS X defines only POWERPC, not
powerpc. Resolve by testing instead for qemu-provided _ARCH_PPC.

Signed-off-by: Eric Sunshine <>...

3e837b2c 11/01/2011 05:58 pm Alex Williamson

Error check find_ram_offset

Spotted via code review, we initialize offset to 0 to avoid a
compiler warning, but in the unlikely case that offset is
never set to something else, we should abort instead of return
a value that will almost certainly cause problems....

754fd932 11/01/2011 05:58 pm Peter Maydell

qemu-tls.h: Add abstraction layer for TLS variables

Add an abstraction layer for defining and using thread-local
variables. For the moment this is implemented only for Linux,
which means they can only be used in restricted circumstances.
The abstraction layer allows us to add POSIX and Win32 support...

8a5f7b03 11/01/2011 05:58 pm Paolo Bonzini

darwin-user/main.c: Drop unused cpu_single_env definition

Drop the cpu_single_env definition as it is unused.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

b3c4bbe5 11/01/2011 05:58 pm Paolo Bonzini

Make cpu_single_env thread-local

Make cpu_single_env thread-local. This fixes a regression
in handling of multi-threaded programs in linux-user mode
(bug 823902).

Signed-off-by: Paolo Bonzini <>
[Peter Maydell: rename tls_cpu_single_env to cpu_single_env]...

bdb7ca67 11/01/2011 05:58 pm Jan Kiszka

Simplify cpu_exec_all to tcg_exec_all

After the removal of the non-threaded mode cpu_exec_all is now only used
by TCG. Refactor it accordingly, also dropping its unused return value.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

ec38d398 11/01/2011 05:04 pm Andreas Färber

MAINTAINERS: Add PReP maintainer

Officially take on maintainership for PReP and upgrade to Odd Fixes.

Acked-by: Alexander Graf <>
Signed-off-by: Andreas Färber <>
Cc: Alexander Graf <>
Cc: Hervé Poussineau <>...

c2a8238a 11/01/2011 05:04 pm Stefan Weil

Support running QEMU on Valgrind

Valgrind is a tool which can automatically detect many kinds of bugs.

Running QEMU on Valgrind with x86_64 hosts was not possible because
Valgrind aborts when memalign is called with an alignment larger than
1 MiB. QEMU normally uses 2 MiB on Linux x86_64....

ff74c5a9 10/31/2011 10:05 pm Anthony Liguori

Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging

8494a397 10/31/2011 06:09 pm Anthony Liguori

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

Conflicts:
block/vmdk.c

d439b79d 10/31/2011 06:06 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream-7' into staging

96b3d73f 10/31/2011 06:02 pm Anthony Liguori

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

Conflicts:
ui/spice-core.c

549f808b 10/31/2011 06:00 pm Anthony Liguori

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

3a069ff1 10/31/2011 05:23 pm Anthony Liguori

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

acba3914 10/31/2011 05:14 pm Anthony Liguori

Merge remote-tracking branch 'alon/pull-libcacard-assert' into staging

eca968d0 10/31/2011 05:12 pm Anthony Liguori

Merge remote-tracking branch 'spice/spice.v45' into staging

9db221ae 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Add synthetic file system support using 9p

This patch create a synthetic file system with mount tag
v_synth when -virtfs_synth command line option is specified
in qemu. The synthetic file system can be mounted in guest
using 9p using the below command line...

5f7d05ec 10/31/2011 09:04 am Harsh Prateek Bora

qemu-queue: Introduce QLIST_INSERT_HEAD_RCU and dummy RCU wrappers.

SynthFS needs a QLIST_INSERT_HEAD_RCU to make sure list instructions are not
re-ordered and therefore avoiding a crash. There may be parallel readers which
should be allowed for lock-free access and this variant allows us to get rid...

2583e443 10/31/2011 09:04 am Harsh Prateek Bora

hw/9pfs: Replace rwlocks with RCU variants of interfaces.

Use QLIST_INSERT_HEAD_RCU and rcu_read_lock/unlock instead of rwlocks.
Use v9fs_synth_mutex as a write-only mutex to handle concurrent writers.

Signed-off-by: Harsh Prateek Bora <>...

2c74c2cb 10/31/2011 09:04 am M. Mohan Kumar

hw/9pfs: Read-only support for 9p export

A new fsdev parameter "readonly" is introduced to control accessing 9p export.
"readonly" can be used to specify the access type. By default "rw" access
is given to 9p export.

Signed-off-by: M. Mohan Kumar <>...

cc720ddb 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Abstract open state of fid to V9fsFidOpenState

To implement synthetic file system in Qemu we may not really
require file descriptor and Dir *. Make generic code use
V9fsFidOpenState instead.

Signed-off-by: Aneesh Kumar K.V <>

f02b77c9 10/31/2011 09:04 am M. Mohan Kumar

qemu: Add opt_set_bool functionality

Signed-off-by: M. Mohan Kumar <>
Signed-off-by: Aneesh Kumar K.V <>

17b1971f 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Fix error handling in local_mknod

Update local_chown to remove unnecessary if loop

Signed-off-by: Aneesh Kumar K.V <>

15329e83 10/31/2011 09:04 am Aneesh Kumar K.V

configure: Update configure so that open_by_handle_at check returns correct value

According to David Gibson for some compiler/libc combinations, open_by_handle_at
test in configure isn't quite right: because the file_handle pointer is never
dereferenced, gcc doesn't complain even if it is undefined. Change the test...

03a0e944 10/31/2011 06:40 am Peter Maydell

hw/vexpress.c, hw/realview.c: Add PL041 to VExpress, Realview boards

Instantiate the PL041 audio on the Versatile Express and
Realview board models.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

d028d02d 10/31/2011 06:40 am Mathieu Sonet

Add AACI audio playback support to the ARM Versatile/PB platform

This driver emulates the ARM AACI interface (PL041) connected to a LM4549 codec.
It enables audio playback for the Versatile/PB platform.

Limitations:
- Supports only a playback on one channel (Versatile/Vexpress)...

375847a6 10/30/2011 12:58 pm Max Filippov

MAINTAINERS: update wiki URL and machine names for target-xtensa

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

df072774 10/30/2011 11:06 am Richard Henderson

tcg: Optimize some forms of deposit.

If the deposit replaces the entire word, optimize to a move.

If we're inserting to the top of the word, avoid the mask of arg2
as we'll be shifting out all of the garbage and shifting in zeros.

If the host is 32-bit, reduce a 64-bit deposit to a 32-bit deposit...

7999f7e1 10/30/2011 11:05 am Aneesh Kumar K.V

hw/9pfs: Make VirtFS tracing work correctly

this patch fix multiple issues with VirtFS tracing.
a) Add tracepoint to the correct code path. We handle error in complete_pdu
b) Fix indentation in python script
c) Fix variable naming issue in python script
...

c2f36c6c 10/30/2011 11:05 am Stefan Weil

exec-all: Fix void pointer arithmetic

Adding an offset to a void pointer works with gcc but is not allowed
by the current C standards. With -pedantic, gcc complains:

exec-all.h:344: error: pointer of type ‘void *’ used in arithmetic

Fix this, and also replace (unsigned long) by (uintptr_t) in the same...

d787fcf4 10/30/2011 11:03 am David Gibson

Add linux-headers/asm to .gitignore

linux-headers/asm is a symlink generated during configure. It should not,
therefore be committed to git, nor show up in git diffs and the like.

Signed-off-by: David Gibson <>
Reviewed-by: Juan Quintela <>...

44740c38 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: do not duplicate BlockDriverState member

Same as for scsi-generic, avoid duplication even if it causes longer
lines.

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

69377307 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: remove cluster_size

This field is redundant, and having it makes it more complicated
to share reqops between the upcoming scsi-block and scsi-generic.

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

e39be482 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: small clean up to INQUIRY

Set s->removable, s->qdev.blocksize and s->qdev.type in the callers
of scsi_initfn.

With this in place, s->qdev.type is allowed, and we can just reuse it
as the first byte in VPD data (just like we do in standard INQUIRY data)....

7877903a 10/28/2011 08:25 pm Paolo Bonzini

scsi: move max_lba to SCSIDevice

The field is only in scsi-disk for now. Moving it up to SCSIDevice makes
it easier to reuse the scsi-generic reqops elsewhere.

At the same time, make scsi-generic get max_lba from snooped READ CAPACITY
commands as well....

adcf2754 10/28/2011 08:25 pm Paolo Bonzini

scsi: make reqops const

Also delete a stale occurrence of SCSIReqOps inside SCSIDeviceInfo.

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

765d1525 10/28/2011 08:25 pm Paolo Bonzini

scsi: export scsi_generic_reqops

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

63db0f0e 10/28/2011 08:25 pm Paolo Bonzini

scsi: pass cdb to alloc_req

This will let scsi-block choose between passthrough and emulation.

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

e88c591d 10/28/2011 08:25 pm Paolo Bonzini

scsi: do not call transfer_data after canceling a request

Otherwise, if cancellation is "faked" by the AIO layer and goes
through qemu_aio_flush, the whole request is completed synchronously
during scsi_req_cancel.

Using the enqueued flag would work here, but not in the next patches,...

c7bae6a7 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: bump SCSIRequest reference count until aio completion runs

In some cases a request may be canceled before the completion callback
runs. Keep a reference to the request between starting an AIO operation
and the corresponding scsi_req_cancel or scsi_*_complete....

c9501c95 10/28/2011 08:25 pm Paolo Bonzini

scsi-generic: bump SCSIRequest reference count until aio completion runs

Same as before, but for scsi-generic.

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

71544d30 10/28/2011 08:25 pm Paolo Bonzini

scsi: push request restart to SCSIDevice

The request restart mechanism is generic and could be reused for
scsi-generic. In the meanwhile, pushing it to SCSIDevice avoids
that scsi_dma_restart_bh looks at SCSIGenericReqs when working on
a scsi-block device....

336a6915 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: add scsi-block for device passthrough

scsi-block is a new device that supports device passthrough of Linux
block devices (i.e. /dev/sda, not /dev/sg0). It uses SG_IO for commands
other than I/O commands, and regular AIO read/writes for I/O commands....

3c2f7c12 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: report media changed via GET EVENT STATUS NOTIFICATION

This adds support for media change notification via the GET EVENT STATUS
NOTIFICATION command, used by Linux versions 2.6.38 and newer.

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

afd4030c 10/28/2011 08:25 pm Paolo Bonzini

scsi: move tcq/ndev to SCSIBusOps (now SCSIBusInfo)

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

d8bb00d6 10/28/2011 08:25 pm Paolo Bonzini

qdev: switch children device list to QTAILQ

SCSI buses will need to read the children list first-to-last. This
requires using a QTAILQ, because hell breaks loose if you just try
inserting at the tail (thus reversing the order of all existing
visits from last-to-first to first-to-tail)....

f48a7a6e 10/28/2011 08:25 pm Paolo Bonzini

scsi: remove devs array from SCSIBus

Change the devs array into a linked list, and add a scsi_device_find
function to navigate the children list instead. This lets the SCSI
bus use more complex addressing, and HBAs can talk to the correct device
when there are multiple LUNs per target....

ba74307c 10/28/2011 08:25 pm Paolo Bonzini

scsi: implement REPORT LUNS for arbitrary LUNs

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

7e0380b9 10/28/2011 08:25 pm Paolo Bonzini

scsi: allow arbitrary LUNs

This only requires changes in two places: in SCSIBus, we need to look
for a free LUN if somebody creates a device with a pre-existing scsi-id
but the default LUN (-1, meaning "search for a free spot"); in vSCSI,
we need to actually parse the LUN according to the SCSI spec....

0d3545e7 10/28/2011 08:25 pm Paolo Bonzini

scsi: add channel to addressing

This also requires little more than adding the new argument to
scsi_device_find, and the qdev property. All devices by default
end up on channel 0.

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

7cec78b6 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: fail READ CAPACITY if LBA != 0 but PMI == 0

Tested by the Windows Logo Kit SCSI Compliance test. From SBC-3, paragraph
5.25: "The LOGICAL BLOCK ADDRESS field shall be set to zero if the PMI
bit is set to zero. If the PMI bit is set to zero and the LOGICAL BLOCK...

628e95b6 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: fix retrying a flush

Flush does not go anymore through scsi_disk_emulate_command.

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

8869e103 10/28/2011 08:25 pm Paolo Bonzini

scsi-generic: drop SCSIGenericState

It is not needed, because s->bs is already stored in SCSIDevice, and
can be reached from the conf.bs member.

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

6a58a3a6 10/28/2011 08:25 pm Paolo Bonzini

scsi-generic: remove scsi_req_fixup

This is not needed anymore, since asynchronous ioctls were introduced
by commit 221f715 (new scsi-generic abstraction, use SG_IO, 2009-03-28).

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

fe0ed712 10/28/2011 08:25 pm Paolo Bonzini

scsi-generic: check ioctl statuses when SG_IO succeeds

A succeeding ioctl does not imply that the SCSI command succeeded.

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

a3b16e71 10/28/2011 08:25 pm Paolo Bonzini

scsi-generic: look at host status

Pass down the host status so that failing transport can be detected
by the guest. Similar treatment of host status could be done in
virtio-blk, too.

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

9b6eef8a 10/28/2011 08:25 pm Paolo Bonzini

scsi-generic: snoop READ CAPACITY commands to get block size

Instead of "guessing" the block size when there is no medium in the
drive, wait for the guest to send a READ CAPACITY command and snoop
it from there.

Signed-off-by: Paolo Bonzini <>...

03f541bd 10/28/2011 08:25 pm Stefan Hajnoczi

block: reinitialize across bdrv_close()/bdrv_open()

Several BlockDriverState fields are not being reinitialized across
bdrv_close()/bdrv_open(). Make sure they are reset to their default
values.

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

d9990228 10/28/2011 08:25 pm Ronnie Sahlberg

Documentation: Add syntax for using sheepdog devices

Signed-off-by: Ronnie Sahlberg <>
Signed-off-by: Kevin Wolf <>

7e218df5 10/28/2011 08:25 pm Paolo Bonzini

scsi: pass correct sense code for ENOMEDIUM

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

67cc61e4 10/28/2011 08:25 pm Paolo Bonzini

atapi/scsi: unify definitions for MMC

The definitions in ide/internal.h are duplicates, since ATAPI commands
actually come from SCSI. Use the ones in scsi-defs.h and move the
missing ones there. Two exceptions:

- MODE_PAGE_WRITE_PARMS conflicts with the "flexible disk geometry"...

f0f992e6 10/28/2011 08:25 pm Paolo Bonzini

atapi: move GESN definitions to scsi-defs.h

As a complement to the previous patch, move definitions for GET EVENT
STATUS NOTIFICATION from the two functions to scsi-defs.h.

The NCR_* constants are just bit values corresponding to the ENC_*
values, with no offsets even, so keep just one copy....

af0e1ea2 10/28/2011 08:25 pm Paolo Bonzini

atapi: cleanup/fix mode sense results

The first two bytes (after the 8-byte ATAPI header) are the mode page
number and the number of bytes after the length field itself. Make
this clear in the code.

The AUDIO_CTL page was filled with wrong values. It is not anymore in...

3653d8c4 10/28/2011 08:25 pm Paolo Bonzini

scsi: notify the device when unit attention is reported

Reporting media change events via unit attention sense codes requires
a small state machine: first report "NO MEDIUM", then report "MEDIUM MAY
HAVE CHANGED". Unfortunately there is no good hooking point for the...

8a9c16f6 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: report media changed via unit attention sense codes

Building on the previous patch, this one adds a media change callback
to scsi-disk.

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

f01b5931 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: fix coding style issues (braces)

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

b6c251ab 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: add stubs for more MMC commands

This patch adds a few stub implementations for MMC commands to
scsi-disk, to be filled in later in the series. It also adds to
scsi-defs.h constants for commands implemented by ide/atapi.c,
when missing.

Signed-off-by: Paolo Bonzini <>...

a8f4bbe2 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: store valid mode pages in a table

A small refactoring of the MODE SENSE implementation in scsi-disk.

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

a07c7dcd 10/28/2011 08:25 pm Paolo Bonzini

atapi/scsi-disk: make mode page values coherent between the two

This patch adds to scsi-disk the missing mode page 0x01 for both disk
and CD-ROM drives, and mode page 0x0e for CD drives only.

A few offsets were wrong in atapi.c. Also change the 2Ah mode page to...

430ee2f2 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: support DVD profile in GET CONFIGURATION

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

ceb792ef 10/28/2011 08:25 pm Paolo Bonzini

scsi-disk: support READ DVD STRUCTURE

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

0f5314a2 10/28/2011 08:25 pm Ronnie Sahlberg

Documentation: Add iSCSI section

Add new section for device URL syntax for special files and describe the iSCSI
URL with examples

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

c794b4e0 10/28/2011 08:25 pm Eric Sunshine

Teach block/vdi about "discarded" (no longer allocated) blocks

An entry in the VDI block map will hold an offset to the actual block if
the block is allocated, or one of two specially-interpreted values if
not allocated. Using VirtualBox terminology, value VDI_IMAGE_BLOCK_FREE...

3789985f 10/28/2011 08:25 pm Zhi Yong Wu

qcow2: fix some errors and typo in qcow2.txt

Signed-off-by: Zhi Yong Wu <>
Signed-off-by: Kevin Wolf <>

3574c608 10/28/2011 08:25 pm Kevin Wolf

block: Remove dead code

Signed-off-by: Kevin Wolf <>

2b572816 10/28/2011 08:25 pm Kevin Wolf

block: Fix bdrv_open use after free

tmp_filename was used outside the block it was defined in, i.e. after it went
out of scope. Move its declaration to the top level.

Signed-off-by: Kevin Wolf <>

64ebe71a 10/28/2011 08:25 pm Kevin Wolf

qcow: Fix bdrv_write_compressed error handling

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

fb60105d 10/28/2011 08:25 pm Kevin Wolf

ide: Fix off-by-one error in array index check

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

bac8d7b4 10/28/2011 08:25 pm Kevin Wolf

vmdk: Fix use of uninitialised value

In error cases, cid is never set.

Signed-off-by: Kevin Wolf <>

99f1835d 10/28/2011 08:25 pm Kevin Wolf

vmdk: Improve error handling

Return the right error values in some more places.

Signed-off-by: Kevin Wolf <>

93897b9f 10/28/2011 08:25 pm Kevin Wolf

vmdk: Fix possible segfaults

Data we read from the disk isn't necessarily null terminated and may not
contain the string we're looking for. The code needs to be a bit more careful
here.

Signed-off-by: Kevin Wolf <>

08ae330e 10/28/2011 08:25 pm Ronnie Sahlberg

Documentation: Describe NBD URL syntax

This patch adds a short description of how to specify a NBD device
to QEMU.
Syntax for both TCP and Unix Domain Sockets are provided as well
as examples.

Signed-off-by: Ronnie Sahlberg <>
Signed-off-by: Kevin Wolf <>

c95de7e2 10/28/2011 08:25 pm Dong Xu Wang

block: fix qcow2_co_flush deadlock

If qcow2_cache_flush failed, s->lock will not be unlock.

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Kevin Wolf <>

b4657855 10/28/2011 08:25 pm Stefan Hajnoczi

qemu-io: delete bs instead of leaking it

Using bdrv_close() is not enough to free a BlockDriverState. Since we
explicitly create it with bdrv_new(), use bdrv_delete() to close and
delete it.

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

e7c63796 10/28/2011 08:25 pm Stefan Hajnoczi

block: set bs->read_only before .bdrv_open()

Several block drivers set bs->read_only in .bdrv_open() but
block.c:bdrv_open_common() clobbers its value. Additionally, QED uses
bdrv_is_read_only() in .bdrv_open() to decide whether to perform
consistency checks....

c589b249 10/28/2011 08:25 pm Ronnie Sahlberg

iSCSI block driver

This provides built-in support for iSCSI to QEMU.

This has the advantage that the iSCSI devices need not be made visible to the host, which is useful if you have very many virtual machines and very many iscsi devices.
It also has the benefit that non-root users of QEMU can access iSCSI devices across the network without requiring root privilege on the host....

b5a12aa2 10/27/2011 11:27 pm Blue Swirl

Merge branch 'rth/vis2' of git://repo.or.cz/qemu/rth

  • 'rth/vis2' of git://repo.or.cz/qemu/rth:
    target-sparc: Implement FALIGNDATA inline.
    target-sparc: Implement BMASK/BSHUFFLE.
    target-sparc: Implement ALIGNADDR* inline.
    target-sparc: Implement EDGE* instructions....
d6bf279e 10/27/2011 04:48 pm Luiz Capitulino

block: iostatus: Drop BDRV_IOS_INVAL

A future commit will convert bdrv_info() to the QAPI and it won't
provide IOS_INVAL.

Luckily all we have to do is to add a new 'iostatus_enabled'
member to BlockDriverState and use it instead.

Signed-off-by: Luiz Capitulino <>

58e21ef5 10/27/2011 04:48 pm Luiz Capitulino

block: Rename the BlockIOStatus enum values

The biggest change is to rename its prefix from BDRV_IOS to
BLOCK_DEVICE_IO_STATUS.

Next commit will convert the query-block command to the QAPI
and that's how the enumeration is going to be generated.

Signed-off-by: Luiz Capitulino <>

b2023818 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-block

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

f11f57e4 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-blockstats

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

bf826328 10/27/2011 04:48 pm Luiz Capitulino

qerror: Add a user string for QERR_FEATURE_DISABLED

Missing from commit 821601ea5b.

Signed-off-by: Luiz Capitulino <>

2b54aa87 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-vnc

There are three important remarks in relation to the non-qapi command:

1. This commit also fixes the behavior of the 'query-vnc' and 'info vnc'
commands to return an error when qemu is built without VNC support
(ie. --disable-vnc). The non-qapi command would return the OK...
d1f29646 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-spice

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

96637bcd 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-balloon

Please, note that some of the code supporting memory statistics is
still around (eg. virtio_balloon_receive_stats() and reset_stats()).

Also, the qmp_query_balloon() function is synchronous and thus doesn't
make any use of the (not fully working) monitor's asynchronous command...

79627472 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-pci

This also fixes a bug with the old version: QMP would invert device id
and vendor id. This would look ok on HMP because it was printing
"device:vendor" instead of "vendor:device".

Signed-off-by: Anthony Liguori <>...

40e5a01d 10/27/2011 04:48 pm Luiz Capitulino

QMP: Drop the query commands dispatch table

Because QMP development originated in the monitor, it has
inherited the monitor's distinction between query- and
non-query commands.

However, previous commits unified both commands and the
distinction is gone. This commit drops the query commands...

b5c30586 10/27/2011 04:48 pm Luiz Capitulino

Monitor: do_info(): Drop QMP command handling code

Previous commits converted all existing QMP commands to the QAPI,
now each info command does its own QMP call.

Let's then drop all QMP command handling code from do_info().

Signed-off-by: Luiz Capitulino <>

f795e743 10/27/2011 04:48 pm Luiz Capitulino

Drop qemu-objects.h from modules that don't require it

Previous commits dropped most qobjects usage from qemu modules
(now they are a low level interface used by the QAPI). However,
some modules still include the qemu-objects.h header file.

This commit drops qemu-objects.h from some of those modules...