a7b83754aa
qmp-commands: move 'cpu-add' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:27 +01:00
04fcbabc45
qmp-commands: move 'system_powerdown' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:27 +01:00
cd98e00be0
qmp-commands: move 'system_reset' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:27 +01:00
9787339ebb
qmp-commands: move 'stop' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:27 +01:00
8046bf53ba
qmp-commands: move 'quit' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:27 +01:00
3fc3aa6de9
qmp-commands: move 'query-pci' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:27 +01:00
f504e3dc21
qmp-commands: move 'query-balloon' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:27 +01:00
bc7e260271
qmp-commands: move 'query-spice' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
85f9654910
qmp-commands: move 'query-vnc' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
fdf4d34f83
qmp-commands: move 'query-iothreads' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
5c5bee6418
qmp-commands: move 'query-cpus' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
60639df5c2
qmp-commands: move 'query-mice' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
3c3ea00a8c
qmp-commands: move 'migrate-start-postcopy' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
d0d3fc7ff9
qmp-commands: move 'client_migrate_info' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
cf56cfad3c
qmp-commands: move 'query-migrate-parameters' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
35db41e5dc
qmp-commands: move 'migrate-set-parameters' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
135b238e5d
qmp-commands: move 'query-migrate-capabilities' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
0a0bb96442
qmp-commands: move 'migrate-set-capabilities' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
104b1caf05
qmp-commands: move 'query-migrate' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
66c2f5a56c
qmp-commands: move 'query-events' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
4f19a01b3e
qmp-commands: move 'ringbuf-read' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:26 +01:00
a4143a845a
qmp-commands: move 'ringbuf-write' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
90e365c054
qmp-commands: move 'query-chardev-backends' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
4055aa8d40
qmp-commands: move 'query-chardev' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
0ed90f77e8
qmp-commands: move 'query-uuid' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
477bc1e4f1
qmp-commands: move 'query-status' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
b4f65cd27a
qmp-commands: move 'query-kvm' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
3aa4c6cd39
qmp-commands: move 'query-name' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
65ce54f5e2
qmp-commands: move 'add_client' doc to schema
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
d3a48372a4
qapi: add some sections in docs
...
Add some more section titles to organize the documentation we're going
to generate.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20170113144135.5150-10-marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
5807ff88b1
qapi: Reorder doc comments for future doc generator
...
The doc generator we're going to add expects a fairly rigid doc
comment structure. Reorder / rephrase some doc comments to please it.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20170113144135.5150-8-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
[Commit message rewritten]
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:25 +01:00
41dc1dc066
qapi: improve TransactionAction doc
...
TransactionAction is a flat union, document 'type' versions
exhaustively, and sort the members.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20170113144135.5150-6-marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:24 +01:00
b780e9c3f2
qapi: improve device_add schema
...
'device_add' is still incomplete for now, but we can fix a few
arguments:
- 'bus' is a common argument, regardless of the device
- 'id' is an optional argument
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Message-Id: <20170113144135.5150-5-marcandre.lureau@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:24 +01:00
e22da431a7
qapi: Format TODO comments more consistently
...
Consistently put a colon after TODO. This will make the TODOs stand
out in the documentation we're going to generate.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20170113144135.5150-4-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
[Commit message rewritten]
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:24 +01:00
515b17c27c
qapi: move QKeyCode doc body at the top
...
Following documentation guidelines.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20170113144135.5150-3-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:24 +01:00
3df58d4115
qapi: replace 'o' for list items
...
Replace with '*', the common form for list items.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20170113144135.5150-2-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2017-01-16 09:15:24 +01:00
8ed877b784
qmp: Report QOM type name on query-cpu-definitions
...
The new typename attribute on query-cpu-definitions will be used
to help management software use device-list-properties to check
which properties can be set using -cpu or -global for the CPU
model.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Message-Id: <1479320499-29818-1-git-send-email-ehabkost@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2017-01-12 15:51:36 -02:00
e1ff3c67e8
monitor: fix qmp/hmp query-memdev not reporting IDs of memory backends
...
Considering 'id' is mandatory for user_creatable objects/backends
and user_creatable_add_type() always has it as an argument
regardless of where from it is called CLI/monitor or QMP,
Fix issue by adding 'id' property to hostmem backends and
set it in user_creatable_add_type() for every object that
implements 'id' property. Then later at query-memdev time
get 'id' from object directly.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Message-Id: <1484052795-158195-4-git-send-email-imammedo@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2017-01-12 15:35:06 -02:00
e934644126
ps2: Fix lost scancodes by recent changes
...
With "ps2: use QEMU qcodes instead of scancodes", key handling was
changed to qcode base. But all scancodes are not converted to new one.
This adds some missing qcodes/scancodes what I found in using.
[set1 and set3 are from <hpoussin@reactos.org >]
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp >
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2017-01-10 08:14:20 +01:00
5072f7b38b
qapi: add missing colon-ending for section name
...
The documentation parser we are going to add expects a section name to
end with ':', otherwise the comment is treated as free-form text body.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20161117155504.21843-9-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2016-12-05 17:41:38 +01:00
9f2a70e465
qapi: use one symbol per line
...
The documentation parser we are going to add only handles a single
symbol per line.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20161117155504.21843-8-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2016-12-05 17:41:38 +01:00
4d5c8bc42f
qapi: fix various symbols mismatch in documentation
...
There are various mismatch:
- invalid symbols
- section and member symbols mismatch
- enum or union values vs 'type'
The documentation parser catches all these cases.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20161117155504.21843-7-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2016-12-05 17:41:37 +01:00
c5927e7abf
qapi: fix missing symbol @prefix
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Message-Id: <20161117155504.21843-6-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2016-12-05 17:41:37 +01:00
49687ace02
qapi: fix schema symbol sections
...
According to docs/qapi-code-gen.txt, there needs to be '##' to start a
and end a symbol section, that's also what the documentation parser
expects.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Message-Id: <20161117155504.21843-5-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2016-12-05 17:41:37 +01:00
252093a726
qapi-schema: clarify 'colo' state for MigrationStatus
...
VM can not get into colo state unless users enable 'x-colo'
capability for migration, Here it is necessary to clarify
this.
Suggested-by: Eric Blake <eblake@redhat.com >
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com >
Message-Id: <1478072652-9884-1-git-send-email-zhang.zhanghailiang@huawei.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2016-11-17 08:52:47 +01:00
864111f422
vl: exit qemu on guest panic if -no-shutdown is not set
...
For automated testing purposes it can be helpful to exit qemu
(poweroff) when the guest panics. Make this the default unless
-no-shutdown is specified.
For internal-errors like errors from KVM_RUN the behaviour is
not changed, in other words QEMU does not exit to allow debugging
in the QEMU monitor.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com >
Message-Id: <1476775794-108012-1-git-send-email-borntraeger@de.ibm.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2016-11-02 09:28:56 +01:00
6a02c8069f
sockets: add AF_VSOCK support
...
Add the AF_VSOCK address family so that qemu-ga will be able to use
virtio-vsock.
The AF_VSOCK address family uses <cid, port> address tuples. The cid is
the unique identifier comparable to an IP address. AF_VSOCK does not
use name resolution so it's easy to convert between struct sockaddr_vm
and strings.
This patch defines a VsockSocketAddress instead of trying to piggy-back
on InetSocketAddress. This is cleaner in the long run since it avoids
lots of IPv4 vs IPv6 vs vsock special casing.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
* treat trailing commas as garbage when parsing (Eric Blake)
* add configure check instead of checking AF_VSOCK directly
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com >
2016-10-31 19:49:33 -05:00
aef060850b
COLO: Introduce state to record failover process
...
When handling failover, COLO processes differently according to
the different stage of failover process, here we introduce a global
atomic variable to record the status of failover.
We add four failover status to indicate the different stage of failover process.
You should use the helpers to get and set the value.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com >
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Amit Shah <amit.shah@redhat.com >
Signed-off-by: Amit Shah <amit@amitshah.net >
2016-10-30 15:17:39 +05:30
d89e666e06
COLO: Add 'x-colo-lost-heartbeat' command to trigger failover
...
We leave users to choose whatever heartbeat solution they want,
if the heartbeat is lost, or other errors they detect, they can use
experimental command 'x_colo_lost_heartbeat' to tell COLO to do failover,
COLO will do operations accordingly.
For example, if the command is sent to the Primary side,
the Primary side will exit COLO mode, does cleanup work,
and then, PVM will take over the service work. If sent to the Secondary side,
the Secondary side will run failover work, then takes over PVM's service work.
Cc: Luiz Capitulino <lcapitulino@redhat.com >
Cc: Eric Blake <eblake@redhat.com >
Cc: Markus Armbruster <armbru@redhat.com >
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com >
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com >
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Amit Shah <amit.shah@redhat.com >
Signed-off-by: Amit Shah <amit@amitshah.net >
2016-10-30 15:17:39 +05:30
68b5359187
COLO: Add checkpoint-delay parameter for migrate-set-parameters
...
Add checkpoint-delay parameter for migrate-set-parameters, so that
we can control the checkpoint frequency when COLO is in periodic mode.
Cc: Luiz Capitulino <lcapitulino@redhat.com >
Cc: Eric Blake <eblake@redhat.com >
Cc: Markus Armbruster <armbru@redhat.com >
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com >
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com >
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Reviewed-by: Amit Shah <amit.shah@redhat.com >
Signed-off-by: Amit Shah <amit@amitshah.net >
2016-10-30 15:17:39 +05:30