qmp: Make Quorum error events more palatable.
Insert quorum QMP events documentation alphabetically.
Also change the "ret" errno value by an optional "error" being an strerror(-ret)in the QUORUM_REPORT_BAD qmp event.
Signed-off-by: Benoit Canet <benoit@irqsave.net>...
rdma: rename 'x-rdma' => 'rdma'
As far as we can tell, all known bugs have been fixed:
1. Parallel migrations are working2. IPv6 migration is working3. virt-test is working
I'm not comfortable sending the revised libvirt patchuntil this is accepted or review suggestions are addressed,...
quorum: Add quorum mechanism.
This patchset enables the core of the quorum mechanism.The num_children reads are compared to get the majority version and if thisversion exists more than threshold times the guest won't see the error at all.
If a block is corrupted or if an error occurs during an IO or if the quorum...
Update documentation for LTTng ust tracing
Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>Reviewed-by: Alex Bennée <alex.bennee@linaro.org>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Merge remote-tracking branch 'mst/tags/for_anthony' into staging
acpi,pci,pc,virtio fixes and enhancements
This includes new unit-tests for acpi by Marcel,hotplug for pci bridges by myself (piix only so far)and cpu hotplug for q35.And a bunch of fixes all over the place as usual....
acpi: ich9: add CPU hotplug handling to Q35 machine
.. use IO port 0cd8-0xcf7 range for CPU present bitmap
Signed-off-by: Igor Mammedov <imammedo@redhat.com>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs: Fix typo in QMP WAKEUP example
Cc: qemu-trivial@nongnu.orgSigned-off-by: Namhyung Kim <namhyung@gmail.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
docs/memory.txt: Clarify and expand priority/overlap documentation
The documentation of how overlapping memory regions behave and howthe priority system works was rather brief, and confusion aboutpriorities seems to be quite common for developers trying to understand...
Merge remote-tracking branch 'mjt/trivial-patches' into staging
pci, pc, acpi fixes, enhancements
This includes some pretty big changes:- pci master abort support by Marcel- pci IRQ API rework by Marcel- acpi generation support by myself
Everything has gone through several revisions, latest versions have been on...
docs/ccid.txt: fix the typo
Signed-off-by: WengFan <wengfan-fnst@cn.fujitsu.com>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
qapi: fix documentation example
The QMP wire format uses "", not '', around strings.
Signed-off-by: Eric Blake <eblake@redhat.com>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
docs/memory: Explictly state that MemoryRegion priority is signed
When memory regions overlap, priority can be used to specifywhich of them takes priority. By making the priority values signedrather than unsigned, we make it more convenient to implement...
Use qemu-project.org domain name
qemu.org is held by a third-party and no core community contributor hasaccess to the DNS configuration. This leaves the website exposed tooutages due to DNS issues or IP address changes. For example, if theweb server IP address needs to change we cannot guarantee qemu.org will...
qapi-types/visit.py: Inheritance for structs
This introduces a new 'base' key for struct definitions that refers toanother struct type. On the JSON level, the fields of the base type areincluded directly into the same namespace as the fields of the defined...
qcow2: Alignment of snapshot table entries
The qcow2 specification does not explicitly state so far that everysnapshot table entry is aligned to 8 bytes. QEMU, in contrast, does thisalignment, thus it should be properly documented (which this patchdoes)....
docs: Fix IO port number for CPU present bitmap.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>Reviewd-By: Igor Mammedov <imammedo@redhat.com>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
QMP: QMP/ -> docs/qmp/
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>
QMP: Update README file
Drop unneeded info, fix some of the examples and rename QEMU MonitorProtocol to QEMU Machine Protocol.
QMP: Update qmp-spec.txt
Simplify the text, fix some of the examples.
QMP: qmp-events.txt: alphabetical order fix and other minor changes
qcow2: Add corrupt bit
This adds an incompatible bit indicating corruption to qcow2. Any imagewith this bit set may not be written to unless for repairing (andsubsequently clearing the bit if the repair has been successful).
Signed-off-by: Max Reitz <mreitz@redhat.com>...
q35: Add PCIe switch to example q35 configuration
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
misc: Fix new typos in comments and strings
All these typos were found by codespell.
sould -> shouldemperical -> empiricalintialization -> initializationsuccessfuly -> successfullygaurantee -> guarantee
Fix also another error (before before) in the same context....
qapi: Anonymous unions
The discriminator for anonymous unions is the data type. This allows tohave a union type that allows both of these:
{ 'file': 'my_existing_block_device_id' } { 'file': { 'filename': '/tmp/mydisk.qcow2', 'read-only': true } }...
qapi: Flat unions with arbitrary discriminator
Instead of the rather verbose syntax that distinguishes base andsubclass fields...
{ "type": "file", "read-only": true, "data": { "filename": "test" } }
...we can now have both in the same namespace, allowing a more direct...
docs: Document QAPI union types
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>
rdma: update documentation to reflect new unpin support
As requested, the protocol now includes memory unpinning support.This has been implemented in a non-optimized manner, in such a waythat one could devise an LRU or other workload-specific information...
add a header file for atomic operations
We're already using them in several places, but __sync builtins are justtoo ugly to type, and do not provide seqcst load/store operations.
Reviewed-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rdma: add documentation
docs/rdma.txt contains full documentation,wiki links, github url and contact information.
Reviewed-by: Juan Quintela <quintela@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Reviewed-by: Chegu Vinod <chegu_vinod@hp.com>...
build: do not use TARGET_ARCH
TARGET_ARCH is generally wrong to use, there are better variablesprovided in config-target.mak. The right one is usually TARGET_NAME(previously TARGET_ARCH2), but for bsd-user we can also use TARGET_ABI_DIRfor consistency with linux-user....
docs: Fix typo and update file in migration
This patch fix some typo and update the file that alreadymoved.
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
docs: mention AddressSpaces in docs/memory.txt
Reported-by: David Gibson <david@gibson.dropbear.id.au>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
trace: document ftrace backend
Add documentation of ftrace backend.
Signed-off-by: Eiichi Tsukata <eiichi.tsukata.xh@hitachi.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
acpi_piix4: Add infrastructure to send CPU hot-plug GPE to guest
pvpanic: add document of pvpanic
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>Message-id: a5db4ce406647e8f4663b639eae62d880531df8b.1366945969.git.hutao@cn.fujitsu.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
doc: document the Pseudo-encoding of LED state
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>Message-id: 1366867752-11578-5-git-send-email-lilei@linux.vnet.ibm.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
Merge remote-tracking branch 'bonzini/scsi-next' into staging
scsi: VMWare PVSCSI paravirtual device implementation
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>Signed-off-by: Yan Vugenfirer <yan@daynix.com>[ Rename files to vmw_pvscsi, fix setting of hostStatus in pvscsi_request_cancelled - Paolo ]Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pci: add pci test device
This device is used for kvm unit tests,currently it supports testing performance of ioeventfd.Using updated kvm unittest, here's an example output: mmio-no-eventfd:pci-mem 8796 mmio-wildcard-eventfd:pci-mem 3609...
Typo, spelling and grammatical fixes
Minor fixes to documentation and code comments.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
usb: update docs for bus name change
At some point the default usb bus name changed from 'usb.0' to'usb-bus.0' (probably as part of the qom conversion). Updatethe usb documentation accordingly.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
trace: Provide a detailed event control interface
This interface decouples event obtaining from interaction.
Events can be obtained through three different methods:
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>...
Fix typos and misspellings
Fix various typos and misspellings. The bulk of these were found withcodespell.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
migration: move rate limiting to QEMUFile
Rate limiting is now simply a byte counter; client callqemu_file_rate_limit() manually to determine if they have to exit.So it is possible and simple to move the functionality to QEMUFile.
This makes the remaining functionality of s->file redundant;...
trace: Fix location of simpletrace.py in docs
Missed when commit 4c3b5a48 moved it.
Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Laszlo Ersek <lersek@redhat.com>Reviewed-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
docs: document virtio-balloon stats
usb: add usb-bot device (scsi bulk-only transport).
Basically the same as usb-storage, but without automatic scsidevice setup. Also features support for up to 16 LUNs.
pci,virtio
This further optimizes MSIX handling in virtio-pci.Also included is pci cleanup by Paolo, and pci deviceassignment fix by Alex.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>...
q35: document chipset devices
pci: use constants for devices under the 1B36 device ID, document them
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs: move pci-ids.txt to docs/specs/
reorganize pci-ids.txt
Some devices were missing, and we're using two PCI vendor ids.This patch only adds devices that are already documented in hw/pci/pci.h.
virtio-9p: use symbolic constant, add to pci-ids.txt
ivshmem: use symbolic constant for PCI ID, add to pci-ids.txt
Due to disagreement on a name that is generic enough for hw/pci/pci.h,the symbolic constants are placed in the .c files.
docs: add spice-port-fqdn.txt
Start a simple org.qemu.* registry of well known name.
Merge remote-tracking branch 'stefanha/tracing' into staging
trace: Remove "info trace" from documents
commit 88affa1c monitor: remove unused do_info_trace
has removed "info trace" function from monitor, so remove it from documents.
Signed-off-by: Liming Wang <walimisdev@gmail.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
trace: document '-' syntax for disabling events
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
vga: fix bochs alignment issue
The bochs dispi interface traditionally uses port 0x1ce as 16bit indexregister and port 0x1cf as 16bit data register. The later is unaligned,and probably for that reason the the data register was moved to 0x1d0for non-x86 archs....
serial: add windows inf file for the pci card to docs
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
serial: add pci-serial documentation
vga: add specs for standard vga
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Spelling fixes in comments and documentation
These wrong spellings were detected by codespell:
["also is" -> "is also" and "ressources" -> "resources" suggested by...
docs: Fix spelling (propery -> property)
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Merge remote-tracking branch 'qmp/queue/qmp' into staging
docs: writing-qmp-commands.txt: update error section
Add information about the new error format and improve the text a bit.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>
Add XBZRLE documentation
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>
docs: add dirty bit to qcow2 specification
The dirty bit will make it possible to perform lazy refcount updates,where the image file is not kept consistent all the time. Upon openinga dirty image file, it is necessary to perform a consistency check and...
docs: add lazy refcounts bit to qcow2 specification
The lazy refcounts bit indicates that this image can take advantage ofthe dirty bit and that refcount updates can be postponed.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Merge remote-tracking branch 'stefanha/net' into staging
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...
Fix some more Qemus in documentation and help text
Hopefully they will be eliminated one day.
usb: add usb attached scsi emulation
$subject says all. First cut.
It's a pure UAS (usb attached scsi) emulation, without BOT (bulk-onlytransport) compatibility. If your guest can't handle it use usb-storageinstead.
The emulation works like any other scsi hba emulation (eps, lsi, virtio,...
spapr: Add "memop" hypercall
This adds a qemu-specific hypervisor call to the pseries machinewhich allows to do what amounts to memmove, memcpy and xor overregions of physical memory such as the framebuffer.
This is the simplest way to get usable framebuffer speed from...
xhci: add usage info to docs
docs: fix one issue in qcow2 specs
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Specification for qcow2 version 3
This updates the qcow2 specification to cover version 3. It contains thefollowing changes:
- Added compatible/incompatible/auto-clear feature bits plus an optional feature name table to allow useful error messages even if an older...
acpi_piix4: Remove PCI_RMV_BASE write code
Clarify this register as read-only and remove write code. Nochange in existing behavior.
acpi_piix4: Re-define PCI hotplug eject register read
The PCI hotplug eject register has always returned 0, so let's redefineit as a hotplug feature register. The existing model of using separateup & down read-only registers and an eject via write to this register...
acpi_piix4: Disallow write to up/down PCI hotplug registers
The write side of these registers is never used and actually can't beused as defined because any read/modify/write sequence from the guestpotentially races with qemu. Drop the write support and define these...
Replace Qemu by QEMU in internal documentation
The official spelling is QEMU.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qapi: untangle next_list
Right now, the semantics of next_list are complicated. The caller must:
Merge remote-tracking branch 'sstabellini/saverestore-8' into staging
Introduce "xen-save-devices-state"
- add an "is_ram" flag to SaveStateEntry;
- register_savevm_live sets is_ram for live_savevm devices;
- introduce a "xen-save-devices-state" QAPI command that can be used to savethe state of all devices, but not the RAM or the block devices of the...
trace: Provide a per-event status define for conditional compilation
Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in"trace.h".
This lets the user conditionally compile code with a relatively high executioncost that is only necessary when producing the tracing information for an event...
docs: correct ./configure line in tracing.txt
This patch corrects the configure's trace option in docs/tracing.txt.
Signed-off-by: Jun Koi <junkoi2004@gmail.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
libcacard: Spelling and grammar fixes in documentation
v2:Also replace 'aid' by 'AID' (thanks to Peter Maydell for this hint)....
docs: describe live block operations
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Codespell detected these new spelling issues.
Merge remote-tracking branch 'qemu-kvm/memory/mutators' into staging
Conflicts: memory.h
qcow2: Allow >4 GB VM state
This is a compatible extension to the snapshot header format that allowssaving a 64 bit VM state size.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Merge remote-tracking branch 'stefanha/trivial-patches-next' into staging
docs: document memory API interaction with migration
Signed-off-by: Avi Kivity <avi@redhat.com>
docs: Add writing-qmp-commands.txt
Explains how to write QMP commands using the QAPI.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
memory: minor documentation fixes/enhancements
Fix typos and minor documentation errors in both memory.h anddocs/memory.txt.
Also add missing documentation formatting tags to transactionfunctions.
Reviewed-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Ademar de Souza Reis Jr <areis@redhat.com>...
Fixing some spelling in docs/libcacard.txt
Reviewed-by: Alon Levy <alevy@redhat.com>Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fix spelling in documentation and comments (similiar -> similar)
This bug was detected by codespell.In mips_mipssim.c a grammatical error was fixed, too.
Fix some spelling bugs in documentation and comments
These errors were detected by codespell:
remaing -> remainingsoley -> solelyvirutal -> virtualseperate -> separate
libcacard.txt still needs some more patches.
Signed-off-by: Stefan Weil <sw@weilnetz.de>...