Statistics
| Branch: | Revision:

root @ 6cfcb9b8

# Date Author Comment
6cfcb9b8 06/24/2013 11:25 am Kevin Wolf

qcow2: Add refcount update reason to all callers

This adds a refcount update reason to all callers of update_refcounts(),
so that a follow-up patch can use this information to decide whether
clusters that reach a refcount of 0 should be discarded in the image...

92a6a6f6 06/24/2013 11:25 am Kevin Wolf

ide: Convert DMA read/write commands to ide_cmd_table handler

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

63a82e6a 06/24/2013 11:25 am Kevin Wolf

ide: Convert READ NATIVE MAX ADDRESS to ide_cmd_table handler

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

785f6320 06/24/2013 11:25 am Kevin Wolf

ide: Convert CHECK POWER MDOE to ide_cmd_table handler

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

ee03398c 06/24/2013 11:25 am Kevin Wolf

ide: Convert SET FEATURES to ide_cmd_table handler

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

9afce429 06/24/2013 11:25 am Kevin Wolf

ide: Convert FLUSH CACHE to ide_cmd_table handler

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

61fdda37 06/24/2013 11:25 am Kevin Wolf

ide: Convert SEEK to ide_cmd_table handler

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

ee425c78 06/24/2013 11:25 am Kevin Wolf

ide: Convert ATAPI commands to ide_cmd_table handler

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

6b1dd744 06/24/2013 11:25 am Kevin Wolf

ide: Convert CF-ATA commands to ide_cmd_table handler

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

ff352677 06/24/2013 11:25 am Kevin Wolf

ide: Convert SMART commands to ide_cmd_table handler

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

dfe1ea8f 06/24/2013 11:25 am Kevin Wolf

ide: Clean up ide_exec_cmd()

All commands are now converted to ide_cmd_table handlers, so it can be
unconditional now and the old switch block can go.

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

492fdc6f 06/24/2013 11:25 am Kevin Wolf

Revert "block: Disable driver-specific options for 1.5"

This reverts commit 8ec7d390b0d50b5e5b4b1d8dba7ba40d64a70875.

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

a0436e92 06/24/2013 11:25 am Kevin Wolf

ide: Add handler to ide_cmd_table

As a preparation for moving all IDE commands into their own function
like in the ATAPI code, introduce a 'handler' callback to ide_cmd_table.

Commands using this new infrastructure get some things handled
automatically:...

4286434c 06/24/2013 11:25 am Kevin Wolf

ide: Convert WIN_DSM to ide_cmd_table handler

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

1c66869a 06/24/2013 11:25 am Kevin Wolf

ide: Convert WIN_IDENTIFY to ide_cmd_table handler

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

b300337e 06/24/2013 11:25 am Kevin Wolf

ide: Convert cmd_nop commands to ide_cmd_table handler

cmd_nop handles all commands that don't really do anything in our
implementation except setting status register flags.

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

413860cf 06/24/2013 11:25 am Kevin Wolf

ide: Convert verify commands to ide_cmd_table handler

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

adf3a2c4 06/24/2013 11:25 am Kevin Wolf

ide: Convert read/write multiple commands to ide_cmd_table handler

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

0e6498ed 06/24/2013 11:25 am Kevin Wolf

ide: Convert PIO read/write commands to ide_cmd_table handler

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

576156ff 06/21/2013 12:53 am Anthony Liguori

Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging

  1. By Paolo Bonzini (12) and others
  2. Via Paolo Bonzini
    • bonzini/iommu-for-anthony: (25 commits)
      memory: render_memory_region: factor out fr constant setters
      memory: as_update_topology_pass: Improve comments...
b1588c3f 06/21/2013 12:53 am Anthony Liguori

Merge remote-tracking branch 'kiszka/queues/slirp' into staging

  1. By Bas van Sisseren (1) and Gertjan Halkes (1)
  2. Via Jan Kiszka
    • kiszka/queues/slirp:
      make user networking hostfwd work with restrict=y
      fix -net user checks by reordering checks

Message-id: ...

df32fd1c 06/20/2013 05:39 pm Paolo Bonzini

dma: eliminate DMAContext

The DMAContext is a simple pointer to an AddressSpace that is now always
already available. Make everyone hold the address space directly,
and clean up the DMA API to use the AddressSpace directly.

Reviewed-by: Peter Maydell <>...

7dca8043 06/20/2013 05:39 pm Alexey Kardashevskiy

memory: give name to every AddressSpace

The "info mtree" command in QEMU console prints only "memory" and "I/O"
address spaces while there are actually a lot more other AddressSpace
structs created by PCI and VIO devices. Those devices do not normally
have names and therefore not present in "info mtree" output....

8508e024 06/20/2013 05:39 pm Peter Crosthwaite

memory: Fix comment typo

s/ajacent/adjacent

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Paolo Bonzini <>

41a6e477 06/20/2013 05:39 pm Peter Crosthwaite

memory: as_update_topology_pass: Improve comments

These comments were a little difficult to read. First one had
incorrect parenthesis. The part about attributes changing is
really applicable to the region being 'in both' rather than 'in
new'

Second comment has an obscure parenthetic about 'Logging may have...

2eb74e1a 06/20/2013 05:39 pm Peter Crosthwaite

memory: render_memory_region: factor out fr constant setters

These 4 replicated lines set properties of fr that are constant over
the course of the function. Factor out their repeated setting (and also
guards against them being set multiple times in the loop below)....

96478592 06/20/2013 05:32 pm Paolo Bonzini

spapr_vio: take care of creating our own AddressSpace/DMAContext

Fetch the root region from the sPAPRTCETable, and use it to build
an AddressSpace and DMAContext.

Now, everywhere we have a DMAContext we also have access to the
corresponding AddressSpace (either because we create it just before...

733d5ef5 06/20/2013 05:32 pm Paolo Bonzini

exec: reorganize mem_add to match Int128 version

When adding support for 2^64-byte sections, we will have to change
the structure of mem_add to avoid failures in int128_get64.
Reorganize the code now before introducing Int128.

Signed-off-by: Paolo Bonzini <>

052e87b0 06/20/2013 05:32 pm Paolo Bonzini

memory: make section size a 128-bit integer

So far, the size of all regions passed to listeners could fit in 64 bits,
because artificial regions (containers and aliases) are eliminated by
the memory core, leaving only device regions which have reasonable sizes...

30951157 06/20/2013 05:32 pm Avi Kivity

memory: iommu support

Add a new memory region type that translates addresses it is given,
then forwards them to a target address space. This is similar to
an alias, except that the mapping is more flexible than a linear
translation and trucation, and also less efficient since the...

06866575 06/20/2013 05:32 pm David Gibson

memory: Add iommu map/unmap notifiers

This patch adds a NotifierList to MemoryRegions which represent IOMMUs
allowing other parts of the code to register interest in mappings or
unmappings from the IOMMU. All IOMMU implementations will need to call
memory_region_notify_iommu() to inform those waiting on the notifier list,...

06d985f5 06/20/2013 05:32 pm Avi Kivity

vfio: abort if an emulated iommu is used

vfio doesn't support guest iommus yet, indicate it to the user
by gently depositing a core on their disk.

Reviewed-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Paolo Bonzini <>

2b7dc949 06/20/2013 05:32 pm Paolo Bonzini

spapr: convert TCE API to use an opaque type

The TCE table is currently returned as a DMAContext, and non-type-safe
APIs are called later passing back the DMAContext. Since we want to move
away from DMAContext, use an opaque type instead, and add an accessor...

a71bfbfe 06/20/2013 05:32 pm Paolo Bonzini

spapr: make IOMMU translation go through IOMMUTLBEntry

The next step is to introduce the translation code that will be used for
IOMMU MemoryRegions, but still do the actual translation in a DMAContext.

Acked-by: David Gibson <>...

a84bb436 06/20/2013 05:32 pm Paolo Bonzini

spapr: use memory core for iommu support

Now we can stop using a "translating" DMAContext, but we do not yet modify
the sPAPRTCETable users to get an AddressSpace; they keep using the table
via a DMAContext.

Acked-by: David Gibson <>...

24addbc7 06/20/2013 05:32 pm Paolo Bonzini

dma: eliminate old-style IOMMU support

The translate function in the DMAContext is now always NULL.
Remove every reference to it.

Reviewed-by: Peter Maydell <>
Signed-off-by: Paolo Bonzini <>

e00387d5 06/20/2013 05:32 pm Avi Kivity

pci: use memory core for iommu support

Use the new iommu support in the memory core for iommu support. The only
user, spapr, is also converted, but it still provides a DMAContext
interface until the non-PCI bits switch to AddressSpace.

Reviewed-by: Michael S. Tsirkin <>...

3752a036 06/20/2013 05:32 pm Peter Maydell

exec.c: address_space_translate: handle access to addr 0 of 2^64 sized region

The memory API allows a MemoryRegion's size to be 2^64, as a special
case (otherwise the size always fits in a 64 bit integer). This meant
that attempts to access address zero in a 2^64 sized region would...

9f029603 06/20/2013 05:32 pm Jan Kiszka

memory: Introduce address_space_lookup_region

This introduces a wrapper for phys_page_find (before we complicate
address_space_translate with IOMMU translation). This function will
also encapsulate locking and reference counting when we introduce
BQL-free dispatching....

1db8abb1 06/20/2013 05:32 pm Paolo Bonzini

memory: move private types to exec.c

Signed-off-by: Paolo Bonzini <>

f52cc467 06/20/2013 05:32 pm Jan Kiszka

exec: Allow unaligned address_space_rw

This will be needed for some corner cases with para-virtual I/O ports.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>

90260c6c 06/20/2013 05:32 pm Jan Kiszka

exec: Resolve subpages in one step except for IOTLB fills

Except for the case of setting the IOTLB entry in TCG mode, we can avoid
the subpage dispatching handlers and do the resolution directly on
address_space_lookup_region. An IOTLB entry describes a full page, not...

acc9d80b 06/20/2013 05:32 pm Jan Kiszka

exec: Implement subpage_read/write via address_space_rw

This will allow to add support for unaligned memory regions: the subpage
container region can activate unaligned support unconditionally because
the read/write handler will now ensure that accesses are split as...

5c8a00ce 06/20/2013 05:32 pm Paolo Bonzini

exec: return MemoryRegion from address_space_translate

Only address_space_translate_for_iotlb needs to return the section.
Every caller of address_space_translate now uses only section->mr,
return it directly.

Signed-off-by: Paolo Bonzini <>

99b9cc06 06/20/2013 05:32 pm Paolo Bonzini

Revert "memory: limit sections in the radix tree to the actual address space size"

This reverts commit 86a8623692b1b559a419a92eb8b6897c221bca74.

Signed-off-by: Paolo Bonzini <>

5b23fd03 06/20/2013 05:32 pm Paolo Bonzini

Revert "s390x: reduce TARGET_PHYS_ADDR_SPACE_BITS to 62"

This reverts commit 311f83ca08c011b048c063c2fd3038a8957970bc.

Signed-off-by: Paolo Bonzini <>

4eda32f5 06/19/2013 10:10 pm Markus Armbruster

doc: Drop ref to Bochs from -no-fd-bootchk documentation

Manual page and qemu-doc on talk about "Bochs BIOS". We use SeaBIOS,
and it implements the feature. Replace by just "BIOS", and drop the
TODO line wondering about the Bochs reference.

Signed-off-by: Markus Armbruster <>...

e1123015 06/19/2013 10:10 pm Markus Armbruster

pc: Make -no-fd-bootchk stick across boot order changes

Option -no-fd-bootchk asks the BIOS to attempt booting from a floppy
even when the boot sector signature isn't there, by setting a bit in
RTC CMOS. It was added back in 2006 (commit 52ca8d6a).

Two years later, commit 0ecdffbb added monitor command boot_set....

a86b35f9 06/19/2013 10:10 pm Markus Armbruster

qemu-option: check_params() is now unused, drop it

Signed-off-by: Markus Armbruster <>
Reviewed-by: Anthony Liguori <>
Message-id:
Signed-off-by: Anthony Liguori <>

8281abd5 06/19/2013 10:10 pm Markus Armbruster

vl: Fix -boot order and once regressions, and related bugs

Option "once" sets up a different boot order just for the initial
boot. Boot order reverts back to normal on reset. Option "order"
changes the normal boot order.

The reversal is implemented by reset handler restore_boot_devices(),...

083b79c9 06/19/2013 10:10 pm Markus Armbruster

vl: Rename *boot_devices to *boot_order, for consistency

Signed-off-by: Markus Armbruster <>
Reviewed-by: Anthony Liguori <>
Message-id:
Signed-off-by: Anthony Liguori <>

6ef4716c 06/19/2013 10:10 pm Markus Armbruster

vl: Clean up parsing of -boot option argument

Commit 3d3b8303 threw in some QemuOpts parsing without replacing the
existing ad hoc parser, resulting in a confusing mess. Clean it up.

Two user-visible changes:

1. Invalid options are reported more nicely. Before:...

68756ba8 06/19/2013 01:44 pm Bas van Sisseren

fix -net user checks by reordering checks

reorder slirp config options. first check the dns-server-address,
then check the first-dhcp-address. the original code was comparing
the first-dhcp-address with the default dns-server-address, not
the configured dns-server-address....

b5a87d26 06/19/2013 01:44 pm Gertjan Halkes

make user networking hostfwd work with restrict=y

This patch allows the hostfwd option to override the restrict=y setting in
the user network stack, as explicitly stated in the documentation on the
restrict option:

restrict=on|off
If this option is enabled, the guest will be isolated, i.e. it...
c1990468 06/18/2013 09:44 pm Michael Roth

wdt_i6300esb: fix vmstate versioning

When this VMSD was introduced it's version fields were set to
sizeof(I6300State), making them essentially random from build to build,
version to version.

To fix this, we lock in a high version id and low minimum version id to...

3ed8a843 06/18/2013 06:06 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/scsi-next' into staging

  1. By Paolo Bonzini (3) and others
  2. Via Paolo Bonzini
    • bonzini/scsi-next:
      iscsi: reorganize iscsi_readcapacity_sync
      iscsi: simplify freeing of tasks
      vhost-scsi: fix k->set_guest_notifiers() NULL dereference...
7d8f4b34 06/18/2013 06:06 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/nbd-next' into staging

  1. By Ján Tomko
  2. Via Paolo Bonzini
    • bonzini/nbd-next:
      nbd: strip braces from literal IPv6 address in URI
      qemu-socket: allow hostnames starting with a digit
5b456438 06/18/2013 06:05 pm Cole Robinson

virtio-rng: Fix crash with non-default backend

'default_backend' isn't always set, but 'rng' is, so use that.

$ ./x86_64-softmmu/qemu-system-x86_64 -object rng-random,id=rng0,filename=/dev/random -device virtio-rng-pci,rng=rng0
Segmentation fault (core dumped)...

7721c7f7 06/18/2013 01:43 pm Pavel Hrdina

scsi: reset cdrom tray statuses on scsi_disk_reset

Tray statuses should be also reset. Some guests may lock the tray and
right after resetting the guest it should be unlocked and closed. This
is done on power-on, reset and resume from suspend/hibernate on bare-metal....

53254e56 06/18/2013 01:43 pm Paolo Bonzini

scsi-generic: fix sign extension of READ CAPACITY data

Issuing the READ CAPACITY command in the guest will cause QEMU
to update its knowledge of the maximum accessible LBA in the disk.
The recorded maximum LBA will be wrong if the disk is bigger than...

d836f8d3 06/18/2013 01:43 pm Pavel Hrdina

scsi-generic: check the return value of bdrv_aio_ioctl in execute_command

This fixes the bug introduced by this commit ad54ae80c73f.
The bdrv_aio_ioctl() still could return null and we should return an error
in that case.

Cc:
Signed-off-by: Pavel Hrdina <>...

18e673b8 06/18/2013 01:43 pm Pavel Hrdina

scsi-disk: scsi-block device for scsi pass-through should not be removable

This patch adds a new SCSI_DISK_F_NO_REMOVABLE_DEVOPS feature. By this
feature we can set that the scsi-block (scsi pass-through) device will still
be removable from the guest side, but from monitor it cannot be removed....

0e22a2d1 06/18/2013 01:43 pm Stefan Hajnoczi

vhost-scsi: fix k->set_guest_notifiers() NULL dereference

Coverity picked up a copy-paste bug. In vhost_scsi_start() we check for
!k->set_guest_notifiers and error out. The check probably got copied
but instead of erroring we actually use the function pointer!...

f0d2a4d4 06/18/2013 01:43 pm Paolo Bonzini

iscsi: simplify freeing of tasks

Always free them in the iscsi_aio_*_acb functions and remove the
checks in their callers. Remove ifs when the task struct was
previously dereferenced (spotted by Coverity).

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

1288844e 06/18/2013 01:43 pm Paolo Bonzini

iscsi: reorganize iscsi_readcapacity_sync

Avoid the goto, and use the same retry logic for the 10- and 16-
byte versions.

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

23307908 06/18/2013 12:43 pm Ján Tomko

nbd: strip braces from literal IPv6 address in URI

Otherwise they would get passed to getaddrinfo and fail with:
address resolution failed for [::1]:1234: Name or service not known

(Broken by commit v1.4.0-736-gf17c90b)

Signed-off-by: Ján Tomko <>...

391b7b97 06/18/2013 12:42 pm Ján Tomko

qemu-socket: allow hostnames starting with a digit

According to RFC 1123 [1], hostnames can start with a digit too.

[1] http://tools.ietf.org/html/rfc1123#page-13

Signed-off-by: Ján Tomko <>
Cc:
[Use strspn, not strcspn. - Paolo]...

45fdd3bf 06/18/2013 10:45 am Peter Crosthwaite

intc/xilinx_intc: Handle level interrupt retriggering

Acking a level sensitive interrupt should have no effect if the
interrupt pin is still asserted. The current implementation requires
and edge condition to occur for setting a level sensitive IRQ, which...

fa96d614 06/18/2013 10:45 am Peter Crosthwaite

intc/xilinx_intc: Inhibit write to ISR when HIE

When the Hardware Interrupt Enable (HIE) bit is set, software cannot
change ISR. Add write guard accordingly.

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

afd59989 06/18/2013 10:45 am Peter Crosthwaite

intc/xilinx_intc: Dont lower IRQ when HIE cleared

This is a little strange. It is lowering the parent IRQ pin on input
when HIE is cleared. There is no such behaviour in the real hardware.

ISR changes based on interrupt pin state are already guarded on HIE...

37a011e9 06/18/2013 10:44 am Peter Crosthwaite

microblaze/petalogix_s3adsp1800_mmu: Fix UART IRQ

The UART IRQ is edge sensitive, whereas the machine was registering it
as level sensitive. Fix.

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

6327c221 06/18/2013 10:44 am Peter Crosthwaite

intc/xilinx_intc: Don't clear level sens. IRQs without ACK

For level sensitive interrupts, ISR bits are cleared when the input pin
is lowered. This is incorrect. Only software can clear ISR bits (via
IAR or direct write to ISR with !MER).

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

21a885a7 06/17/2013 09:14 pm Anthony Liguori

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

  1. By Luiz Capitulino
  2. Via Luiz Capitulino
    • luiz/queue/qmp:
      qerror: drop QERR_OPEN_FILE_FAILED macro
      block: bdrv_reopen_prepare(): don't use QERR_OPEN_FILE_FAILED
      savevm: qmp_xen_save_devices_state(): use error_setg_file_open()...
128dc2d1 06/17/2013 09:14 pm Anthony Liguori

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

  1. By Liu Yuan (2) and others
  2. Via Kevin Wolf
    • kwolf/for-anthony:
      vmdk: Allow reading variable size descriptor files
      NVMe: Initial commit for new storage interface
      curl: Don't set curl options on the handle just before it's going to be deleted....
5d71bbc5 06/17/2013 09:14 pm Anthony Liguori

Merge remote-tracking branch 'rth/fix-ppc64' into staging

  1. By Anton Blanchard
  2. Via Richard Henderson
    • rth/fix-ppc64:
      tcg-ppc64: rotr_i32 rotates wrong amount
      tcg-ppc64: Fix add2_i64
      tcg-ppc64: bswap64 rotates output 32 bits
      tcg-ppc64: Fix RLDCL opcode...
82e0f917 06/17/2013 08:42 pm Anton Blanchard

tcg-ppc64: bswap64 rotates output 32 bits

If our input and output is in the same register, bswap64 tries to
undo a rotate of the input. This just ends up rotating the output.

Cc:
Signed-off-by: Anton Blanchard <>
Signed-off-by: Richard Henderson <>

84247357 06/17/2013 08:42 pm Anton Blanchard

tcg-ppc64: Fix add2_i64

add2_i64 was adding the lower double word to the upper double word
of each input. Fix this so we add the lower double words, then the
upper double words with carry propagation.

Cc:
Signed-off-by: Anton Blanchard <>...

d1bdd3af 06/17/2013 08:42 pm Anton Blanchard

tcg-ppc64: rotr_i32 rotates wrong amount

rotr_i32 calculates the amount to left shift and puts it into a
temporary, but then doesn't use it when doing the shift.

Cc:
Signed-off-by: Anton Blanchard <>
Signed-off-by: Richard Henderson <>

8a94cfb0 06/17/2013 08:41 pm Anton Blanchard

tcg-ppc64: Fix RLDCL opcode

The rldcl instruction doesn't have an sh field, so the minor opcode
is shifted 1 bit. We were using the XO30 macro which shifted the
minor opcode 2 bits.

Remove XO30 and add MD30 and MDS30 macros which match the
Power ISA categories....

a7cea2ba 06/17/2013 06:47 pm Richard W.M. Jones

block/curl.c: Refuse to open the handle for writes.

Signed-off-by: Richard W.M. Jones <>
Signed-off-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

5a394b9e 06/17/2013 06:47 pm Stefan Hajnoczi

vmdk: byteswap VMDK4Header.desc_offset field

Remember to byteswap VMDK4Header.desc_offset on big-endian machines.

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

8da1aa15 06/17/2013 06:47 pm Richard W.M. Jones

curl: Don't set curl options on the handle just before it's going to be deleted.

(Found by Kamil Dudka)

Signed-off-by: Richard W.M. Jones <>
Cc: Michael Tokarev <>
Signed-off-by: Kevin Wolf <>

f3c507ad 06/17/2013 06:47 pm Keith Busch

NVMe: Initial commit for new storage interface

Initial commit for emulated Non-Volatile-Memory Express (NVMe) pci
storage device.

NVMe is an open, industry driven storage specification defining
an optimized register and command set designed to deliver the full...

0bed087d 06/17/2013 06:47 pm Evgeny Budilovsky

vmdk: Allow reading variable size descriptor files

the hard-coded 2k buffer on the stack won't allow reading big descriptor
files which can be generated when storing big images. For example 500G
vmdk splitted to 2G chunks.

Signed-off-by: Evgeny Budilovsky <>...

b579ffb3 06/17/2013 06:47 pm Liu Yuan

sheepdog: fix snapshot tag initialization

This is an old and obvious bug. We should pass snapshot_id to the
tag. Or simple command like 'qemu-img snapshot -a tag sheepdog:image' will fail

Cc:
Cc: MORITA Kazutaka <>...

cede621f 06/17/2013 06:47 pm Liu Yuan

sheepdog: support 'qemu-img snapshot -a'

Just call sd_create_branch() in the snapshot_goto to rollback the image is good
enough. With this patch, 'loadvm' process for sheepdog is modified:

Suppose we have a snapshot chain A --> B --> C, we do 'loadvm A' so as to get...

54028d75 06/17/2013 06:01 pm Luiz Capitulino

error: add error_setg_file_open() helper

Signed-off-by: Luiz Capitulino <>
Acked-by: Kevin Wolf <>

bc5741ad 06/17/2013 06:01 pm Luiz Capitulino

rng-random: use error_setg_file_open()

Signed-off-by: Luiz Capitulino <>
Acked-by: Kevin Wolf <>

dacc26aa 06/17/2013 06:01 pm Luiz Capitulino

block: mirror_complete(): use error_setg_file_open()

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

0eef407c 06/17/2013 06:01 pm Luiz Capitulino

blockdev: use error_setg_file_open()

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

618da851 06/17/2013 06:01 pm Luiz Capitulino

cpus: use error_setg_file_open()

Signed-off-by: Luiz Capitulino <>
Acked-by: Kevin Wolf <>

7581766b 06/17/2013 06:01 pm Luiz Capitulino

dump: qmp_dump_guest_memory(): use error_setg_file_open()

Signed-off-by: Luiz Capitulino <>
Acked-by: Kevin Wolf <>

1befce96 06/17/2013 06:01 pm Luiz Capitulino

savevm: qmp_xen_save_devices_state(): use error_setg_file_open()

Signed-off-by: Luiz Capitulino <>
Acked-by: Kevin Wolf <>

d8b6895f 06/17/2013 06:01 pm Luiz Capitulino

block: bdrv_reopen_prepare(): don't use QERR_OPEN_FILE_FAILED

The call to drv->bdrv_reopen_prepare() can fail due to reasons
other than an open failure. Unfortunately, we can't use errno
nor -ret, cause they are not always set.

Stick to a generic error message then....

dbfbc637 06/17/2013 06:01 pm Luiz Capitulino

qerror: drop QERR_OPEN_FILE_FAILED macro

Not used since the last commit.

Signed-off-by: Luiz Capitulino <>
Acked-by: Kevin Wolf <>

38aea177 06/17/2013 04:57 pm Anthony Liguori

Merge remote-tracking branch 'pmaydell/configury.next' into staging

  1. By Paolo Bonzini (4) and others
  2. Via Peter Maydell
    • pmaydell/configury.next:
      ppc: Remove CONFIG_FDT conditionals
      microblaze: Remove CONFIG_FDT conditionals
      arm: Remove CONFIG_FDT conditionals...
b7a3b1cd 06/17/2013 04:57 pm Anthony Liguori

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

  1. By Michael Tokarev (1) and Vladimir Senkov (1)
  2. Via Michael Tokarev
    • mjt/trivial-patches:
      char/serial: fix copy&paste error (fifo8_is_full vs empty)
      vl: always define no_frame

Message-id: ...

b165b0d8 06/17/2013 11:57 am Vladimir Senkov

char/serial: fix copy&paste error (fifo8_is_full vs empty)

Copy&paste error in serial.c causes a crash when attempting
to read from UART (if there is no data to be read)

Signed-off-by: Vladimir Senkov <>
Reviewed-by: Peter Crosthwaite <>...

616404cd 06/17/2013 10:38 am Michael Tokarev

vl: always define no_frame

Commit 047d4e151dd46 "Unbreak -no-quit for GTK, validate SDL options" broke
build of qemu without sdl, by referencing `no_frame' variable which is defined
inside #if SDL block. Fix that by defining that variable unconditionally....

030b4b7d 06/17/2013 04:00 am Stefan Weil

gtk: Fix compiler warning (GTK 3 deprecated function)

With GTK 3, the function gdk_cursor_unref is deprecated:

qemu/ui/gtk.c: In function ‘gd_cursor_define’:
qemu/ui/gtk.c:380:5: error:
‘gdk_cursor_unref’ is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkcursor.h:233): Use 'g_object_unref' instead [-Werror=deprecated-declarations]...