Marc-André Lureau
5c678ee8d9
monitor: use qmp_dispatch()
...
Replace the old manual dispatch and validation code by the generic one
provided by qapi common code.
Note that it is now possible to call the following commands that used to
be disabled by compile-time conditionals:
- dump-skeys
- query-spice
- rtc-reset-reinjection
- query-gic-capabilities
Their fallback functions return an appropriate "feature disabled" error.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20160912091913.15831-16-marcandre.lureau@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
2016-09-19 17:32:22 +02:00
Paul Durrant
b7665c6027
xen: handle inbound migration of VMs without ioreq server pages
...
VMs created on older versions on Xen will not have been provisioned with
pages to support creation of non-default ioreq servers. In this case
the ioreq server API is not supported and QEMU's only option is to fall
back to using the default ioreq server pages as it did prior to
commit 3996e85c ("Xen: Use the ioreq-server API when available").
This patch therefore changes the code in xen_common.h to stop considering
a failure of xc_hvm_create_ioreq_server() as a hard failure but simply
as an indication that the guest is too old to support the ioreq server
API. Instead a boolean is set to cause reversion to old behaviour such
that the default ioreq server is then used.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
Acked-by: Stefano Stabellini <sstabellini@kernel.org >
2016-08-12 16:38:30 -07:00
Peter Xu
54a6c11b20
kvm-all: add trace events for kvm irqchip ops
...
These will help us monitoring irqchip route activities more easily.
Signed-off-by: Peter Xu <peterx@redhat.com >
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-07-21 20:44:19 +03:00
Lluís Vilanova
9c15e70086
trace: [*-user] Add events to trace guest syscalls in syscall emulation mode
...
Adds two events to trace syscalls in syscall emulation mode (*-user):
* guest_user_syscall: Emitted before the syscall is emulated; contains
the syscall number and arguments.
* guest_user_syscall_ret: Emitted after the syscall is emulated;
contains the syscall number and return value.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu >
Message-id: 146651712411.12388.10024905980452504938.stgit@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-28 21:14:12 +01:00
Daniel P. Berrange
f52347d5b0
trace: split out trace events for linux-user/ directory
...
Move all trace-events for files in the linux-user/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Message-id: 1466066426-16657-41-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
38b1eedcdc
trace: split out trace events for qom/ directory
...
Move all trace-events for files in the qom/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-40-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
6dfba0ef6e
trace: split out trace events for target-ppc/ directory
...
Move all trace-events for files in the target-ppc/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Message-id: 1466066426-16657-39-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
a4e21b3e35
trace: split out trace events for target-s390x/ directory
...
Move all trace-events for files in the target-s390x/ directory to
their own file.
[Added missing newline in target-s390x/trace-events as suggested by
Cornelia Huck <cornelia.huck@de.ibm.com >.
--Stefan]
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1466066426-16657-38-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
1cba9b2942
trace: split out trace events for target-sparc/ directory
...
Move all trace-events for files in the target-sparc/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-37-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
f3b0163b18
trace: split out trace events for net/ directory
...
Move all trace-events for files in the net/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-36-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
66d7a36d75
trace: split out trace events for audio/ directory
...
Move all trace-events for files in the audio/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-35-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
357ac7f318
trace: split out trace events for ui/ directory
...
Move all trace-events for files in the ui/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-34-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
4f92ce1376
trace: split out trace events for hw/alpha/ directory
...
Move all trace-events for files in the hw/alpha/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-33-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:17 +01:00
Daniel P. Berrange
0b8276d644
trace: split out trace events for hw/arm/ directory
...
Move all trace-events for files in the hw/arm/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-32-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
65b5bd3be5
trace: split out trace events for hw/acpi/ directory
...
Move all trace-events for files in the hw/acpi/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-31-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
1cf6ebc73f
trace: split out trace events for hw/vfio/ directory
...
Move all trace-events for files in the hw/vfio/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-30-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
80aa71e98d
trace: split out trace events for hw/s390x/ directory
...
Move all trace-events for files in the hw/s390x/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1466066426-16657-29-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
fec28134e5
trace: split out trace events for hw/pci/ directory
...
Move all trace-events for files in the hw/pci/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-28-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
3054fba87b
trace: split out trace events for hw/ppc/ directory
...
Move all trace-events for files in the hw/ppc/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Message-id: 1466066426-16657-27-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
d018a2e931
trace: split out trace events for hw/9pfs/ directory
...
Move all trace-events for files in the hw/9pfs/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-26-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
5eb76e480b
trace: split out trace events for hw/i386/ directory
...
Move all trace-events for files in the hw/i386/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-25-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
2b785e3cbf
trace: split out trace events for hw/isa/ directory
...
Move all trace-events for files in the hw/isa/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-24-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
1374aecc7c
trace: split out trace events for hw/sd/ directory
...
Move all trace-events for files in the hw/sd/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-23-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
f0b9e35687
trace: split out trace events for hw/sparc/ directory
...
Move all trace-events for files in the hw/sparc/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-22-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
8101345076
trace: split out trace events for hw/dma/ directory
...
Move all trace-events for files in the hw/dma/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-21-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
c3e203f30d
trace: split out trace events for hw/timer/ directory
...
Move all trace-events for files in the hw/timer/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-20-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:16 +01:00
Daniel P. Berrange
d1d5119864
trace: split out trace events for hw/input/ directory
...
Move all trace-events for files in the hw/input/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-19-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
14750ef1b5
trace: split out trace events for hw/display/ directory
...
Move all trace-events for files in the hw/display/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-18-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
ddc63e4556
trace: split out trace events for hw/nvram/ directory
...
Move all trace-events for files in the hw/nvram/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-17-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
de4291ca4a
trace: split out trace events for hw/scsi/ directory
...
Move all trace-events for files in the hw/scsi/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-16-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
7da2981e59
trace: split out trace events for hw/usb/ directory
...
Move all trace-events for files in the hw/usb/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-15-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
6b5bacf6af
trace: split out trace events for hw/misc/ directory
...
Move all trace-events for files in the hw/misc/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-14-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
92fe6aff87
trace: split out trace events for hw/audio/ directory
...
Move all trace-events for files in the hw/audio/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-13-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
270ab88f7c
trace: split out trace events for hw/virtio/ directory
...
Move all trace-events for files in the hw/virtio/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-12-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
cd8c2fe77b
trace: split out trace events for hw/net/ directory
...
Move all trace-events for files in the hw/net/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-11-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
aebd4d17dc
trace: split out trace events for hw/intc/ directory
...
Move all trace-events for files in the hw/intc/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-10-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
732d83145e
trace: split out trace events for hw/char/ directory
...
Move all trace-events for files in the hw/char/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-9-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
92d3265212
trace: split out trace events for hw/block/ directory
...
Move all trace-events for files in the hw/block/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-8-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:15 +01:00
Daniel P. Berrange
b54ca48e40
trace: split out trace events for block/ directory
...
Move all trace-events for files in the block/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-7-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:14 +01:00
Daniel P. Berrange
521d47c6dc
trace: split out trace events for migration/ directory
...
Move all trace-events for files in the migration/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-6-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:14 +01:00
Daniel P. Berrange
892bd32ea3
trace: split out trace events for io/ directory
...
Move all trace-events for files in the io/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-5-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:14 +01:00
Daniel P. Berrange
8451f2f28d
trace: split out trace events for crypto/ directory
...
Move all trace-events for files in the crypto/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-4-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:14 +01:00
Daniel P. Berrange
492bb2dd65
trace: split out trace events for util/ directory
...
Move all trace-events for files in the util/ directory to
their own file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com >
Message-id: 1466066426-16657-3-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:22:14 +01:00
Lluís Vilanova
dcdaadb6ea
trace: [all] Add "guest_mem_before" event
...
The event is described in "trace-events". Note that the "MO_AMASK" flag
is not traced, since it does not seem to affect the visible semantics of
instructions.
[s/inline inline/inline/ to fix clang build.
--Stefan]
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu >
Reviewed-by: Richard Henderson <rth@twiddle.net >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 146549350711.18437.726780393247474362.stgit@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2016-06-20 17:21:56 +01:00
Peter Maydell
227a865366
hw/intc/arm_gicv3: Add IRQ handling CPU interface registers
...
Add the CPU interface registers which deal with acknowledging
and dismissing interrupts.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
Tested-by: Shannon Zhao <shannon.zhao@linaro.org >
Message-id: 1465915112-29272-19-git-send-email-peter.maydell@linaro.org
2016-06-17 15:23:51 +01:00
Peter Maydell
b1a0eb777d
hw/intc/arm_gicv3: Implement CPU i/f SGI generation registers
...
Implement the registers in the GICv3 CPU interface which generate
new SGI interrupts.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
Tested-by: Shannon Zhao <shannon.zhao@linaro.org >
Message-id: 1465915112-29272-18-git-send-email-peter.maydell@linaro.org
2016-06-17 15:23:51 +01:00
Peter Maydell
f7b9358e2c
hw/intc/arm_gicv3: Implement gicv3_cpuif_update()
...
Implement the gicv3_cpuif_update() function which deals with correctly
asserting IRQ and FIQ based on the current running priority of the CPU,
the priority of the highest priority pending interrupt and the CPU's
current exception level and security state.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
Tested-by: Shannon Zhao <shannon.zhao@linaro.org >
Message-id: 1465915112-29272-17-git-send-email-peter.maydell@linaro.org
2016-06-17 15:23:51 +01:00
Peter Maydell
359fbe65e0
hw/intc/arm_gicv3: Implement GICv3 CPU interface registers
...
Implement the CPU interface registers for the GICv3; these are
CPU system registers, not MMIO registers.
This commit implements all the registers which are simple
accessors for GIC state, but not those which act as interfaces
for acknowledging, dismissing or generating interrupts. (Those
will be added in a later commit.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
Tested-by: Shannon Zhao <shannon.zhao@linaro.org >
Message-id: 1465915112-29272-16-git-send-email-peter.maydell@linaro.org
2016-06-17 15:23:51 +01:00
Peter Maydell
c84428b33f
hw/intc/arm_gicv3: Implement gicv3_set_irq()
...
Implement the code which updates the GIC state when an interrupt
input into the GIC is asserted.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
Tested-by: Shannon Zhao <shannon.zhao@linaro.org >
Message-id: 1465915112-29272-15-git-send-email-peter.maydell@linaro.org
2016-06-17 15:23:51 +01:00
Shlomo Pongratz
cec93a938a
hw/intc/arm_gicv3: Implement GICv3 redistributor registers
...
Implement the redistributor registers of a GICv3.
Signed-off-by: Shlomo Pongratz <shlomo.pongratz@huawei.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
Tested-by: Shannon Zhao <shannon.zhao@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1465915112-29272-13-git-send-email-peter.maydell@linaro.org
[PMM: significantly overhauled/rewritten:
* use the new data structures
* restructure register read/write to handle different width accesses
natively, since almost all registers are 32-bit only, rather
than implementing everything as byte accesses
* implemented security extension support
]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2016-06-17 15:23:51 +01:00